fix: agents-llama container missing CLAUDE_AUTOCOMPACT_PCT_OVERRIDE — sessions exceed llama context window #409
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#409
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The local llama server (Qwen3.5-35B-A3B) has 131K context. Claude Code assumes 200K and triggers auto-compaction at ~83.5% = ~167K tokens. Without the compaction override, sessions grow past 131K and crash:
The dev agent gets stuck in a loop — it tries to resume the oversized session, gets the same error, and never recovers.
The fix is known: ~/claude-local.sh on the host sets CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=60 (120K/200K = 60%), leaving ~11K buffer. This env var is not set in the agents-llama container.
Fix
Add to the agents-llama compose environment (or docker run -e):
Also add CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 from the same script.
Affected files
Acceptance criteria