Repository navigation
chore: simplify macOS Claude session catalog tests - #118571
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 4:38 AM ET / 08:38 UTC. ClawSweeper reviewWhat this changesThe PR consolidates repeated temporary-home, Claude transcript/index, JSON decode, catalog-call, observer, and cleanup helpers in the macOS Claude session catalog test suite while retaining its existing scenarios. Merge readinessKeep this maintainer-labeled PR open for normal landing review. The branch changes only the Claude session catalog test fixture layer; source inspection shows the same nine scenarios and assertion counts remain, with no runtime, dependency, security, or configuration change. No discrete patch defect was found, but the head’s Priority: P3 Review scores
Verification
How this fits togetherThe macOS app reads Claude Code project transcripts and Desktop metadata from the local home directory, then exposes session-list and session-read results through its node-mode IPC runtime. This test suite creates isolated filesystem fixtures, invokes the catalog directly, and verifies discovery, pagination, access, cache, and advertisement behavior. flowchart LR
A[Temporary Claude home] --> B[Test fixture builder]
B --> C[Transcript and index files]
C --> D[Claude session catalog]
D --> E[Node-mode IPC worker]
E --> F[Catalog response assertions]
D --> G[Enumeration observer assertions]
Decision needed
Why: The patch has no supported correctness finding, but the protected maintainer label requires an explicit human landing decision after the native check settles. Before merge
Agent review detailsSecurityNone. PR surfaceOther -201. Total -201 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared test fixture, merge after the current macOS Swift check succeeds, and keep future catalog scenarios expressed through the same isolated filesystem boundary rather than reintroducing per-test setup and cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a test-fixture refactor, not a report of broken user behavior. Its retained scenarios directly exercise the real local-home catalog APIs in isolated test directories. Is this the best way to solve the issue? Yes: centralizing repeated test-only setup at the fixture boundary is the maintainable solution because it preserves direct calls to the production catalog while avoiding nine independently maintained filesystem/JSON cleanup paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0cad02313a9c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…ion-routing * origin/main: refactor(agents): remove stale runner state plumbing (#118495) test(gateway): skip servers for handler fixtures (#118581) test(tui): reuse real gateway PTY fixture (#118567) fix: keep command tests independent of ambient Gateway tokens (#118577) fix: show effective channel model in Telegram status (#118548) test(system-agent): reuse approval CLI fixture (#118572) test(macos): deduplicate Claude session catalog fixtures (#118571)
What Problem This Solves
The macOS Claude session catalog tests repeated temporary-home setup, transcript/index construction, catalog calls, response decoding, and cleanup across every case. That made the coverage costly to maintain and obscured the invariants each test protects.
Why This Change Was Made
Centralizes test-only fixture setup, encoding/decoding, catalog enumeration observation, and cleanup in one fixture while retaining every scenario and assertion. Production code and behavior are unchanged.
User Impact
No user-visible behavior changes. Maintainers get a smaller, clearer test suite with the same catalog regression coverage.
Evidence
+348/-549(net-201lines); production delta0.9tests,41#expectassertions, and32#requirechecks.9/9each).check-changedpassed on the exact patch: https://github.com/openclaw/openclaw/actions/runs/30794973768gpt-5.6-sol, xhigh) returned no findings and judged the patch correct (0.99).