Skip to content

feat: cap Claude Code auto-compact at 196608-token self-hosted window - #128

Merged
quickbeard merged 2 commits into
mainfrom
feat/claude-auto-compact-env
May 27, 2026
Merged

feat: cap Claude Code auto-compact at 196608-token self-hosted window#128
quickbeard merged 2 commits into
mainfrom
feat/claude-auto-compact-env

Conversation

@quickbeard

@quickbeard quickbeard commented May 27, 2026

Copy link
Copy Markdown
Owner

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.

quickbeard and others added 2 commits May 27, 2026 17:39
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>
@quickbeard
quickbeard merged commit 9edfe8e into main May 27, 2026
5 of 7 checks passed
@quickbeard
quickbeard deleted the feat/claude-auto-compact-env branch May 27, 2026 11:12
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