Skip to content

feat(opencode): add roll-call command#38433

Open
cbrunnkvist wants to merge 1 commit into
anomalyco:devfrom
cbrunnkvist:roll-call
Open

feat(opencode): add roll-call command#38433
cbrunnkvist wants to merge 1 commit into
anomalyco:devfrom
cbrunnkvist:roll-call

Conversation

@cbrunnkvist

Copy link
Copy Markdown

Issue for this PR

Closes #13711

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a roll-call command for testing matching text models for connectivity and latency. This is extremely useful once you have several model providers / gateways connected and / or you are debugging multi-agent configs and want to make sure your model-keys are correct.

Sub-command options:

  • Regex filtering
  • Custom test-prompt
  • Timeout control
  • Parallelism control

Output features:

  • Compact, width-aware human table with readable errors
  • Structured JSON/Markdown output with detailed error fields
  • Progress on stderr and results on stdout
  • TTY colors, verbose/quiet modes, ANSI sanitization

How did you verify your code works?

  • Focused roll-call tests pass: 8 tests, 41 assertions.
  • bun typecheck passes from packages/opencode.
  • Prettier check passes.
  • git diff --check passes.
  • CLI smoke checks were attempted, but local startup was blocked by unrelated database initialization and models.dev network access before the command handler ran.

A screenshot says more than ...

Screenshot 2026-07-23 at 09 24 55 Screenshot 2026-07-23 at 09 25 52

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Help user discover their provider/model pair availability

1 participant