Skip to content

bug: RC1 refuses native Windows Codex send with lock_probe_unsupported #153

Closed

Description

@abruption

RC1 blocker from #150

Native Windows local Codex sending regresses after upgrading the existing pip-user install from 0.9.1 to 1.0.0rc1. The user explicitly activated a Codex test session. list discovers it, and doctor reports Codex available with its native executable and readable state DB. Version 0.9.1 queued the initial handoff to that same session successfully. On 1.0.0rc1, even send --dry-run with the exact UUID and explicit --codex-home is refused before queueing.

{"status":"unknown","selected":null,"reason":"active_writer_unverified","candidates":[{"savedThread":true,"writerLock":"unknown","reason":"lock_probe_unsupported","activity":"unknown"}]}

Error: Cannot verify every Codex writer for thread ...; nothing queued.

Environment: native Windows, Python 3.10.0, session-peer==1.0.0rc1, normal CPython pip-user installation, live Codex CLI session under the same Windows account. Reproduced through native PowerShell, independently of the SSH interpreter failure in #151. No credentials or conversation data attached.

probe_codex_writer_lock in session_peer_core/codex.py imports POSIX fcntl; ImportError returns lock_probe_unsupported. Strict multi-home writer resolution consequently refuses the documented native Windows path. An explicit home does not fix it.

Expected: supported native Windows Codex send can identify the intended live writer/home safely and submit once. Preserve fail-closed ambiguous-home behavior and submission-vs-ACK semantics; do not bypass it by pretending POSIX lock evidence exists.

Acceptance: Windows-native tests for live/inactive/ambiguous homes and unsupported inspection; live local CLI and MCP sends receive actual ACK on the Windows host; macOS/Linux home-resolution regressions remain green. Record any bounded Windows-specific contract explicitly. Runtime fix belongs to RC2 and blocks stable promotion.

Activity

  1. added this to the v1.0.0-rc.2 milestone on Sep 22, 2026
  2. added
    bug
    on Sep 22, 2026
  3. abruption commented on Sep 22, 2026

    @abruption
    OwnerAuthor

    Live candidate validation passed: native Windows LockFileEx reports the actual writer lock held; read-only Restart Manager enumeration identifies one owner, and process creation time + same-user SID + codex.exe identity are stable across two samples. No inactive opt-in or lock bypass is used. The candidate dry-run resolves explicit_live_writer. One real send queued successfully, and the user now confirms exact ACK WIN-CODEX-153-4712e8d0. Candidate remains unmerged/unreleased; native regression tests, MCP coverage and RC/hotfix mapping are still being completed.

  4. abruption commented on Sep 24, 2026

    @abruption
    OwnerAuthor

    RC4 five-host rerun rc4-rerun-02 completed 14,436.65 s. Native Windows Codex submissions at T0/T120/T240 were queued and the exact TUI ACKs were independently confirmed. This validates the RC2 Windows writer fix on the supported native path; no ambiguous-home workaround was used. Closing this RC1 regression for the v1.0.0 gate.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions