Files
hermes-agent/tests/agent
teknium1 027809f88e fix(agent): don't restore a foreign Session ID or pin an empty workspace snapshot
- _stored_prompt_matches_runtime: with the Session ID trailer on
  (--pass-session-id / HERMES_TUI_PASS_SESSION_ID), a stored prompt whose
  Session ID line is not this session's is a mismatch. A /branch child now
  copies its parent's prompt bytes, and without this it told the model the
  parent's id. Gated on the flag so a "Session ID:" line in project text
  cannot force a rebuild every turn when the trailer is off.
- _seed_workspace_pin: adopt only a real workspace block. A stored prompt
  that names this cwd but carries no block (built on a messaging surface,
  resumed on the CLI in the same repo) pinned "no workspace" and dropped the
  git snapshot for the rest of the session; now the next build captures one.
2026-09-23 17:06:48 -07:00
..