Conversation
## Plan Mode & Planning Workflow
- Add PlanMode state (Standard/Planning) with Shift+Tab toggle
- Add plan tools: plan_create, plan_next, plan_update, plan_list
- Add plan_menu.rs for interactive post-plan action selection
- Execute with auto-accept changes
- Execute with review for each change
- Modify plan with feedback
- Add plan resumption on startup - shows incomplete plans and suggests "continue"
- Add /plans command to list incomplete plans with progress info
- Update prompts with plan_execution_protocol explaining resumable plans
## Context Overflow Fix ("Input Too Long" Error)
- Fixed critical bug: was compacting empty conversation_history instead of raw_chat_history
- Add estimate_raw_history_tokens() to estimate tokens from rig::Message directly
- Truncate raw_chat_history directly when context too large (10→6→4 messages progressively)
- Add pre-request check to detect large context before hitting API limits
- Add find_most_recent_plan_file() for reliable plan path detection
## Auto-Accept Mode Improvements
- Show full code diff in auto-accept mode (same as confirmation prompts)
- Use render_diff() for existing files, render_new_file() for new files
- Apply to both WriteFileTool and WriteFilesTool
## Rate Limiting Mitigation
- Reduce extended thinking budget from 16000 to 8000 tokens
- Helps avoid API rate limits during heavy tool-use sessions
## New Modules
- src/agent/tools/plan.rs - Plan creation and execution tools
- src/agent/tools/truncation.rs - Output truncation utilities
- src/agent/tools/diagnostics.rs - Diagnostic tools
- src/agent/ui/plan_menu.rs - Plan action menu UI
## Vendor Changes
- Move rig-bedrock from patches/ to vendor/ directory
- Clean up obsolete patch files
## Prompts Updates
- Add is_plan_continuation_query() to detect "continue" requests
- Update plan_execution_protocol with resumption instructions
- Explain that plan_next automatically finds where you left off
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Alex793x
added a commit
that referenced
this pull request
Mar 28, 2026
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.
No description provided.