hermes-agent/tests/tui_gateway
alelpoan 820a8083d4
fix(desktop): Branch in new chat drops the question and loses the branched session on restart (#71960)
* fix: Branch in new chat loses the question and the branched session (#issue)

- session.branch on the backend now accepts a count param to truncate
  the parent history to the clicked message, instead of always forking
  the entire transcript. Also returns stored_session_id/messages/info
  so the frontend has parity with session.create's response shape.
- branchCurrentSession (open live chat) now slices history from 0
  instead of from the clicked message index, so the question preceding
  an assistant reply is no longer dropped when branching.
- forkBranch now calls session.branch (not session.create) when
  branching an open live chat, since session.create only persists a DB
  row lazily on first prompt - a branched chat that nobody types into
  never got saved, and vanished as 'session not found' on the next
  app restart. branchStoredSession (branching from the sidebar, no
  live runtime) keeps using session.create as before.

* test: cover session.branch count truncation and open-chat branching

- backend: assert session.branch with a count param only persists the
  first N messages of the live history to the new session.
- frontend: BranchHarness now exposes branchCurrentSession; assert
  branching an open chat from a middle message calls session.branch
  with the parent session id and the correct trimmed count, instead of
  session.create.
2026-07-27 10:45:00 -04:00
..
__init__.py
test_auto_continue.py feat(desktop): crash-survivable in-flight turn journal 2026-07-24 23:31:55 -05:00
test_billing_rpc.py feat(billing): carry the payment-method union through to clients (#71542) 2026-07-27 01:49:43 +05:30
test_codex_app_server_live_events.py feat(codex): stream live app-server events to TUI/desktop tool cards 2026-07-17 13:44:12 -07:00
test_compaction_status.py fix(desktop): synchronize context usage and compaction status 2026-07-22 16:58:58 -07:00
test_compress_lock_skip.py fix(compress): classify unconfirmed lock-acquire failures and cover all manual-compress surfaces 2026-07-23 08:19:14 -07:00
test_compute_host.py feat(dashboard): isolate turns in compute host (#65895) 2026-07-16 15:24:03 -04:00
test_compute_host_phase1.py fix(desktop): salvage /compress cluster — session.compress RPC + dedicated RPC routing (#68229) 2026-07-22 16:40:06 -04:00
test_custom_provider_session_persistence.py fix(tui_gateway): recover custom provider identity from the session's model name 2026-07-24 10:47:32 -07:00
test_delegation_session_lifecycle.py fix(delegation): fail-closed orphan handling + session-scoped delegation lifecycle 2026-07-08 07:06:15 -07:00
test_entry_sys_path.py
test_failed_turn_retention.py fix(tui_gateway): retain failed turns as replayable inflight snapshots 2026-07-24 23:31:49 -05:00
test_fast_session_scope.py fix(desktop): session-scope fast mode, surface profile ownership + pinned model override 2026-07-17 14:31:10 -04:00
test_finalize_session_persist.py fix tui finalize persist drop conversation_history so disconnect saves chat 2026-07-10 07:47:10 -07:00
test_gateway_owned_session_reap.py fix(tui): derive gateway-owned sources from the Platform enum, not a hardcoded list 2026-07-07 22:15:36 -07:00
test_goal_command.py
test_image_routing_stale_model.py fix(tui): route images with the live switched model 2026-07-17 09:08:30 -07:00
test_inline_rpc_gil_starvation.py fix(desktop): prevent false runtime-not-ready under gateway load (#66174) 2026-07-20 10:51:27 -04:00
test_interim_assistant_callback.py fix(desktop, ink): don't wipe messages before final message (#65919) 2026-07-20 11:42:29 -04:00
test_iso_certify_seam.py fix(ci): make tests, workflows, and attribution reliable under load (#66373) 2026-07-17 20:55:24 +00:00
test_kanban_notify_poller.py fix(kanban): snap notify-sub cursor to current MAX(task_events.id) at creation 2026-07-26 16:14:15 -07:00
test_make_agent_provider.py
test_mcp_late_refresh_thread_owner.py
test_mcp_reload_rev.py fix(tui): revision-aware reload.mcp — an ack now means the revision was LOADED 2026-07-21 20:27:15 -05:00
test_moa_reference_emit.py
test_model_switch_marker_role.py fix(timeline): persist typed display events (#69771) 2026-07-23 14:46:24 -04:00
test_pet_generate_rpc.py
test_project_tree.py fix(projects): don't promote a deleted workspace to a project 2026-07-26 00:57:17 -05:00
test_projects_rpc.py fix(gateway): record a terminal session's working directory 2026-07-26 01:20:35 -05:00
test_protocol.py fix(desktop): Branch in new chat drops the question and loses the branched session on restart (#71960) 2026-07-27 10:45:00 -04:00
test_reasoning_config_per_model.py feat(config): support per-model reasoning_effort overrides 2026-07-14 11:46:40 -07:00
test_reasoning_session_scope.py fix(desktop,tui-gateway,zai): stop thinking-off from reverting to medium 2026-07-02 15:23:47 -05:00
test_render.py
test_review_summary_callback.py
test_session_cwd_follow.py fix(gateway): follow a session into the worktree it settled in 2026-07-26 03:59:46 -05:00
test_session_id_injection.py fix(tui_gateway): inject live session id into HERMES_SESSION_ID 2026-07-24 23:09:02 -07:00
test_session_platform_resolution.py test: deflake CI and dev-machine flaky tests in bulk (11 tests, 10 files) (#61816) 2026-07-09 20:03:11 -07:00
test_slash_worker_ansi.py fix(tui_gateway): strip ANSI from slash-worker output for desktop chat 2026-07-01 16:28:34 -05:00
test_slash_worker_mcp_discovery.py test(tui): cover profile-local MCP discovery 2026-07-10 18:09:17 +05:30
test_slash_worker_profile_home.py fix(tui): pass profile_home to slash_worker subprocess for profile-local skill discovery (#40677) 2026-07-07 05:14:00 -07:00
test_slash_worker_sys_path.py
test_subagent_child_mirror.py
test_subprocess_encoding.py fix: address review — add regression test, revert cosmetic churn, cross-link #61595 2026-07-24 09:48:28 -07:00
test_undo_command.py test: deflake CI and dev-machine flaky tests in bulk (11 tests, 10 files) (#61816) 2026-07-09 20:03:11 -07:00
test_wait_for_mcp_discovery.py fix(ci): make tests, workflows, and attribution reliable under load (#66373) 2026-07-17 20:55:24 +00:00