Skip to content

chore(mothership): sync the computer-use contract copies - #9105

Merged
waleedlatif1 merged 1 commit into
stagingfrom
chore/sync-computer-use-contract
Oct 16, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
chore/sync-computer-use-contract

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

This regenerates the two copies of the mothership computer-use contract with the worker's bun run contracts:sync:

  • apps/sim/lib/mothership/generated/computer-use.ts
  • packages/desktop-bridge/src/computer-use.generated.ts

The source change is in simstudioai/mothership#720. The scroll refine callback's parameter now accepts number | undefined for deltaX/deltaY, so it typechecks under exactOptionalPropertyTypes, and the two scroll branches are re-wrapped to the formatter's line width. Runtime behaviour does not change: the refine body and the schema are identical.

Merge order

Merge this first. Mothership's contract-sync check compares these files byte for byte with the worker source, and mothership#720 then goes green on the computer-use step.

Verification

  • After the sync, check:contract-sync run from the mothership branch against this branch reports no computer-use drift.
  • bun run type-check in packages/desktop-bridge passes.
  • Both files are generated and excluded from biome.

@vercel

vercel Bot commented Oct 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 16, 2026 2:54am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Updates both generated computer-use contracts so hasScrollDistance explicitly accepts undefined for deltaX and deltaY.

  • Scroll helper types now allow explicitly undefined offsets.

Reviews (1) · Last reviewed commit: "chore(mothership): sync the computer-use..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 1469aa2 into staging Oct 16, 2026
56 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/sync-computer-use-contract branch October 16, 2026 03:07

This branch was previously deployed

1 inactive deployment
Preview — 7b4240e7 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant