Skip to content

agent-codex 1.5.1: a Codex whose thread will not start is stopped, not left running - #53

Merged
vydra merged 1 commit into
mainfrom
claude/github-actions-failure-a998a8
Nov 30, 2026
Merged

vydra merged 1 commit into
mainfrom
claude/github-actions-failure-a998a8

Conversation

@vydra

@vydra vydra commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Why

The nightly CI run 46495214450 failed on agent-codex · release, in the test a thread that will not start is a failed session, with Codex's words: the codex app-server child was never killed.

The release row moved from app v0.1.309 to v0.1.311. In v0.1.311, SpecDriven/specdriven-app#537 wraps provider.start() in an async startAgent(), which delays session.session = await …. The plugin's start() returns immediately and runs the handshake in the background. When thread/start is refused, host.failed() → finish() calls session.session?.close() while session.session is still unset, so nothing closes the child. Users would end up with an orphaned Codex process. It reproduces 5/5 times locally against v0.1.311.

Change

  • CodexSession.failed() closes its own client after reporting the failure. CodexClient.close() is idempotent, so the host's later close is a no-op.
  • Release 1.5.1: dist/, release/agent-codex-1.5.1.zip, releases.json, marketplace.json (built with scripts/release.ts against app v0.1.311, so the dist shims list that SDK's exports).

Verified

  • bun test in plugins/agent-codex against app v0.1.311: 86 pass, 0 fail (previously 1 fail).
  • bun run typecheck is clean.

…t left running

When thread/start is refused, CodexSession.failed() reports the failure to
the host and relies on the host to close the session. The host can only
close a session start() has handed it, and from app v0.1.311 (#537,
startAgent) the failure lands before that, so codex app-server was left
running. The provider now stops Codex itself; a second close from the host
is a no-op.

Caught by the nightly release row (run 46495214450).
@vydra
vydra merged commit d2f222a into main Nov 30, 2026
27 checks passed
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.

1 participant