👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
[2026-05-07 16:38] | Task: Stabilize Feishu Electron snapshots
Execution Context
- Agent ID:
Codex - Base Model:
GPT-5 - Runtime:
macOS local CLI/MCP
User Query
对比
computer-use与open-computer-use操作 Feishu 是否正常,重点验证给 xuyusong 发消息、排查open-computer-useUI tree / screenshot 偶发不稳定,并先验证再修复、修复后再验证。
Changes Overview
Scope: macOS snapshot rendering in OpenComputerUseKit
Key Actions:
- [Electron AX tree]: Increased the AX traversal depth budget and compressed empty generic wrappers so Feishu/Electron WebView content can expose chat messages and the entry area within the existing 500 node cap.
- [AX noise filtering]: Stopped treating empty strings,
selected=false,expanded=false, andAXScrollToVisibleas meaningful output, reducing tree noise and making action-critical nodes visible sooner. - [Screenshot timeout]: Added a ScreenCaptureKit capture timeout so screenshot stalls omit the image block instead of blocking the full app state call.
- [Smoke reliability]: Made the smoke suite disable the app-agent proxy for
.build/debug/OpenComputerUse mcp, so local smoke verifies the just-built server and visual cursor observation file. - [Verification]: Compared official
computer-useand fixed localopen-computer-useagainstcom.electron.lark; both sent test messages to xuyusong after the fix.
Design Intent (Why)
Feishu is an Electron app, and its WebView exposes a much deeper and noisier AX tree than native AppKit controls. The old renderer stopped at depth 16 and preserved empty wrapper nodes, so the screenshot could be present while the useful UI tree missed the chat input. The fix keeps the global 500-node safety cap but spends that budget on semantic nodes.
Files Modified
packages/OpenComputerUseKit/Sources/OpenComputerUseKit/AccessibilitySnapshot.swiftpackages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swiftapps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swiftdocs/ARCHITECTURE.mddocs/RELIABILITY.mddocs/exec-plans/completed/20260507-feishu-electron-snapshot-stability.md