You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
context: --context-fill is honoured when pinned, and the default stays derived from the window #170
Follow-up from #141 / #148 (PR #158 deliberately left this out).
What happened
--context-fill exists and is documented as the compaction fill point, but the conversation's compaction trigger does not read it: ctxbudget cannot distinguish "pinned to 60" from "defaulted to 60", so honouring it would have dropped every session's threshold from the derived ~85% to 60% — the opposite of what #148 asked. The knob today governs only headless leaf sizing.
The mechanism
The registry distinguishes a value a person set from the default (the settings registry already carries a source for every row; use it, do not add a parallel flag).
/status says which rule governs (compacts at 85% of 1.3M (derived) vs … (pinned)), so a person can tell why a fold happened.
Where
Context/compaction policy in internal/session (loop.go around TrustedWindowFor), the settings registry in internal/config, PERF.md (the law: changing a cap changes the doc in the same commit), internal/manual/chat/compacting-over-and-over.md.
Acceptance
A 1M-window model with --context-fill 60 pinned compacts near 600k; the same model with nothing pinned keeps the derived threshold; one test pins both.
/status names the governing rule; a test pins the wording.
The manual's description of --context-fill matches what the code does.
Drafted with CodeAF · reviewed and owned by the author
Activity
A pinned context fill governs the fold line; an untouched one still d…
A pinned context fill governs the fold line; an untouched one still d…