Skip to content

fix(tests): update go-local-daemon-process fixtures for Codex and Pi - #693

Merged
NightRain233 merged 1 commit into
mainfrom
fix/go-daemon-process-baseline
Nov 25, 2026
Merged

NightRain233 merged 1 commit into
mainfrom
fix/go-daemon-process-baseline

Conversation

@NightRain233

Copy link
Copy Markdown
Contributor

Summary

Fixes the 10 pre-existing failing tests in apps/node-services/tests/agent/runner-gateway/go-local-daemon-process.test.ts that remained after b004fee9 and d60d1043 (skipped by default unless LINGER_GO_LOCAL_DAEMON_TEST=1 is set):

  1. Codex fixture compatibility (0.166.0 minimum, 9 failures):

    • Update both codex fixture --version stubs (1969 and 3991) from codex-cli 0.100.0 to codex-cli 0.171.0 (matching the 0.166.0 minimum in apps/computer/local-daemon/internal/provider/native/version.go and the kit pin in apps/desktop/distribution/darwin-arm64.json).
    • Update fakeCodexScript's turn/steer handler to echo item/started and item/completed (type: "userMessage", clientId matching clientUserMessageId), which Codex >= 0.166.0 requires unconditionally for steer confirmation.
  2. Pi background model_invoke selection (d60d1043, 1 failure):

    • Update "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 default settings.json provider/model, asserting the HTTP Authorization headers (Bearer fixture vs. 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 passed
  • make check BASE=origin/main (check-repository, check-docs, check-node-services, check-computer) — passed
  • make check-repository-gate BASE=origin/main (including commitlint on committed origin/main..HEAD) — passed

Update the Codex fixture stubs from 0.100.0 to 0.171.0 (matching the 0.166.0 minimum from b004fee and adding the required userMessage steer echo) and align the Pi background model_invoke test with d60d104 explicit configured-model selection and catalog-default fallback.

@linger-review linger-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --version stubs now report 0.171.0, which is above the codex minimum 0.166.0 in apps/computer/local-daemon/internal/provider/native/version.go:23. The old 0.100.0 would have been rejected as VersionTooOldError.

  • Steer echo in fakeCodexScript. The Daemon sends clientUserMessageId on turn/steer (codex_operation.go:457). It confirms the steer only when a userMessage item comes back carrying clientId (codex_events.go:333-336 → op.consumeSteer). The fixture now pulls the id out of the request and echoes item/started and item/completed with it. That matches the real contract. The /usr/bin/sed usage follows the existing helpers in the same script (lines 4011, 4017, 4035). Guarding the reply with if read_request only 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 model set uses that catalog entry, so it resolves to fixture-own-key/hosted.

    After d60d104, background calls send this explicit wire model and no longer follow Pi's local default. So rewriting settings.json mid-test no longer has any effect, and removing that step is correct, not a loss of coverage. The new Authorization header assertions (Bearer fixture ×2, then Bearer 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 name model matches RuntimeModelPlacement.model (runtime-model-call.ts:51).

  • 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.

@NightRain233
NightRain233 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 09363b7 Nov 25, 2026
15 checks passed
@NightRain233
NightRain233 deleted the fix/go-daemon-process-baseline branch November 25, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant