Repository navigation
fix(gateway): title-source test fails after config snapshot capture - #182780
Conversation
Initialize the title provider fixture's session store before publishing its runtime config. Eager snapshot capture otherwise leaves Gateway create/send using the default store while the test reads an empty custom store. Preserve the existing task, attachment, control-only, and manual-name proof. Related: #182053
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR initializes the title fixture’s session store before publishing its configuration and removes the caller’s late mutation. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, correct repair of a main-branch test fixture; no actionable findings remain, and ordinary CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared fixture supplies isolated configuration and a local HTTP title provider to Gateway handler and transport tests, which verify generated titles and persisted session entries. flowchart LR
A[Isolated test state] --> B[Title provider fixture]
B --> C[Published config snapshot]
C --> D[Gateway session handlers]
D --> E[Local HTTP provider]
D --> F[Configured session store]
F --> G[Regression assertions]
Technical reviewBest possible solution: Keep store selection in the shared fixture before configuration publication, preserving the existing handler and transport assertions. Do we have a high-confidence way to reproduce the issue? Source confirms that publication precedes the custom-store mutation on main, while the PR records matching baseline failures under Bun and Node; this read-only review ran no tests. Is this the best way to solve the issue? This is the smallest complete fix: initialize the existing fixture’s configuration before its snapshot is captured, without changing runtime capture semantics or weakening coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a538efeba9c1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 24, 2026, 2:54 PM ET / 18:54 UTC. |
|
Merged via squash.
|
…enclaw#182780) Initialize the title provider fixture's session store before publishing its runtime config. Eager snapshot capture otherwise leaves Gateway create/send using the default store while the test reads an empty custom store. Preserve the existing task, attachment, control-only, and manual-name proof. Related: openclaw#182053
What Problem This Solves
Fixes the main-branch session-title test failure blocking #182053: the assertion reads an empty custom session store even though the Gateway generated and saved the title successfully.
User Impact
No user-visible behavior change. The Gateway title regression reliably checks task-bearing sends, attachments, control-only messages, and manual names against the store used by the handlers.
Why This Change Was Made
#182582 made published configuration captures eager. The title-provider fixture published its config before the test added
session.store, so store discovery retained the default agent store while assertions selected the custom store. Initialize the fixture's store before publication and remove the late caller mutation. Production title generation and persistence need no change.Related: #182053.
Evidence
efe1c0dabba4c859f25e68984a1cb958bebbafe9, the existing title-source test failed with the reported assertion twice under the pinned Bun fork (66.13s cold, 31.41s warm) and once under Node 26.12.1 (44.61s). This is not Bun-specific.f2fccfab05f36f400a671026d95263db790affd2confirmed the default-store row already haddisplayName: "Repair request routing"; the custom-store read found no row. All diagnostic edits were removed.git diff --checkpassed. The first lint invocation began plugin declaration preparation; it was stopped and replaced with the focused core config.65bdb441f2d9a9d213df0f0ca56cbc6f579c6544: 34 successful jobs, 28 skips, no failures. The earlier draft CI run was skipped; no CI retry was needed.Reproduction command (use
nodeinstead ofbunfor the comparison):Shared-fixture verification: