Watch
0
0
Fork
You've already forked hyperhive
0

hive-subagent-mcp: say so when a resume falls back to the bare name

resume_target logs the fallback and returns a notice naming the project
dir searched; continue appends it to its reply and to a failed resume's
error, so a caller hitting claude's 'matches 2 sessions' knows to pass dir.
The test's final assertion now pins the whole attach list so the continue
site is covered on its own, and the fallback branch has a test.
This commit is contained in:
atlas 2026-10-06 15:33:20 +02:00
commit d03f10822c
2 changed files with 159 additions and 25 deletions

View file

@ -71,8 +71,10 @@ project directory, read off disk at every resume. claude looks a bare name
up across every git worktree of the repo and refuses when two sessions
match, and `start` archives a prior session only in its own directory, so
a name reused under a sibling worktree would otherwise stop resuming. When
`dir` holds no session under the name, the name goes to claude as-is and
claude's answer stands — see below.
`dir` holds no session under the name, the name goes to claude as-is,
the daemon logs it, and `continue`'s reply — or its error, when claude refuses
— carries a note naming the directory searched; claude's answer stands, see
below.
Because the remembered directory goes with the rest of it, a `continue`
after a restart has to re-supply `dir` when the session lives anywhere