Skip to content

macOS: accepted commandExecution approvals followed by WebSocket 1006 and interrupted turns #51996

Open

Description

@jk6k

Environment

  • ChatGPT desktop on macOS: 26.1002.52244, build 13536.
  • Local execution through exec_command with require_escalated.
  • Observations below are from 2026-10-08; all times are UTC.

Observed behavior

Local command requests remain pending for a long time. After approval is accepted, the app-server connection closes and the turn becomes interrupted. Tool results have said aborted by user even when I did not cancel the request.

This also occurred during a no-model health check intended only to print a fixed marker and the current process ID. No research data or model execution was needed for that check.

Selected diagnostic timeline

  • 04:39:00 and 04:39:02: the app sent decision=accept for two previously pending commandExecution approvals.
  • 04:39:03: the app-server WebSocket closed with code 1006 and no reason text; logs also reported Codex app-server is not available. It reconnected about two seconds later.
  • 07:18:17: I approved the no-model health-check request; the app logged decision=accept.
  • 07:18:21: the app-server WebSocket again closed with code 1006 and no reason text.
  • 07:18:23: it reconnected.
  • 07:18:26: a turn-completion notification was recorded; the task's recorded outcome was interrupted, with no execution output.

Earlier affected calls returned aborted by user after 1071.7s and aborted by user after 1944.1s, without an approval outcome, command output, session ID, or PID in the tool result. I did not intentionally cancel those calls.

Recovery attempted

Ordinary sandbox command execution returned successfully, which does not establish that the escalated path works. I fully restarted the desktop client and requested one new health check in the original task and execution mode. As of 07:38:15, the inspected app log contained repeated thread/read: thread access denied errors for the affected task, but no matching approval notification, decision, or terminal record for the new attempt. Its task status still appeared in progress without output.

Expected behavior

An accepted request should either return the command output and exit status or surface an explicit execution error. Connection loss should not be presented as an intentional user cancellation without evidence.

Limits and privacy

The timing establishes a repeated approval/connection-loss sequence, not the underlying cause. The access-denied errors after restart may be a separate issue. This is an incident report, not a deterministic reproducer for fresh tasks.

This report omits account information, local paths, task/turn/request IDs, research content, credentials, and full logs. No approval settings or state databases were changed to work around the issue.

Potentially related: #47838, although a common root cause has not been established.

Activity

  1. added
    bug
    app
    app-server
    connectivity
    sandbox
    on Oct 8, 2026
  2. NF0730 commented on Oct 31, 2026

    @NF0730

    Related (not identical) macOS durable WebSocket 1006 observation

    Sanitized read-only Desktop log review for 2026-10-28–30 JST found 24 distinct app_server_connection.closed code=1006 episodes (hostKind=durable, failureReason=unknown): 7, 8, and 9 by day. Each episode was followed by reconnect/initialization in the available logs (median 1.26 s, 23/24 under 3 s, one 13.83 s). Some thread/read errors occurred shortly after reconnection, but source-attested interruption or outcome of the active turn was not established.

    Important difference from this Issue: no authoritative association between these 24 disconnects and accepted command approvals was identified. Therefore this is supporting transport/recovery evidence, not a confirmed reproduction of the approval-specific failure or shared root cause. Multiple renderer/state notifications were counted as one underlying close per episode.

    Verification gate: correlate an upstream transport/approval fix PR and installed macOS Desktop build with natural-workload 1006 frequency and, separately, real turn/tool completion across reconnect. Reconnect success alone is not evidence of loss-free execution. No private thread IDs, paths, tokens or transcripts shared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugconnectivitysandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions