Repository navigation
test(sessions): cover reading Qoder and Qoder CN transcripts (#1418) - #1679
Conversation
…#1418) Tencent#1571 landed the Qoder/Qoder CN session platforms and their store resolution. This adds the adapter-level behaviour tests it did not carry: - a Qoder transcript under ~/.qoder/projects reads through the registry adapter (the file path the listing names, the two-message chain), and its subagents under <id>/subagents/ read with their meta; - a Qoder CN transcript reads from ~/.qoder-cn/projects; - QODER_CONFIG_DIR moves the store, and QODER_CLI_HOME names the parent of .qoder — the two relocation shapes Tencent#1571 documents resolved through locate tests, exercised here through the adapter the app uses. test-only: no production code changes.
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
The new tests read well. They go through ADAPTER_REGISTRY the way a member's read does, cover both stores, the meta of a spawned agent, and both relocation variables (QODER_CLI_HOME naming the parent), and stub every QODER* variable so a developer's own install does not leak in. Tests only, so no real-CLI record is needed.
[P1 blocking] Revert the package-lock.json change
The lock change is not part of "test-only": it removes the 8 libc entries (glibc / musl) from the @oxlint/binding-linux-* packages. Nothing in the tests needs it; it is what an npm that does not write libc produces on npm install. Without those entries, npm on Linux can no longer tell the glibc and musl bindings apart, so CI and every Linux contributor's npm ci install both. This breaks the Code Review Rules item "Changes must be surgical. Every changed line should trace directly to the PR's stated goal". git checkout origin/main -- package-lock.json and a push fixes it.
[P3 nit] The session id is not a UUID
SID's last group, 0000000000d0de, has 14 hex digits where a UUID has 12. Nothing checks it today, but a real Qoder id would not look like that.
The description documents sufficient testing for the test changes: targeted Vitest results, type checking, and lint. No runtime behavior change is evident, so no real-CLI record is required. No other confident findings. Nothing was run, built, or installed. |
I pushed 4c10122 on top of your branch to close the two open items, so this can land:
Locally: |
|
No new confident findings in the specified diff.
Nothing was run, built, or installed from the PR. |
#1571 landed the Qoder / Qoder CN session platforms and their store resolution (locate-matrix, locate-sessions, TOOLS, README, tool-support). This adds the adapter-level behaviour tests it did not carry — the read path a member actually hits, not just where the store resolves.
Test-only: no production code changes.
What it covers
~/.qoder/projectsreads through the registry adapter: the listing names the file,readSessionreturns the two-message chain, andreadSubagentsreads<id>/subagents/with its meta (toolUseId,finished).~/.qoder-cn/projects.QODER_CONFIG_DIRmoving the store,QODER_CLI_HOMEnaming the parent of.qoder— exercised end to end throughADAPTER_REGISTRY.qoder()(locate tests pin the path; these pin that the adapter reads from it).platformForTool('qoder') === 'qoder',toolForPlatform('qoder-cn') === 'qoder-cn'.Testing
npx vitest run qoder-adapter agent-session-subagents tclaude-tcodex session-platform-facts→ 25 tests pass.Follow-up of #1418; complements #1571. I closed my own overlapping implementation (#1661) when #1571 landed.