Skip to content

codex-tui: discard_side_thread_keeps_local_state_when_server_close_fails aborts with stack overflow #78

Description

@marksverdhei

Expected

cargo test -p codex-tui --lib discard_side_thread_keeps_local_state_when_server_close_fails passes.

Actual

thread 'app::tests::discard_side_thread_keeps_local_state_when_server_close_fails' has overflowed its stack
fatal runtime error: stack overflow, aborting
(signal: 6, SIGABRT)

Repro

On a clean checkout of clanker @ 2cb1d2c (linux, debug profile):

cargo test -p codex-tui --lib discard_side_thread_keeps_local_state_when_server_close_fails

Fails identically in isolation and in the full -p codex-tui run; it aborts the whole test binary, so the full suite cannot complete. Verified unrelated to any local diff (reproduces with a stashed-clean tree).

Likely an unbounded recursion or oversized stack frame on the server-close-fails path rather than a thread-stack-size tuning issue, since it also overflows when run alone.

Found during a desk wake-sweep (warren), 2026-08-11.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions