Skip to content

fix: register acp model and mode commands#28000

Open
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27942-acp-command-fallbacks
Open

fix: register acp model and mode commands#28000
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27942-acp-command-fallbacks

Conversation

@mturac
Copy link
Copy Markdown

@mturac mturac commented May 17, 2026

Issue for this PR

Closes #27942

Type of change

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

What does this PR do?

ACP session loading now includes model and mode in the available command fallback list, alongside compact, when the command API does not return them. This lets ACP clients discover and dispatch those built-in session commands.

How did you verify your code works?

  • bun test test/acp/command-fallbacks.test.ts test/acp/agent-interface.test.ts from packages/opencode
  • bun typecheck from packages/opencode
  • bun run lint packages/opencode/src/acp/agent.ts packages/opencode/test/acp/command-fallbacks.test.ts from repo root (0 errors; existing warnings in agent.ts)
  • git diff --check origin/dev...HEAD
  • push hook: bun turbo typecheck

Screenshots / recordings

N/A; behavior is covered by unit tests.

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.

fix(acp): model and mode commands not registered in available_commands_update

1 participant