Repository navigation
test(agents): reuse complete Responses model fixtures - #147015
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed September 13, 2026, 8:28 AM ET / 12:28 UTC. ClawSweeper reviewWhat this changesReuses the existing Responses model fixture builder in ten test inputs while preserving scenario values and assertions. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, behavior-preserving cleanup that remains absent from the inspected main revision. No actionable correctness findings were identified, and the protected maintainer label precludes automated closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s Responses transport converts conversation context and model settings into provider requests and streams results back to agents. These tests exercise request shaping, recovery, and HTTP status handling using shared model fixtures. flowchart LR
A[Scenario model settings] --> B[Shared fixture builder]
B --> C[Complete test models]
D[Conversation and provider fixtures] --> E[Responses transport]
C --> E
E --> F[Requests and streamed results]
F --> G[Existing assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -55. Total -55 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep common model defaults in the existing fixture builder while retaining explicit scenario overrides and independent transport assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates test setup rather than reporting a runtime defect; fixture equivalence was checked from source. Is this the best way to solve the issue? Yes: reusing the existing typed builder removes duplicated defaults without adding a helper, weakening assertions, or widening the model contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bf066ff9caf7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* temp/pr-145950: (101 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* commit '060e856e5f9df245d63c98990fcb47e18108c6b9': (97 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* temp/pr-137049: (110 commits) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) ...
What Problem This Solves
Responses transport tests repeat complete model defaults that are already owned by their shared fixture builder.
User Impact
Internal-only test maintenance; there is no user-visible behavior change.
Why This Change Was Made
Reuse the existing builder for ten complete model inputs, retaining explicit scenario values, fresh nested objects, and every assertion. Remove seven redundant outer casts. The intentionally unsupported
supportsStorefixture remains unchanged after the typecheck correctly rejected including it in the typed builder.The change removes 55 test lines with no helper or production edits. One input moves
compatafter the default fields; the tested consumers read named fields and construct separate request objects, so this does not alter an ordering contract.Evidence
The full four-file baseline and initial candidate each passed 103 cases. After retaining the unsupported fixture, the complete affected file passed all 17 cases again; the other three files were unchanged. Per-file case names, order, and outcomes match, with no skips. Ten controls against the actual helper confirm equal values/property descriptors and fresh allocations. The corrected mapped gate, including actual typechecks, and fresh independent P2 review passed. The superseded typecheck failure was preserved and resolved by excluding the unsupported input, without widening types or adding casts.