Skip to content

test(ui): restore Agent Tools loading skeleton coverage - #197063

Merged
jalehman merged 1 commit into
mainfrom
openclaw-9af/agent-tools-e2e-capabilities
Nov 11, 2026
Merged

jalehman merged 1 commit into
mainfrom
openclaw-9af/agent-tools-e2e-capabilities

Conversation

@jalehman

Copy link
Copy Markdown
Contributor

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.get and agents.list to this scenario only, retaining operator.read, both held tool requests, and both skeleton assertions. This follows the fixture correction in #197036.

Evidence

  • Isolated Mac Studio, Node 24.22.1 / Playwright 1.64.1 / Chromium 1248.
  • Adjacent main revisions: all 13 cases pass at 83872e599d57; the Tool catalog case fails at f8bd5cb6b4ba (fix: avoid misleading Tools settings without config access #196588). Current main 577da8a944e1 reproduces that failure.
  • Fixed file: 13/13 pass, 12.6 seconds, one worker, normal Chromium cleanup.
  • Targeted oxlint, oxfmt, tsgo:ui, and git diff --check pass.
  • Independent Astra subagent review: no P0–P2 findings. Static review; execution evidence was supplied separately.
  • Simplification: no production changes or new test cases; six added fixture lines. The dedicated test-line allocation covers exactly those six lines.
  • Broader CI is left to this PR. No CI-gating changes; no merge requested.

Focused command:

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner --maxWorkers 1 ui/src/e2e/settings-loading-skeletons.e2e.test.ts

Advertise the config and agent reads needed by the existing read-only scenario after #196588. Preserve both held tool requests and their skeleton assertions.
@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture does not advertise config.get, so the Tool catalog section stays unavailable and its assertion times out.
  • After: The fixture advertises the required reads, allowing both existing skeleton assertions to run.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and source-supported; execution evidence is a reported browser-harness result rather than independently inspected run output.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no shipped behavior; the reported Chromium run exercises the repaired mocked-Gateway scenario, while the inspected predecessor screenshots provide context only.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The existing Agent Tools browser case cannot reach the catalog loading assertion.
Reason: Restores distinct loading-state coverage through the existing fixture mechanism without changing product permissions or adding test cases.

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
Reviewed head: eae1493d4af2a06d66f10d961389ea7be873b747

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Agent Tools fixture capability declaration keeps the original intent (1fad6c0: The commit explicitly added advertised tool methods so browser fixtures could exercise capability-gated UI.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 34e6076 adds ui/src/e2e/settings-loading-skeletons.e2e.test.ts:151 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 34e607682be5; files: ui/src/e2e/settings-loading-skeletons.e2e.test.ts)
  • Patrick Erichsen: Raw commit 8a89271 adds ui/src/e2e/settings-loading-skeletons.e2e.test.ts:236 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8a8927149ff0; files: ui/src/e2e/settings-loading-skeletons.e2e.test.ts)

PR surface

Tests +6, Other +2. Total +8 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 1 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 9 1 +8

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a focused test-fixture repair with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused test-fixture repair with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 1:10 AM ET / 06:10 UTC.

@jalehman
jalehman merged commit 9348cea into main Nov 11, 2026
91 of 92 checks passed
@jalehman
jalehman deleted the openclaw-9af/agent-tools-e2e-capabilities branch November 11, 2026 06:18
@jalehman

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant