Repository navigation
fix(computer): successful input fails with older Mac nodes - #137755
Conversation
|
Codex review: needs maintainer review before merge. What this changesAccept optional numeric cursorX and cursorY fields in computer-action receipts while retaining strict validation. Example: An older paired Mac returns {"ok":true,"cursorX":12.5,"cursorY":-4} after keyboard input.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep open: current main and v2026.10.5 still reject successful receipts from older Macs, and this PR provides a focused compatibility repair with no actionable correctness findings. Priority: P1 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe computer tool dispatches desktop actions through the Gateway to a paired node, then validates its receipt before returning the outcome to the model. flowchart LR
A[Model requests input] --> B[Computer tool]
B --> C[Gateway dispatch]
C --> D[Paired Mac executes input]
D --> E[Shared receipt validator]
E --> F[Tool result]
Technical reviewBest possible solution: Keep the existing strict receiving schema and admit only the two optional numeric fields emitted by shipped older companions. Do we have a high-confidence way to reproduce the issue? Yes, from source: v2026.8.1 returns numeric cursor fields after dispatch, and current main rejects those fields after invocation; no runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? The existing shared schema is the smallest complete fix: producer-only changes cannot update installed companions, and no second parser or permissive fallback is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aba2412fdb7b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +42, Docs +2. Total +47 across 4 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (3 earlier review cycles)Reviewed October 21, 2026, 4:17 AM ET / 08:17 UTC (Revision 4). |
Bind native input and private references to the exact execution UUID and original live Gateway route. Reuse the canonical invocation cancellation registry; fence admission, drain work, release only owned input and retire references before close completes. Wrong or stale closes cannot affect a successor, and closing an unacquired execution does not fabricate release. Make HTTP/RPC requests, CLI/MCP captures and Copilot attempts own the tools they construct through final cleanup. Remove TTL-driven executable tool recreation and unissued bearer/header authority. Retain cleanup across warm CLI transfer; construct Copilot through the existing placement-bound host surface. Keep returned output and cause diagnostics through the shared result-finalization prerequisite. Raw clients must reuse their execution UUID and close in finally. Gateway and Mac companion must be upgraded together for this ownership repair. No protocol version, schema, dependency, configuration or product timeout change is introduced. CUA ownership remains separate. Lifecycle-only split of #136049 (paired Mac cleanup and failure preservation), related to #135944 (cleanup hides its cause). Depends on #137821 (CLI actions replay after continuity failure); receipt compatibility is #137755 and acknowledged worker outcomes are #137828. Already-landed Talk, Android and sibling reroute changes are not repeated. Validation: 2277 targeted tests across 75 files plus five doctor-gate tests; 39 checks for the exact 78 non-Swift integrated paths; full package build; 107 Mac owner tests and 1629 shared tests in the isolated Mac VM, no skips; fresh isolated Codex autoreview, two complete chunks, P0 scoped-clean. All 98 integrated source files match the tested/reviewed input. Real signed companion/input proof remains pending; these are not live desktop claims. Lifecycle-only production +577, tests +2389, test support +358, tooling +24, docs +40, assertion ratchet -1. Growth supplies exact native-route and request/capture/attempt lifetime ownership; old parallel lifetime paths are removed rather than retained as compatibility shims.
216ad84 to
15d9f27
Compare
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
@clawsweeper re-review |
Codex Review SummaryThis 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. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
(cherry picked from commit 43bb344)
What Problem This Solves
Fixes successful computer input being reported as a contract failure when a paired Mac returns cursor coordinates from an older app version.
User Impact
Successful receipts from independently updated older Macs are accepted. The receiver permits only the two known optional numeric fields; unrelated fields and invalid types remain rejected.
Why This Change Was Made
The closed schema at
src/plugins/computer-use-contract.ts:338omitscursorXandcursorY. The tool validates the receipt after dispatch atsrc/agents/tools/computer-tool-node.ts:586, so this error can follow input that already happened.The released
v2026.8.1executor dispatches the action and then returns these coordinates. #134689 corrected newer producers but could not change already-installed companions. Adding the fields to the existing receiving schema restores that shipped contract without a second parser or a permissive fallback.Evidence
6544dd51f0ff64f8db6033de696aacd1e5c6628c: both object/JSON receipt regressions fail withCOMPUTER_CONTRACT_MISMATCHafter one dispatch; 37 existing tool tests pass. Vitest 119.02s, wrapper 152.51s. The runner stops after the failing tool shard, so no base schema-suite result is claimed.Related: #135944 (receipt-validation portion only; lifecycle work is separate).
Current CI and review
Exact-head CI
39565050019succeeded. The final CI gate and dependency review are green through publisher39567611137. Fresh ClawSweeper review39567309750reviewed this head at 08:17 UTC with zero findings and no before-merge requirements; it keeps the disclosed older-companion live-proof gap as an optional follow-up. No merge was attempted.