Repository navigation
Description
Summary
With macOS Stage Manager enabled, Codex Computer Use can select an inactive app's Stage Manager thumbnail instead of its real window. The thumbnail has off-screen/negative window coordinates, so ScreenCaptureKit fails its display lookup. That failed capture can then poison the shared capture service: subsequent captures of unrelated, valid on-screen apps also return SCStreamErrorDomain errors until the service is restarted.
Disabling Stage Manager resolves the issue.
Environment
- macOS:
27.0(26A5378n), Apple Silicon /arm64 - ChatGPT/Codex Desktop:
26.803.61601(build6396) - Computer Use plugin/runtime:
1.0.1000633 - Displays: one active built-in display
- Stage Manager: enabled when reproducing
- Screen Recording and Accessibility permissions: enabled for ChatGPT and Codex Computer Use
- Feedback session:
019ffaa1-04c8-7f82-a598-5ffa29e6aa2d
Actual behavior
Computer Use initially returned a screenshot for TextEdit, but it was a distorted Stage Manager thumbnail rather than the full application window.
Unified ScreenCaptureKit logs showed the selected thumbnail outside the active display:
SCContentFilter setContentsAndStreamTypeMacOS:
failed display lookup for windowBounds=<private> cgError=0 found=0
contentRect=[x=-271.000000 y=701.000000 width=154.000000 height=122.000000]
Computer Use then returned:
Computer Use server error -10005:
Error Domain=com.apple.ScreenCaptureKit.SCStreamErrorDomain Code=-3811
"Failed to start stream due to audio/video capture failure"
and later:
Computer Use server error -10005:
Error Domain=com.apple.ScreenCaptureKit.SCStreamErrorDomain Code=-3812
"Failed due to an invalid parameter"
After the TextEdit failure, a previously working Calculator capture also failed with -3812, showing that one invalid Stage Manager target can leave the shared capture service in a bad state.
Restarting only SkyComputerUseService did not reliably recover while Stage Manager remained enabled; the next target capture could immediately fail again.
Reproduction
- Enable macOS Stage Manager and leave its recent-app strip visible.
- Open TextEdit and Calculator.
- Switch away from TextEdit so it appears in the Stage Manager strip.
- Ask Codex Computer Use to inspect TextEdit with
get_app_state. - Observe either:
- a distorted/perspective Stage Manager thumbnail screenshot, or
SCStreamErrorDomain -3811/-3812.
- Ask Computer Use to inspect Calculator.
- Observe that Calculator can now fail with the same capture error even though its window geometry is valid.
Expected behavior
- Computer Use should activate and capture the real application window, not a Stage Manager thumbnail.
- Off-screen/thumbnail windows should be rejected before constructing the ScreenCaptureKit content filter.
- A failed window capture should not corrupt later captures for other applications.
- On
-3811or-3812, the service should discard the invalid filter/stream state and recover automatically.
Workaround and validation
- Disable Stage Manager in System Settings > Desktop & Dock.
- Restart the dedicated Computer Use capture service.
- Re-run captures.
After disabling Stage Manager:
- TextEdit changed from the distorted thumbnail to a normal full-window screenshot.
- Six alternating
get_app_statecalls across TextEdit and Calculator all succeeded. - No new
failed display lookuporSCStreamErrorDomainmessages appeared in the verification window.
Suggested guards
- Exclude Stage Manager strip thumbnails from candidate target windows.
- Validate that a target window intersects an active
SCDisplaybefore creatingSCContentFilter. - Prefer an actual on-screen standard window over off-screen/transformed representations of the same app.
- Recreate
SCShareableContent,SCContentFilter, and stream state after-3811/-3812. - Add a regression test where an app is in the Stage Manager recent-app strip, followed by a capture of a separate on-screen app.
Related issues
- Computer Use fails to start ScreenCaptureKit stream with SCStreamErrorDomain -3811 #30846 reports the same generic
-3811wrapper, but with a different suspected trigger (audio entitlement/helper lifecycle). This report includes a deterministic Stage Manager/off-screen-window trigger and the additional-3812poisoned-stream behavior. - [macOS] Computer Use PiP refresh loop can steal foreground focus under Stage Manager #37115 covers a separate Computer Use PiP/Stage Manager focus-stealing interaction.
Activity
noahhhi commentedon Aug 22, 2026
Additional macOS 27 reproduction showing failed display lookup is not limited to Stage Manager.
Environment:
Same helper/session comparison:
ScreenCaptureKit: failed display lookup for windowBounds= cgError=0 found=0
replayd: Failed to start stream due to audio/video capture failure
Because Finder succeeded immediately in the same process and TCC state was allowed, this is not a global Screen Recording permission failure. The target-window/display association appears stale or invalid across Spaces/background window state even without Stage Manager.
Suggested guard: validate target-window intersection with an active SCDisplay, refresh SCShareableContent before building the filter, reject stale/off-Space candidates, and retry once with a new stream after -3811.
No private window contents or full system logs are included.
Kombuchameister commentedon Sep 8, 2026
I can reproduce this on macOS 26.5.1 Apple silicon without Stage Manager.
In a fresh Computer Use session, Finder inspection succeeds. A menu-bar-only TypeWhisper app fails when its Settings window is on another Space, or when no standard window is open:
Computer Use server error -10005:
SCStreamErrorDomain Code=-3811
“Failed to start stream due to audio/video capture failure”
The unified log records:
ScreenCaptureKit: failed display lookup for windowBounds= cgError=0 found=0
Moving the Settings window onto the active Space makes capture succeed and returns the normal accessibility tree. Closing that window then produced SCStreamErrorDomain -3812 (“Failed due to an invalid parameter”). Restarting the capture service alone did not make the off-Space/no-window target captureable.
This suggests the issue also affects stale or off-Space window candidates and menu-bar-only apps with no captureable standard window. The service should validate that the selected window intersects an active display, refresh shareable content, reject off-Space/no-window targets, and return an actionable diagnostic instead of the generic -10005 error. An explicit launch/open path should also be separate from screenshot capture for status-item-only apps.
joey-david commentedon Sep 28, 2026
Also affected by this bug, had 6 Sol diagnose and fix:
Fresh test on macOS 27.0, ChatGPT/Codex 26.924.22138 (build 11645), Computer Use helper 26.923.1001242, one built-in display. Stage Manager stayed on throughout; "Show recent apps" stayed off. No Screen Recording or Accessibility permission changes were needed.
I tested a focus-first workaround: activate the target app with AppleScript (
tell application id "com.apple.Safari" to activate, with the corresponding bundle ID for each other app), then call Computer UsegetApp/getScreenshot. In alternating tests, Safari, Brave, and System Settings all returned their real full windows, not Stage Manager thumbnails: Safari 1472 x 1846, Brave 2498 x 1846, System Settings 1480 x 1846. Each app captured twice after switching away and back. A Safari scroll also worked; its accessibility scroll-bar value changed from 0.452 to 0.274.This is only a workaround. It requires bringing each target app to the foreground and does not fix capture of an inactive app. With the same Stage Manager setup, capturing an inactive Safari window had previously failed with -3811; enabling the recent-app strip had allowed a capture of its thumbnail instead of the real window. The current test suggests that explicit activation makes the correct window available before the helper picks a ScreenCaptureKit target.
The native capture-helper implementation does not appear in the public
openai/codexsource (public code search found noSCContentFilteruse), so I cannot make a meaningful PR against it. Please have the helper select an on-screen standard window after activation, reject Stage Manager thumbnails/off-display candidates, and recover with a fresh stream after -3811/-3812. A regression test should alternate foreground and inactive apps with Stage Manager on and verify full-window pixels, not only accessibility output.dterenyi commentedon Sep 30, 2026
I’m still running into this with Safari on ChatGPT/Codex
26.928.20755(build12246), Computer Use helper26.924.1001281, and macOS27.0(26A428, Apple Silicon).With Stage Manager on, I leave Safari behind the app I’m working in and ask Codex to inspect it. Codex sometimes gets the small tilted Stage Manager preview instead of the full Safari window, or fails with ScreenCaptureKit
-3811/-3812. Restoring Safari from its minimized state didn’t reliably help.One additional detail from the capture logs may help narrow it down:
Turning Stage Manager off gave a full
2924 × 2168capture and working UI actions. Restarting onlySkyComputerUseServiceand resetting the REPL briefly recovered full capture with Stage Manager back on, but the thumbnail problem returned during background use. No Screen Recording or Accessibility permissions were changed during these tests.I need Codex to keep working in Safari while I use another app. Bringing Safari to the foreground interrupts that workflow. Please test the fix with Safari inactive and Stage Manager on, checking that both full-window capture and input work without taking focus.
lyc280705 commentedon Oct 1, 2026
@adams-oai — you previously helped with the macOS Computer Use helper issue in #32032. Could you help route this report to the ScreenCaptureKit / Stage Manager owner, and clarify whether a native-helper fix is being tracked?
Fresh retest on October 1, 2026, with Stage Manager enabled:
After resetting the Computer Use REPL connection:
cua.getApp('com.apple.systempreferences')failed withSCStreamErrorDomain -3811.getAppandgetAXStateAndScreenshotsucceeded and returned an actual full-window screenshot.-3812. The exact failing substep within that combined call is not established.The corresponding system log again contains:
Correction to my initial description: I had omitted that manual focus change. This retest shows successful capture after activation, followed by failure after I returned focus to Codex. It does not demonstrate that capture spontaneously stopped working while System Settings remained in the foreground. The relevant failure condition is capturing/operating the target after it loses foreground focus with Stage Manager enabled.
Is there an internal fix or a target helper release we can test for this background-window case? A regression test should activate and capture a target, switch focus back to Codex or another app, then verify full-window capture and continued input with Stage Manager still on. Thank you.
sparkymossor6589-ux commentedon Oct 2, 2026
Additional real-user reproduction on macOS 27.0.1 (build 26A434), using Codex desktop Computer Use / unified-computer-use to inspect WPS Office.
Observed sequence:
Impact: this blocked an actual WPS page-inspection task and led to repeated permission/restart troubleshooting even though permission was already enabled.
This supports Stage Manager as a relevant trigger in another environment, but we have not established the internal cause: we did not collect off-screen window geometry, did not observe -3812 in this session, and did not re-enable Stage Manager to perform an A/B retest.
Please consider filtering Stage Manager thumbnail windows, automatically recovering failed ScreenCaptureKit streams, and providing a diagnostic that distinguishes capture failures from missing screen-recording permission. No user documents, screenshots, private paths, or full conversation logs are attached.
aspatic commentedon Oct 8, 2026
I can also reproduce this on the following current setup:
In the same chat, we tested native Computer Use against Google Chrome and System Settings:
Computer Use server error -10005/com.apple.ScreenCaptureKit.SCStreamErrorDomain Code=-3811(audio/video capture failure).-3811error.Stage Manager had been enabled during earlier successful Computer Use sessions. Both macOS and the desktop app have been updated since then, so we cannot isolate which update introduced the regression. The toggle comparison above consistently identifies Stage Manager as the trigger on this setup, but does not establish the underlying cause.
Disabling Stage Manager is a working workaround here. Adding this as another reproduction on macOS 27.0.1 and a newer desktop build.
Bentley4444 commentedon Oct 9, 2026
Sharing a successful workaround on Mac, build 26.1002.52244. Finder worked, but other apps failed with ScreenCaptureKit errors -3811/-3812.
After turning off Stage Manager and bringing each target app to the foreground, I successfully tested Mail, Airmail, Reminders, Calendar, WhatsApp, Messages, FaceTime, Notes, Safari, Spotify and ONLYOFFICE. Messages included a confirmed SMS delivery using “Send as Text Message.”
I changed both Stage Manager and foreground-window handling, so I haven’t isolated which was necessary. Hopefully this helps others with the same problem and gives your team another successful workaround report.
mini-1235 commentedon Oct 9, 2026
Additional reproduction on October 9, 2026:
defaults read com.apple.WindowManager GloballyEnabledreturned1.cua.getApp("com.netease.163music")failed twice with ScreenCaptureKitSCStreamErrorDomain -3811: "Failed to start stream due to audio/video capture failure".cua.getApp("com.apple.calculator")returned the same-3811error.cua.getApp("com.apple.systempreferences")also returned the same-3811error.-3811. This was a client session reset, not a restart of the native capture helper.The user reports this is recurring, not their first occurrence.
A later retest was blocked before capture with "Computer Use was not approved to use Calculator"; System Settings was also refused. This is a distinct approval-layer blocker, so that retest cannot establish whether the capture failure persists. Native helper inspection was also blocked by the current session's process-inspection restriction.
The Stage Manager workaround has not yet been applied or validated in this reproduction. Enabled Stage Manager is a correlation; the selected window geometry and exact cause have not been established. Please investigate cross-app capture recovery and provide actionable diagnostics distinguishing capture errors from app-approval refusals.
No private screenshots, account details, or full logs are attached.
mini-1235 commentedon Oct 9, 2026
Follow-up to the reproduction above:
1 + 1 = 2.SCStreamErrorDomain -3811. Immediately afterward, Calculator acquisition returned the same-3811, despite its earlier success. This sequence suggests shared capture-service failure state; it does not establish the exact cause.SkyComputerUseServiceandSkyComputerUseClientin Activity Monitor. Their exact intervening actions were not independently verified.-3811occurred during these successful calls.Capture recovered, but a durable fix and root cause remain unverified. Please investigate why a failed acquisition can be followed by failure of a previously working app, and whether the capture service can recover automatically without manual helper cleanup. The separate app-approval refusal should also provide actionable guidance when approval prompts are disabled.
NemuKei commentedon Oct 9, 2026
Adding a recovery observation on a newer desktop build:
With Stage Manager enabled, two earlier Computer Use attempts to inspect System Settings failed with error -10005 and ScreenCaptureKit SCStreamErrorDomain -3811.
After I turned Stage Manager off, Computer Use successfully captured System Settings > Desktop & Dock on October 9, 2026 at 23:05:44.972 UTC. The captured settings state also confirmed that Stage Manager was off.
Stage Manager was not re-enabled for an ON/OFF/ON comparison. This records a successful capture after disabling it, but does not establish the underlying cause or a durable fix.
No screenshots, personal information, local paths, or session identifiers are included.
katashing commentedon Oct 12, 2026
P0 escalation requested — October 12, 2026
The user explicitly requests P0, the highest priority, for this issue. This supersedes the earlier P1 request.
The user reports that enabling macOS Stage Manager makes Computer Use unusable, blocking their Computer Use workflow while Stage Manager is enabled.
Please treat this as a P0 escalation request: urgently triage it, route it to the team responsible for native Computer Use/window capture, and prioritize a durable fix. Please acknowledge the escalation and provide the team's priority assessment, current progress, and a target release or ETA when available. The expected behavior is that Computer Use remains functional with Stage Manager enabled; disabling a normal macOS window-management feature should not be the long-term requirement for using it.
This follow-up records the user's current report and requested priority. P0 is the user's request, not a claim that maintainers have assigned that priority. We have not independently reproduced the Stage Manager failure in this reporting session and are not claiming a verified root cause or specific error code. Please use the existing reproductions in this issue to guide investigation, including foreground/background window transitions with Stage Manager enabled.
中文补充:用户明确将优先级要求提升为 P0(最高优先级),取代此前的 P1 请求。开启「台前调度(Stage Manager)」后 Computer Use 无法使用,相关工作流程被阻断。要求立即排查、转交负责团队并优先修复,同时确认收到升级请求,反馈优先级评估、处理进度及可提供的修复版本或时间。P0 是用户提出的要求,并不代表维护团队已经按 P0 定级;本次反馈会话中尚未独立复现。
josefshamstr commentedon Oct 13, 2026
Additional reproduction on October 13, 2026, using WhatsApp through unified Computer Use.
Environment read from the installed system:
Observed during the same chat:
This was an observed workflow, not a controlled ON/OFF/ON test: the Stage Manager setting was reported by the user, and we did not inspect native window geometry or isolate the precise internal cause.
The user wants to keep using Stage Manager. Please prioritize correct selection of the real app window, capture recovery, and a regression test covering inactive apps with Stage Manager enabled.
No private chat text, screenshots, local paths, or full session logs are attached.
AustinConlon commentedon Oct 18, 2026
I filed this to Apple: FB25233089.
xiroqs commentedon Nov 4, 2026
Adding a related native-app observation to this existing issue to avoid a duplicate report. The thumbnail-like image resembles the reports here and in #53989, but the underlying cause and a Stage Manager relationship have not been established in this case.
Environment
Installed metadata was read on November 3, 2026, 23:47 UTC:
com.openai.codex).com.openai.sky.CUAService).unified-computer-use26.1027.61615 andcomputer-use1.0.1001641.The helper value is from the bundled application's metadata; plugin values are from installed cache manifests. Their correspondence to the runtime loaded during each earlier trial was not independently verified.
Observed sequence and results
The target is a signed, local arm64 macOS application built with SwiftUI/AppKit, including NSHostingView/NSScrollView. Its private name, code, paths and data are omitted.
cua.getAppinterface, then open its Settings window with Command-comma.cua.getApp('com.apple.dock')with -10005 timeoutReached. One trial after Control-F3 also timed out. No Dock item was selected because the target could not be identified.The Dock failure occurs at an API boundary that combines acquisition and initial observation; the failing internal stage is unknown. It is not evidence of an approval refusal or proof that Dock is unsupported. This report does not claim that the Dock timeout is the same failure as the ScreenCaptureKit -3811/-3812 errors in earlier reports.
Expected result and impact
The official capture should return the readable, actual window corresponding to the accessibility state, or explain why it cannot. This blocks verification of a Settings UI-scale change and subsequent real mouse editing. Accessibility text alone is insufficient to verify the visual layout and mouse targeting.
No blind coordinate input was sent. The test application was quit normally, the application and its worker were confirmed absent, settings were restored, and the Computer Use JavaScript session was reset. No OS/security settings or production data were changed for these trials.
Requested investigation
Please inspect the selected native window ID, capture input rectangle/output scale, standard-window versus thumbnail selection, and the ordering of window activation and capture. The available macOS public interface did not expose those target details for this investigation.
The current evidence does not establish a Stage Manager setting, an on/off comparison, a root cause, or a durable recovery. A supported diagnostic or recovery path that preserves normal OS settings would help us complete the blocked GUI verification.
No screenshots, source files, personal details, local paths, raw logs, or session transcripts are included in this comment.
techbantu commentedon Nov 15, 2026
I'm reproducing a closely related issue in the new ChatGPT desktop app on macOS, specifically with Appshots in Work/Codex conversations.
With Stage Manager enabled, capturing Google Chrome sometimes produces the small, transformed Stage Manager window preview instead of the actual full application window. The resulting attachment is too small to read properly.
With Stage Manager disabled, the same application can be captured normally.
Appshots should identify and capture the real application window, even when Stage Manager is enabled, rather than capturing its preview thumbnail.
Please include Appshots in the Stage Manager capture regression tests. Users shouldn't have to disable a macOS window-management feature to take readable screenshots.
WangAxerold commentedon Nov 25, 2026
Codex Computer Use on macOS: Stage Manager thumbnails fail with -3811, and the capture stream stays open afterwards
Versions: ChatGPT desktop 26.1111.21308 → 26.1120.50957 (same behavior on both), Codex Computer Use 26.1111.1001923 → 26.1119.1002056, Codex CLI 0.172.0, macOS 27.2.1 (26B131), Apple Silicon. Stage Manager on.
1. Window in the Stage Manager strip →
SCStreamErrorDomain -3811(adds data to #38348)sky.get_app_state({app:"com.apple.finder"})failed every time withComputer Use server error -10005: ... SCStreamErrorDomain Code=-3811while Finder's only window sat in the Stage Manager strip (window bounds about 171×129 at x≈-266). Afteropen -a Finderbrought the same window to center stage (1155×512), the same call returned the window title at once. Updating the app and restarting the Computer Use service didn't change it; approval and Screen Recording were in place.Ask: bring the target window to the stage (or capture the real window, not the thumbnail) before capturing, or return a clear "window is a Stage Manager thumbnail" error instead of a generic -10005.
2. The capture stream stayed open after the call
After the successful read, macOS kept showing "ChatGPT — currently sharing" with a live preview of that Finder window (file names visible) until the user clicked Stop Sharing, minutes later. While it was open, another tool's full-display capture on the same Mac (Claude Code's computer-use screenshot) kept timing out; after stopping the share it still timed out, and only a reboot fixed it. After the reboot the other tool captured fine, with and without a Sidecar display attached.
Ask: end the ScreenCaptureKit stream when the call finishes, so the share indicator goes away and other capture clients are not affected.
3. Smaller
Sky Computer Use native pipe startup failed; a new session worked. A clearer "restart the session after an update" error would help.