Skip to content

fix: update MCP cursor fixture capabilities - #164795

Merged
shakkernerd merged 1 commit into
mainfrom
fix/mcp-cursor-capabilities
Oct 4, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/mcp-cursor-capabilities

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Reproduced the sole TS2559 diagnostic on unchanged main 39b4bdbb64275524f8ee399d66bf07f0483787ca with the locked toolchain using CI=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).
  • The native affected-type selector chooses that same UI component test graph for this fixture.
  • All 43 selected static checks passed. The selected canonical core-test-ui-components graph then passed with the corrected fixture.
  • The selected Node baseline passed across 14 files. Focused execution of mcp-app-bridge.cursor.test.ts, mcp-app-security.test.ts, and mcp-app-bridge.test.ts passed all 11 tests across three files, exercising the installed transport and capability/bridge controls.
  • Independent engineering review and repository autoreview found no actionable issues in the exact candidate. The exact-head CI run passed, including check-test-types-core-2 and 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.
  • ClawSweeper reviewed the exact head, rated it Platinum, and reported no actionable findings. The required aggregate CI and security-review statuses are successful.

This reuses existing regression coverage and adds no test cases or production code.

@clawsweeper

clawsweeper Bot commented Oct 4, 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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 1:47 AM ET / 05:47 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: d0e3b9943e646d0f023850d8bcb48aeb83ebd832

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported fixture repair preserves meaningful existing coverage without expanding production scope.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR changes only test setup, with no production behavior or stored-data contract change. Reported compiler red/green and focused transport tests support the correction; no additional contributor runtime-proof gate applies.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR changes only test setup, with no production behavior or stored-data contract change. Reported compiler red/green and focused transport tests support the correction; no additional contributor runtime-proof gate applies.
Evidence reviewed 7 items Pinned introduced change: The introduced delta removes only the fourth positional true argument; no assertions, production code, dependencies, or configuration change.
Current-main defect remains: Fetched main still passes true where the current helper expects an optional extensions object. The helper's second argument enables serverResources and message support, so the corrected call retains the capabilities required by the fixture.
Retained regression contract: The complete fixture checks empty, whitespace-bearing, ordinary, and Unicode cursors for both list methods, including omitted and explicitly undefined initial cursors. Its imports establish use of the installed MCP App transport; this patch does not change that dependency contract.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #164790
Summary: This PR is the focused candidate fix for the linked fixture type-check issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

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

Labels

Label changes:

  • add P2: This repairs a concrete test-type contract failure with a narrowly bounded fixture change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR changes only test setup, with no production behavior or stored-data contract change. Reported compiler red/green and focused transport tests support the correction; no additional contributor runtime-proof gate applies.

Label justifications:

  • P2: This repairs a concrete test-type contract failure with a narrowly bounded fixture change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR changes only test setup, with no production behavior or stored-data contract change. Reported compiler red/green and focused transport tests support the correction; no additional contributor runtime-proof gate applies.

Evidence

What I checked:

  • Pinned introduced change: The introduced delta removes only the fourth positional true argument; no assertions, production code, dependencies, or configuration change. (ui/src/components/mcp-app-bridge.cursor.test.ts:13, d0e3b9943e64)
  • Current-main defect remains: Fetched main still passes true where the current helper expects an optional extensions object. The helper's second argument enables serverResources and message support, so the corrected call retains the capabilities required by the fixture. (ui/src/components/mcp-app-security.ts:103, dac9277a4126)
  • Retained regression contract: The complete fixture checks empty, whitespace-bearing, ordinary, and Unicode cursors for both list methods, including omitted and explicitly undefined initial cursors. Its imports establish use of the installed MCP App transport; this patch does not change that dependency contract. (ui/src/components/mcp-app-bridge.cursor.test.ts:1, d0e3b9943e64)
  • Capability and fixture history: The recorded capability patch removes the separate resource-support parameter and derives resource support from message support. The cursor fixture's earlier history provides a separate routing candidate connected to its pagination coverage. (ui/src/components/mcp-app-security.ts:119, 73149b26822a)
  • Verified merge result: The test merge's raw parents match fetched main followed by the exact PR head. Comparing that result with main shows only the fixture correction, with no removal of base-branch changes. (ui/src/components/mcp-app-bridge.cursor.test.ts:13, f4504a783444)
  • Related issue and supplied validation: UI test types fail after the MCP App capability helper signature changed #164790 identifies the same TS2559 failure and links its failing CI job. The captured PR body reports an original-defect compiler failure, corrected graph success, 43 static checks, a 14-file baseline, and 11 focused tests. These are contributor-reported results, not checks executed by this review. (d0e3b9943e64)

Likely related people:

  • Peter Steinberger: Raw commit 73149b2 adds ui/src/components/mcp-app-security.ts:119 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 73149b26822a; files: ui/src/components/mcp-app-security.ts)
  • ooiuuii: Raw commit 64772f5 adds ui/src/components/mcp-app-bridge.cursor.test.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 64772f5e249b; files: ui/src/components/mcp-app-bridge.cursor.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shakkernerd shakkernerd self-assigned this Oct 4, 2026
@shakkernerd
shakkernerd merged commit 42b9aee into main Oct 4, 2026
88 checks passed
@shakkernerd
shakkernerd deleted the fix/mcp-cursor-capabilities branch October 4, 2026 05:56
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the MCP cursor fixture now uses the current capability helper signature, restoring UI component test type-checking without changing cursor coverage.

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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

UI test types fail after the MCP App capability helper signature changed

1 participant