Repository navigation
fix(tests): update go-local-daemon-process fixtures for Codex and Pi - #693
Conversation
There was a problem hiding this comment.
Approve (0 findings)
Scope: base main, merge base f2852e77; 1 commit, 1 file (apps/node-services/tests/agent/runner-gateway/go-local-daemon-process.test.ts) reviewed. Loaded guidance: linger-pr-review (coderbook / ponytail-review / karpathy-guidelines sections applied from the review recipe). Ran in a separate session.
Findings
None.
Verified as fine
-
Codex version stubs. Both
--versionstubs now report0.171.0, which is above thecodexminimum0.166.0inapps/computer/local-daemon/internal/provider/native/version.go:23. The old0.100.0would have been rejected asVersionTooOldError. -
Steer echo in
fakeCodexScript. The Daemon sendsclientUserMessageIdonturn/steer(codex_operation.go:457). It confirms the steer only when auserMessageitem comes back carryingclientId(codex_events.go:333-336→op.consumeSteer). The fixture now pulls the id out of the request and echoesitem/startedanditem/completedwith it. That matches the real contract. The/usr/bin/sedusage follows the existing helpers in the same script (lines 4011, 4017, 4035). Guarding the reply withif read_requestonly drops the reply when stdin hit EOF, where there is no one to reply to anyway. -
Pi background model selection.
resolveTarget(apps/node-services/src/runtime-model-call.ts:810-835) does two things:- Unconfigured placements use the reported catalog default, so they resolve to
fixture-local/model. - A same-Runtime placement with
modelset uses that catalog entry, so it resolves tofixture-own-key/hosted.
After d60d104, background calls send this explicit wire model and no longer follow Pi's local default. So rewriting
settings.jsonmid-test no longer has any effect, and removing that step is correct, not a loss of coverage. The newAuthorizationheader assertions (Bearer fixture×2, thenBearer fixture-own-key) prove that the provider switch really reaches the right endpoint. They do not rely only on the reported model name. The placement field namemodelmatchesRuntimeModelPlacement.model(runtime-model-call.ts:51). - Unconfigured placements use the reported catalog default, so they resolve to
-
Unrelated changes. None: every changed line traces to the three failure groups described in the PR body. No CJK in the diff or in the commit message, and the commit follows the conventional format.
Process notes
- Single commit, no merge commits.
CI
changes passed; check (web), repository-gate and CodeQL Analyze (actions) were still pending at review time. The other checks are skipped for a test-only node-services change. This suite is gated by LINGER_GO_LOCAL_DAEMON_TEST=1, so CI does not run it. I did not run it locally either: this worktree has no node_modules, and the suite needs the Daemon binary plus the Pi CLI. The author reports 12/12 passing locally, and that remains unverified here.
Automated review by Claude Code
Automated review of d7b7ed9 by Claude Code.
Summary
Fixes the 10 pre-existing failing tests in
apps/node-services/tests/agent/runner-gateway/go-local-daemon-process.test.tsthat remained afterb004fee9andd60d1043(skipped by default unlessLINGER_GO_LOCAL_DAEMON_TEST=1is set):Codex fixture compatibility (
0.166.0minimum, 9 failures):codexfixture--versionstubs (1969and3991) fromcodex-cli 0.100.0tocodex-cli 0.171.0(matching the0.166.0minimum inapps/computer/local-daemon/internal/provider/native/version.goand the kit pin inapps/desktop/distribution/darwin-arm64.json).fakeCodexScript'sturn/steerhandler to echoitem/startedanditem/completed(type: "userMessage",clientIdmatchingclientUserMessageId), which Codex>= 0.166.0requires unconditionally for steer confirmation.Pi background
model_invokeselection (d60d1043, 1 failure):"runs Memory and Wiki on a Pi-only Daemon using an Another Me's configured model or Pi's catalog default"to verify both unconfigured placements falling back to Pi's catalog default (fixture-local/model) and a configured Another Me placement (fixture-own-key/hosted) overriding Pi's defaultsettings.jsonprovider/model, asserting the HTTPAuthorizationheaders (Bearer fixturevs.Bearer fixture-own-key).Verification
LINGER_GO_LOCAL_DAEMON_TEST=1 pnpm --filter @linger/node-services exec vitest run --project agent tests/agent/runner-gateway/go-local-daemon-process.test.ts --maxWorkers=2— 12/12 passedmake check BASE=origin/main(check-repository,check-docs,check-node-services,check-computer) — passedmake check-repository-gate BASE=origin/main(including commitlint on committedorigin/main..HEAD) — passed