hermes-agent/tui_gateway
joaomarcos a93969dbd1 fix(tui): snapshot history after pending model switch applies (#76870)
Deferred model switches append a marker and bump history_version at
turn start; the dispatcher was snapshotting history before that
mutation, so the version-mismatch guard rejected the turn's own
result as a stale/concurrent write. Move the snapshot to after
_apply_pending_model_switch/_sync_agent_model_with_config, under
history_lock, so the turn's own preparatory mutation is included in
its baseline while the anti-stale guard still catches real external
writes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-03 09:56:24 +05:30
..
__init__.py
…
_stdin_recovery.py
…
compute_host.py
…
entry.py
…
event_publisher.py
…
git_probe.py
…
host_supervisor.py
…
loop_noise.py
…
method_ctx.py
…
methods_complete.py
…
methods_config.py
…
methods_prompt.py
…
methods_session.py
…
methods_tools.py fix(secrets): scope tier-3 credential reads (teams_pipeline, deepinfra models, FAL/XAI/VERCEL/DAYTONA/GITHUB presence, HERMES_API_KEY display) 2026-08-02 10:04:48 -07:00
project_tree.py
…
render.py
…
server.py fix(tui): snapshot history after pending model switch applies (#76870) 2026-08-03 09:56:24 +05:30
slash_worker.py polish(mem): readonly config read, debug-level trim logs, loud frame test 2026-08-02 22:44:38 +05:30
synthetic_turn.py
…
transport.py
…
turn_marker.py
…
ws.py
…