Commit graph

2 commits

Author SHA1 Message Date
ozymandiashh
f9669cee33 test: absorb the teardown write race in the context-tree API suite
server.close() only stops new connections; an in-flight fire-and-forget
cache save can land a file mid-recursive-rm, surfacing as ENOTEMPTY on
slower runners (run #5). fs.rm's built-in retries absorb the window.
2026-08-04 04:00:39 +03:00
Aditya Vikram Singh
7a200915b4 fix(web): accept a session id prefix in /api/context/tree
`codeburn context <session>` accepts an 8-char session id prefix (findClaudeSession/
findCodexSession resolve it via startsWith), but /api/context/tree additionally
required the resolved ref's sessionId to equal the id passed in verbatim - so
the same prefix that works on the CLI 404s through the API.

findClaudeSession/findCodexSession are already the single source of truth for
prefix resolution used by the CLI; the API now trusts that resolution instead
of re-validating for an exact match afterwards, so both surfaces behave the
same way for a prefix.

Fixes getagentseal/codeburn#767 (item 2).
2026-07-29 22:58:10 +05:30