mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
#1893 shipped the coding/cache posture as Headroom's out-of-box default, but it
only touched `cli/proxy.py` and `proxy/server.py`. The install path kept the older
`token` default from #1404 / the persistent-install work, so the two entry points
disagreed:
* `headroom proxy` -> `mode or HEADROOM_MODE or PROXY_MODE_CACHE` (cache)
* `proxy/server.py` -> `HEADROOM_MODE` env default is cache, commented
"delta-only compression at ~0 prefix-cache busts"
* `headroom install` / `headroom deploy` -> `--mode` defaulted to token
That last one is not a passive difference. `install/planner.py` writes
`"HEADROOM_MODE": proxy_mode` into the install base env, so installing Headroom
ACTIVELY OVERRODE the good server default with the cache-busting one. Cache mode
freezes prior turns and compresses only the newest delta, keeping the cached
prefix byte-identical; token mode rewrites frozen history, which moves the bytes
the provider hashed and forces a full cold re-write of the whole prefix.
Verified this is an oversight rather than a deliberate divergence: `git show`
confirms #1893 (
|
||
|---|---|---|
| .. | ||
| test_codex_install.py | ||
| test_health.py | ||
| test_native_installers.py | ||
| test_paths.py | ||
| test_planner.py | ||
| test_providers.py | ||
| test_proxy_mode_default.py | ||
| test_runtime.py | ||
| test_state.py | ||
| test_supervisors.py | ||