Repository navigation
fix(ci): clear the unused Control UI chat export - #207270
Conversation
Keep the history request helper private after #207173 and cover the cached snapshot through navigation-intent prefetch.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis 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. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR makes the chat snapshot request helper private and moves its coverage to navigation-intent prefetch. Example: Prefetch agent:main:quiet-activity with a quiet sessions_yield result.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a focused cleanup still needed on the fetched main, with no actionable code findings. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI navigation intent triggers background chat.history requests, prepares returned messages, and stores snapshots for later conversation opening. flowchart LR
A[Navigation intent] --> B[Session prefetch]
B --> C[Private snapshot helper]
C --> D[Shared history request]
D --> E[Gateway]
E --> D
C --> F[Chat snapshot cache]
Technical reviewBest possible solution: Keep the helper private and retain the replacement coverage through the existing prefetch owner. Do we have a high-confidence way to reproduce the issue? Source confirms the exported helper has only same-module production callers and a direct external test consumer on the base; the unused-export scan was reported by the author and was not rerun during this read-only review. Is this the best way to solve the issue? This is the smallest complete cleanup: remove the unused export and exercise its existing behavior through the production prefetch boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 63c0dff88bb8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +20. Total +20 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 28, 2026, 12:54 AM ET / 05:54 UTC. |
|
Merged via squash.
|
Keep the history request helper private after openclaw#207173 and cover the cached snapshot through navigation-intent prefetch.
Related: #207173
What Problem This Solves
The production unused-export check flags a Control UI chat history helper after #207173 moved both production callers into the same module. A direct test import was the only remaining external reference.
User Impact
The production scan no longer reports the chat snapshot helper. The Control UI still opens and prefetches chat history through the same code.
Why This Change Was Made
Keep
requestChatSessionSnapshotprivate to its owner. Exercise navigation-intent prefetch through the existing fixture and assert the cached messages and the unchanged Gateway response. The earlier-page test still asserts the same message preparation. Production LOC is flat. Test LOC is +20.Evidence
pnpm check:changed --staged --timedpassed, including zero findings in all three Knip export scans, with the exact fix(ci): keep the harness request type internal #207239 harness patch temporarily applied for integration proof.d8c456001c10d8.