mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
* fix(claude): seed local-mode context window from the configured model (#1858) Local transcripts carry bare model ids and no usage.context_window, so local Opus/Sonnet [1m] sessions fell back to the web's 200k heuristic (190k denominator). At local launch, resolve the model Claude Code starts with (--model, ANTHROPIC_MODEL, project local/project/user settings) with its [1m] suffix intact, and stamp a 1M context_window on assistant messages from that model. Subagent models are left alone. Register PostModelSwitch in the local hook settings so /model switches inside the TUI update the seed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(claude): honor --model and --setting-sources when seeding the local context window (#1858) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>