feat: wire config options, context compaction, and auto-index on startup#261
Merged
Conversation
This was referenced Feb 3, 2026
Connect ResolvedConfig to the TUI App so config values (autoApprove, systemPromptAdditions, projectContext, commandAliases, noTools, etc.) are used when creating the agent instead of being ignored. Add context compaction in the agent chat loop: estimate token count before each API call and compact older messages into a summary when the limit is exceeded. Auto-index the symbol index in a background task on startup so /symbols commands work without manual rebuild. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace byte-index truncation with char-boundary-safe truncate_str() to prevent panics on multi-byte UTF-8 content (emoji, CJK, accents) - Add recursion depth limit (max 5) to command alias expansion to prevent stack overflow on self-referencing or cyclic aliases - Add 16 new tests: alias resolution, system prompt building, agent config wiring, UTF-8 truncation edge cases, alias cycle safety Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
f732315 to
10a6ebe
Compare
3 tasks
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.