Skip to content

Conversation

@thdxr
Copy link
Contributor

@thdxr thdxr commented Jan 13, 2026

Summary

  • Adds plan mode feature that allows the agent to switch into a planning state with dedicated tools
  • Implements plan-enter and plan-exit tools for controlled mode switching
  • Improves TUI handling for plan mode switching and question flows
  • Adds slug utility for generating plan file names

thdxr added 5 commits January 13, 2026 13:56
- Add PlanEnterTool and PlanExitTool to tool registry for CLI clients
- Configure plan_enter and plan_exit permissions in agent defaults
- Add plan mode switching logic in session prompt
- Update build switch message to reference existing plan file
- Rename exit_plan to plan_exit for consistency
- Add automatic agent switching when plan tools complete
- Add custom option control to question interface
- Update plan tool descriptions to clarify agent switching
- Show plan file path in exit/exit prompts
- Remove custom answer option when not needed
@thdxr thdxr merged commit 0a3c72d into dev Jan 13, 2026
4 of 5 checks passed
dl-alexandre pushed a commit to dl-alexandre/opencode that referenced this pull request Jan 13, 2026
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Jan 14, 2026
Upstream changes:
- feat: add plan mode with enter/exit tools (anomalyco#8281)
- feat: Add GitLab Duo Agentic Chat Provider Support (anomalyco#7333)
- feat(desktop): Ask Question Tool Support (anomalyco#8232)
- feat: add Undertale and Deltarune built-in themes (anomalyco#8240)
- fix: Add Plugin Mocks to Provider Tests (anomalyco#8276)
- fix: update User-Agent string to latest Chrome version in webfetch (anomalyco#8284)
- fix(prompt-input): handle Shift+Enter before IME check
- fix(state): delete key from recordsByKey on instance disposal
- fix(mcp): close existing client before reassignment to prevent leaks

Resolved conflicts:
- bun.lock: regenerated with fork dependencies
- global-sync.tsx: adopted upstream variable naming (question instead of request)
- session/index.tsx: merged upstream workdir display with fork's ANSI terminal emulation
- amazon-bedrock.test.ts: added all mock modules (fork + upstream)
- vscode/package.json: kept fork branding, updated version

Fork commits included:
- refactor(tui): use SDK client for tool list dialog
- chore: update lockfile with fork dependencies
CasualDeveloper pushed a commit to CasualDeveloper/opencode that referenced this pull request Jan 14, 2026
Remove unused `import pat from "path"` introduced in anomalyco#8281. The code uses `path.join()`, so only the second import is functional.

Fixes anomalyco#8408
CasualDeveloper pushed a commit to CasualDeveloper/opencode that referenced this pull request Jan 14, 2026
Remove unused `import pat from "path"` introduced in anomalyco#8281. The code uses `path.join()`, so only the second import is functional.

Fixes anomalyco#8408
@Leka74 Leka74 mentioned this pull request Jan 14, 2026
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.

2 participants