Repository navigation
fix: update MCP cursor fixture capabilities - #164795
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 October 4, 2026, 1:47 AM ET / 05:47 UTC. ClawSweeper reviewWhat this changesThe PR removes an obsolete capability argument from the MCP App pagination test fixture so it matches the current helper signature. Merge readiness✅ Ready for maintainer review Keep open: current main still contains the incompatible fixture call, and this focused correction preserves the existing cursor assertions. No actionable patch defect was found; the MEMBER-authored PR remains subject to normal landing gates. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI bridge forwards embedded MCP App requests to the Gateway. Its cursor regression test exercises tool and resource-template pagination through the installed App transport. flowchart LR
A[Cursor test fixture] --> B[Host capabilities]
B --> C[Installed App transport]
C --> D[Control UI bridge]
D --> E[Gateway request fixture]
E --> F[Exact cursor assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the fixture aligned with the existing capability owner while retaining exact cursor round-trip coverage. Do we have a high-confidence way to reproduce the issue? Yes: current-main source shows the boolean-to-object argument mismatch, and the related issue supplies the canonical failing type-check command. This read-only review did not execute it. Is this the best way to solve the issue? Yes: removing the retired fixture argument matches the existing helper contract without restoring obsolete production parameters or weakening type checking. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dac9277a4126. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: the MCP cursor fixture now uses the current capability helper signature, restoring UI component test type-checking without changing cursor coverage. |
Restore UI component test type-checking by updating the MCP cursor fixture to the current capability helper signature. Opaque cursor and resource capability coverage remains unchanged. Fixes openclaw#164790.
Fixes #164790
What Problem This Solves
The UI component test type check fails on current main when it reaches the MCP App pagination-cursor fixture. The fixture still supplies the former fourth positional boolean to
buildMcpAppHostCapabilities, but #164577 removed that parameter and moved the optional extension-capability object into its position. TypeScript reports TS2559, blocking the CI type lane independently of changes to MCP behavior.User Impact
There is no runtime or user-visible behavior change. This repairs the existing test setup so contributors can type-check the UI component suite while retaining its coverage of opaque pagination cursors. The tool and resource-template request paths, capability implementation, configuration, and dependencies remain unchanged.
Why This Change Was Made
Remove the obsolete fourth argument from the cursor fixture, matching the helper's current callers. The existing second argument remains
true, which is already responsible for advertising message and server-resource support. Omitting the fourth argument selects the default empty extensions object; it does not remove resource support or enable additional extension capabilities.All cursor assertions remain intact, including empty strings, whitespace, Unicode, and omitted versus explicitly undefined cursors. The fix belongs in the stale fixture rather than restoring the removed production parameter or weakening the compiler check.
Evidence
39b4bdbb64275524f8ee399d66bf07f0483787cawith the locked toolchain usingCI=true GITHUB_ACTIONS=true OPENCLAW_LOCAL_CHECK=0 node scripts/run-tsgo-core-test-shards.mjs --ci-graphs-json '["core-test-ui-components"]'(exit 2).core-test-ui-componentsgraph then passed with the corrected fixture.mcp-app-bridge.cursor.test.ts,mcp-app-security.test.ts, andmcp-app-bridge.test.tspassed all 11 tests across three files, exercising the installed transport and capability/bridge controls.check-test-types-core-2and all three Linux/Bun UI shards: 1,645 files, 23,533 tests passed, and four pre-existing skipped cases. The hosted log explicitly records the affected canonical type graph passing.This reuses existing regression coverage and adds no test cases or production code.