Repository navigation
test(ui): restore Agent Tools loading skeleton coverage - #197063
Conversation
Advertise the config and agent reads needed by the existing read-only scenario after #196588. Preserve both held tool requests and their skeleton assertions.
|
🦞👀 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. What this changesThis PR advertises agents.list and config.get in the existing Agent Tools loading fixture and records its six-line test allocation. Example: The browser test opens /settings/agents/main/tools with operator.read while tools.catalog and tools.effective remain pending.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it narrowly restores useful browser coverage without changing production behavior or weakening access checks; no correctness findings were identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser fixture supplies Gateway handshake capabilities and RPC responses; Agent Settings uses those capabilities to decide which data and loading sections to present. flowchart LR
A[Browser test fixture] --> B[Mock Gateway handshake]
B --> C[Agent Settings access owner]
C --> D[Agent Tools page]
A --> E[Held tool responses]
E --> D
D --> F[Preview and catalog skeleton assertions]
Technical reviewBest possible solution: Keep the fixture aligned with its required advertised reads while preserving the existing production access owner and both independent loading assertions. Do we have a high-confidence way to reproduce the issue? Source inspection establishes that the original fixture lacks advertised config.get access required to render the catalog; the author also reports an adjacent-revision failure and passing repaired suite, which this review did not execute. Is this the best way to solve the issue? The smallest complete fix is to declare the reads already supplied by this scenario; no new helper, production change, timeout adjustment, or weaker assertion is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3031a32908b4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +6, Other +2. Total +8 across 2 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 11, 2026, 1:10 AM ET / 06:10 UTC. |
|
Merged via squash.
|
) Advertise the config and agent reads needed by the existing read-only scenario after openclaw#196588. Preserve both held tool requests and their skeleton assertions.
What Problem This Solves
Fixes the Agent Tools loading-skeleton E2E case timing out before it reaches the Tool catalog after #196588.
User Impact
No product behavior changes. The existing browser test again covers both independent tool-loading states without weakening read-access checks.
Why This Change Was Made
The fixture supplied configuration and agent responses but did not advertise those reads. Add
config.getandagents.listto this scenario only, retainingoperator.read, both held tool requests, and both skeleton assertions. This follows the fixture correction in #197036.Evidence
83872e599d57; the Tool catalog case fails atf8bd5cb6b4ba(fix: avoid misleading Tools settings without config access #196588). Current main577da8a944e1reproduces that failure.tsgo:ui, andgit diff --checkpass.Focused command: