Skip to content

Add opt-in idle timeout for stalled streams - #9

Merged
dannymitchelldev merged 1 commit into
mainfrom
codex-getorli/idle-timeout
Nov 17, 2026
Merged

dannymitchelldev merged 1 commit into
mainfrom
codex-getorli/idle-timeout

Conversation

@dannymitchelldev

Copy link
Copy Markdown
Owner

Summary

  • Add opt-in --idle-timeout-ms in the CLI and idleTimeoutMs in the library.
  • Start the timer after the first nonempty text delta and reset it on each subsequent one. Keep the overall deadline independent.
  • Preserve exact partial output on idle expiry, report a distinct timeout diagnostic, and return CLI exit code 124.

Test results

  • npm run check passed. Type checking, all 165 tests, the packed-package smoke test, and offline Workers verification passed.
  • Focused tests cover stalled streams, timer resets on text, empty frames, overall deadline precedence, timer cleanup on success, and CLI diagnostics and exit codes.
  • git diff --check passed.

Closes #8.

@dannymitchelldev
dannymitchelldev merged commit d32b8d8 into main Nov 17, 2026
4 checks passed
@dannymitchelldev
dannymitchelldev deleted the codex-getorli/idle-timeout branch November 17, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an opt-in idle timeout for stalled streams

1 participant