feat(opencode): restore build and plan modes#272
Open
nicko-ai wants to merge 2 commits into
Open
Conversation
- add /mode as the Build, Plan, and Run product switch - route Build and Plan through native OpenCode instructions with Agent Swarm guidance - keep Run server-backed and enable native Plan handoff to Build - add terminal E2E coverage for mode visibility, routing, and plan approval
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
- Add /mode as the Build, Plan, and Run product switch - Keep Run server-backed while Build and Plan use native OpenCode mode routing - Add terminal E2E coverage for switching, native prompts, and Run return flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
N/A. Feature PR; no issue required by the current PR standards workflow for
feat:titles.Type of change
What does this PR do?
Restores the three Agent Swarm CLI product modes behind
/mode:/buildand/planare not added as commands.AGENTS.mdorpackages/opencode/src/cli/cmd/agency.ts.How did you verify your code works?
../../node_modules/.bin/tsgo --noEmitfrompackages/opencodenpx --yes bun@1.3.13 test --timeout 30000 test/cli/tui/prompt-framework-mode.test.tsx test/cli/tui/transcript.test.ts test/agent/display.test.tsfrompackages/opencode: 21 pass, 0 failpackages/opencodeunit suite: 3321 pass, 13 skip, 1 todo, 0 failnpx --yes bun@1.3.13 test --timeout 180000 --max-concurrency=1 ../../e2e/agent-swarm-tuifrompackages/opencode: 35 pass, 1 live-service skip, 0 fail../../node_modules/.bin/prettier --check ../../e2e/agent-swarm-tui/terminal-tui.test.ts src/session/prompt.ts src/tool/plan.tsfrompackages/opencodegit diff --check origin/devbun turbo typecheckScreenshots / recordings
No recording attached. The changed terminal states are covered by the terminal TUI E2E tests.
Checklist