Repository navigation
fix(prompt): stop plan mode from launching denied subagents - #1628
altimate-software-factory[bot] wants to merge 1 commit into
Conversation
Factory lane: altimate_code. Agent-Authored-By: altimate-factory
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Summary
Automated fix proposed by the Altimate software factory; a maintainer reviews every change.
The problem, fix and criteria below are the agent's own account; check them against the diff.
Problem
The experimental plan-mode reminder told the model to launch general and Plan agents, but the plan agent's permissions deny task calls for general, so those task calls were rejected with a permission error.
Fix
The experimental plan-mode reminder told the plan agent to launch general and Plan agents its own task rule denies; it now points only to explore, and a test reproduces the reported error hash from the plan agent's real ruleset.
Acceptance criteria
Changes
2 files changed, 76 lines added, 2 lines removed.
packages/opencode/src/session/prompt/plan-mode.txtpackages/opencode/test/agent/plan-prompt-subagents.test.tsNew tests
packages/opencode/test/agent/plan-prompt-subagents.test.tsIndependent review: accepted, confidence 0.86
Verification
Summary by cubic
Fixes the plan-mode prompt launching subagents the plan agent's permissions deny, which caused task calls to fail with a permission error.
plan-mode.txtto direct the model to launch the explore agent instead of general and Plan agents.plan-prompt-subagents.test.ts, which reproduces the reported task denial error hash and verifies both plan prompts only name subagents the plan agent is allowed to launch.Written for commit 42ebe61. Summary will update on new commits.