Fix Codex fork session reporting with standalone startup
This commit is contained in:
@@ -51,9 +51,17 @@ class SnapshotTests(unittest.TestCase):
|
||||
with self.assertRaisesRegex(ControlError, "尚未向 Herdr 上报会话 ID") as caught:
|
||||
parse_snapshot(payload)
|
||||
self.assertNotIn("需要 Herdr 0.9", str(caught.exception))
|
||||
self.assertIn("codex --no-daemon fork", str(caught.exception))
|
||||
|
||||
def test_missing_claude_session_does_not_suggest_codex_recovery(self):
|
||||
payload = snapshot("claude")
|
||||
del payload["result"]["snapshot"]["panes"][0]["agent_session"]
|
||||
with self.assertRaisesRegex(ControlError, "尚未向 Herdr 上报会话 ID") as caught:
|
||||
parse_snapshot(payload)
|
||||
self.assertNotIn("codex --no-daemon", str(caught.exception))
|
||||
|
||||
def test_focused_pane_and_exact_native_arguments(self):
|
||||
for kind, args in (("codex", ["fork", SESSION_ID]),
|
||||
for kind, args in (("codex", ["--no-daemon", "fork", SESSION_ID]),
|
||||
("claude", ["--resume", SESSION_ID, "--fork-session"])):
|
||||
with self.subTest(kind=kind):
|
||||
source = parse_snapshot(snapshot(kind))
|
||||
|
||||
Reference in New Issue
Block a user