Skip to content

Vendor node_repl on macOS hangs about 1 in 8 on the first local-time conversion under the sandbox (ICU tz lookup blocks on launchd) #138

Open

Description

@SSFSKIM

Observation (#116 M2, 2026-10-14)

Vendor node_repl kernels under the Codex sandbox on macOS hang on the first local-time conversion made a few seconds into the process. Sampled stack of a hung kernel: ICU detectHostTimeZone → tzset → notify_register_tz → bootstrap_look_up2, blocked in mach_msg waiting on launchd. The trigger in production is toISOString in the facade's from/to conversion (the capabilities/history corpus case). Rates: vendor host hung 4 of 30 corpus runs; a sandboxed repro hung 15 of 80 on a late first use and 0 of 280 when the time zone is warmed at startup. Setting TZ does not help. Recorded in the #116 spec (Decision Log and Surprises, 3bc5b44).

Exposure

Vendor-routed macOS browser sessions today can hang roughly one time in eight on the first local-time conversion, until the 30 s cell timeout resets the kernel. The vendor binary cannot be patched.

Remedy

cua's own REPL host warms the time zone when its worker runtime loads (#116 M2, 8e3d148; 0 hangs in the verification runs). The remedy for users is the own host becoming the default (#116 M5 for Linux and macOS browser-only sessions; macOS computer-surface sessions follow #117). Until then this ticket documents the known vendor hang; the corpus oracle stays strict and re-runs vendor hangs rather than allowing for them.

Acceptance

Closed when no supported route runs a vendor node_repl on macOS, or when a vendor release without the hang is pinned.

Activity

  1. added
    bug
    status:deferred
    priority:P2
    on Oct 15, 2026
  2. SSFSKIM commented on Oct 15, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Found by #116 M2; own host warms the time zone at worker load (8e3d148). Remedy is the own host becoming default (#116 M5, #117). Vendor cannot be patched.

  3. SSFSKIM commented on Oct 15, 2026

    @SSFSKIM
    OwnerAuthor

    Addendum from #116 M2 task 3: the same tz-lookup hang can also hit at kernel/worker startup, about 1 in 600 starts. The own host handles it: each child announces runtime_ready (cua-only internal wire addition); a child not ready within 10 s is replaced, up to 3 starts. 600-iteration stress: 0 hangs, 2 startup blocks recovered. The vendor host has no equivalent guard.

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

    bugpriority:P2status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions