Skip to content

Commit 9ba07b6

Browse files
vilmireclaude
andcommitted
docs(test): record the second kimi failure mode the log distinguishes
kimi's log shows 'not found' (wrong id form) and 'created under a different directory' (right id, wrong cwd) as separate errors. The latter only surfaces once the prefixed id resolves, so it is a precondition adhdev already satisfies, not a second defect. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QornMgw9h4MN3kXwZhGVbn
1 parent 84ae2b8 commit 9ba07b6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/daemon-core/test/commands/cli-manager-resume-id-template.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ import { resolveCliSessionBinding } from '../../src/commands/cli-manager.js';
1616
// the `session_`-prefixed form resumes and replies. The fix lets a provider spec
1717
// express the decoration (`"-S", "session_{{id}}"`), which requires `{{id}}` to
1818
// substitute INSIDE a part rather than only when the part is exactly `{{id}}`.
19+
//
20+
// kimi's own log (~/.kimi-code/logs/kimi-code.log) shows BOTH failure modes and
21+
// distinguishes them, which is what pins the id form as the defect here:
22+
//
23+
// Session "<bare-uuid>" not found. <- wrong id FORM
24+
// Session "session_<uuid>" was created under a different directory.
25+
//
26+
// The second only appears when the prefixed id RESOLVES — so kimi additionally
27+
// requires the resume to run from the session's original workDir. adhdev already
28+
// satisfies that (provider-cli-runtime spawns with cwd = the launch workspace,
29+
// and the saved record carries that same workspace), so it is a precondition to
30+
// respect rather than a second bug; the assertion below locks the id form, which
31+
// is the part adhdev was getting wrong.
1932

2033
/** Minimal provider shape the binding resolver reads. */
2134
function providerWith(resumeSessionArgs: string[]) {

0 commit comments

Comments
 (0)