Skip to content

feat: wire config options, context compaction, and auto-index on startup#261

Merged
laynepenney merged 2 commits into
mainfrom
feat/wire-config-compaction-autoindex
Feb 3, 2026
Merged

feat: wire config options, context compaction, and auto-index on startup#261
laynepenney merged 2 commits into
mainfrom
feat/wire-config-compaction-autoindex

Conversation

@laynepenney
Copy link
Copy Markdown
Member

No description provided.

laynepenney and others added 2 commits February 3, 2026 03:43
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>
@laynepenney laynepenney force-pushed the feat/wire-config-compaction-autoindex branch from f732315 to 10a6ebe Compare February 3, 2026 09:44
@laynepenney laynepenney merged commit d41a46f into main Feb 3, 2026
3 checks passed
@laynepenney laynepenney deleted the feat/wire-config-compaction-autoindex branch February 3, 2026 09:50
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.

1 participant