Commit Graph

4 Commits

Author SHA1 Message Date
Teknium
52ccae4740 refactor: move the Codex recovery rungs out of turn_recovery
turn_recovery.py crossed the 2,000-line gate once the reasoning-replay recovery
landed beside it. The stale-encrypted-reasoning rungs and the replay-verdict
reset are one topic; they move verbatim to agent/turn_recovery_codex.py.
2026-10-10 19:22:07 -07:00
Maciej Lisiewski
d76cce4f11 ci: apply all automatic linter fixes available 2026-10-08 17:22:54 +02:00
Teknium
6cc1efd8f9 feat(voice): auxiliary.voice_chat routes spoken voice turns to their own model
Voice replies had to come from the session's main model, so a heavy model made every spoken
answer slow (#83894). A new auxiliary slot, voice_chat, picks the model for voice turns:

- CLI/TUI voice mode, the Desktop voice conversation (prompt.submit voice_turn) and messaging
  voice notes mark the turn; agent/voice_turn_route.py binds the route after the prompt, row and
  preflight compaction were settled against the main model and undoes it before memory sync and
  background review, so the next typed turn and the review run on the main model.
- A turn larger than the voice model's compression threshold stays on the main model with a
  one-time notice: switching to voice never compacts the conversation.
- Usage lands in session_model_usage under task voice_chat; it never rewrites the session's
  recorded model/route, so resume keeps the model the user picked.
- Slot appears in Desktop Settings -> Models, the dashboard, and `hermes model`; GPT-Live
  delegations keep using the session model.
2026-10-07 01:35:11 -07:00
Teknium
1541036775 refactor(agent): extract the fallback route swap and primary restore into route_binding
try_activate_fallback's in-place swap (client, pool, compressor, reasoning, extra_body) and
restore_primary_runtime's reinstall are now agent/route_binding.py::bind_route_entry and
::reinstall_primary_runtime / ::reinstall_runtime_snapshot, so a per-turn route can reuse the
same binder instead of a third copy. No behaviour change.
2026-10-07 01:35:11 -07:00