πΎ Open Computer Use β Open-Source Alternative to Codex Computer Use
[2026-09-08 09:34] | Task: Make the default drag path legible
π€ Execution Context
- Agent ID:
Claude Code - Base Model:
Claude Fable 5.1 - Runtime:
macOS 26 / Swift 6.3.3 (Command Line Tools)
π₯ User Query
Pick up the drag investigation and work on a fix or clearer docs for the open GitHub issue (#53:
dragexecutes without error but performs no window move / text selection).
π Changes Overview
Scope: packages/OpenComputerUseKit, skills/open-computer-use, docs/
Key Actions:
- [Delivery path helpers]: added
DragDeliveryPath(app_post/global),dragDeliveryPath(environment:),dragDeliveryNote(for:)andappendingDragDeliveryNote(to:path:)next toglobalPointerFallbacksEnabled.performDragEventnow returns the path it used anddraginserts the note as a text content item after the snapshot text and before the screenshot, soprimaryTextis unchanged. - [Tool description]: the
dragMCP tool description now states that the default path posts events directly to the target app, cannot drive window-server drag sessions (window moves, text selection, Finder drag-and-drop), and that those requireOPEN_COMPUTER_USE_ALLOW_GLOBAL_POINTER_FALLBACKS=1in the server process environment. This mirrors whatclick_methodalready says aboutglobal. - [Tests]: unit tests for the path decision, the note wording, and the content-item placement with and without a screenshot; the tool-definitions test now checks the
dragdescription. - [Docs]: new
Drag Deliverysection inskills/open-computer-use/references/usage.md, the drag case added to theSKILL.mdguardrail,docs/ARCHITECTURE.mdupdated, and a feature release note row added.
π§ Design Intent (Why)
The default CGEvent.postToPid path was chosen deliberately on 2026-04-22 so drag never moves the user's real pointer. Its cost is that pid-targeted events never reach the window server, so a window move, drag-select or Finder drag-and-drop returns success with no effect. Two reporters on issue #53 read that as a bug because neither the tool description nor the result said which path ran, and the rationale lived only in the Chinese architecture and security docs. This change keeps the default and the safety gate exactly as they are and makes the outcome self-describing at the two places a caller actually looks: the tool schema before the call and the result after it. A drag_method parameter with click_method parity was considered and left out to keep the change small; it can follow if wanted.
π Files Modified
packages/OpenComputerUseKit/Sources/OpenComputerUseKit/ComputerUseService.swiftpackages/OpenComputerUseKit/Sources/OpenComputerUseKit/ToolDefinitions.swiftpackages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swiftskills/open-computer-use/references/usage.mdskills/open-computer-use/SKILL.mddocs/ARCHITECTURE.mddocs/releases/feature-release-notes.md