You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: prepend plan mode instruction to prompt when enabled
The plan mode checkbox now prepends "Enter plan mode and create a plan
before doing anything." to the user's prompt instead of relying on the
--permission-mode plan flag.
This is more reliable because:
- Works regardless of --dangerously-skip-permissions flag
- Directly instructs Claude via prompt rather than CLI flag
- Avoids compatibility issues with Claude Code's flag parsing
The --permission-mode plan flag doesn't work when combined with
--dangerously-skip-permissions, so prompt-based instructions are
the better approach.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* refactor: address PR feedback
- Extract prompt-prepending logic into CreateDialogState::build_initial_prompt() helper
- Remove --permission-mode plan flag from backends (doesn't work with --dangerously-skip-permissions)
- Plan mode is now handled purely via prompt instruction
- Remove obsolete plan mode tests from backends
- Trim user prompts to avoid extra newlines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix: correct test formatting after parameter removal
The Python script that removed plan_mode parameter left some test
calls with malformed formatting (comments and arrays on same line).
This fixes the syntax errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* docs: clarify that plan_mode field is not used by backends
Updated comments to reflect that the plan_mode field in CreateOptions
is kept for protocol compatibility but is not actually used by backends.
Plan mode activation is now handled via prompt instruction prepending
in the TUI layer.
Also updated the deprecated create_container() method comment to
clarify that the plan_mode field is unused.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* refactor: move plan mode prompt transformation to manager layer
This is a better architectural decision that:
- Works for ALL session creation paths (TUI, API, CLI, etc.)
- Actually uses the plan_mode flag in CreateOptions
- Centralizes the logic in one place (manager/daemon layer)
- TUI no longer needs to know implementation details
Changes:
- Removed build_initial_prompt() helper from TUI CreateDialogState
- TUI now passes prompt as-is to the API/daemon
- Manager prepends plan mode instruction when plan_mode=true
- Updated documentation to reflect that plan_mode IS used
This ensures plan mode works consistently regardless of how the
session is created.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments