feat: cap Claude Code auto-compact at 196608-token self-hosted window - #128
Merged
Conversation
Set CLAUDE_CODE_AUTO_COMPACT_WINDOW=196608 and CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=85 in the env block written by configureClaudeCode so compaction fires around 167K tokens — comfortably below the gateway model's 196608-token hard limit. Covers the Claude Code CLI plus both extension variants since they share ~/.claude/settings.json. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vi.waitFor's default 1s timeout isn't enough on Windows CI runners — the full UpdateApp render pipeline (detect → updating → TaskList settle → parent setPhase → render "Happy coding") routinely takes longer than that under contention, surfacing as a flaky "shows 'Happy coding' after a successful update" failure. Match the 10s slack we already give Ink renders in InstallApp.test.tsx (waitForFrame's maxMs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Set CLAUDE_CODE_AUTO_COMPACT_WINDOW=196608 and
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=85 in the env block written by
configureClaudeCode so compaction fires around 167K tokens — comfortably
below the gateway model's 196608-token hard limit. Covers the Claude
Code CLI plus both extension variants since they share
~/.claude/settings.json.