Skip to content

Expose Codex lifecycle status in iTerm2 sessions - #52203

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/750e9ec92aeefc57651886a08ef6aea07675d175
Oct 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/750e9ec92aeefc57651886a08ef6aea07675d175

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Expose Codex lifecycle status in iTerm2 sessions

What changed

Emit Idle, Working, or Waiting with colored indicators through iTerm2's OSC 21337 session status protocol. Pending user action takes precedence over running tasks and background processes.

Limit emission to direct iTerm2 TTY sessions without a terminal multiplexer. Deduplicate successful writes, refresh status after terminal handoffs and resume, and clear status on suspension and exit.

Testing

Add coverage for lifecycle transitions, protocol encoding, terminal detection, write retries, deduplication, and re-emission after terminal handoffs.

## What changed

Emit `Idle`, `Working`, or `Waiting` with colored indicators through iTerm2's `OSC 21337` session status protocol. Pending user action takes precedence over running tasks and background processes.

Limit emission to direct iTerm2 TTY sessions without a terminal multiplexer. Deduplicate successful writes, refresh status after terminal handoffs and resume, and clear status on suspension and exit.

## Testing

Add coverage for lifecycle transitions, protocol encoding, terminal detection, write retries, deduplication, and re-emission after terminal handoffs.

GitOrigin-RevId: 750e9ec92aeefc57651886a08ef6aea07675d175
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Note

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/750e9ec92aeefc57651886a08ef6aea07675d175 branch from 705afe1 to ade1234 Compare October 8, 2026 18:07
@copyberry
copyberry Bot merged commit ade1234 into main Oct 8, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/750e9ec92aeefc57651886a08ef6aea07675d175 branch October 8, 2026 18:07
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
@drewclifton
drewclifton deployed to issue-triage October 8, 2026 18:09 — with Image GitHub Actions Active
@drewclifton
drewclifton deployed to issue-triage October 8, 2026 18:09 — with Image GitHub Actions Active
@drewclifton
drewclifton deployed to issue-triage October 8, 2026 18:09 — with Image GitHub Actions Active
@gchahrouri
gchahrouri deployed to issue-triage October 8, 2026 18:10 — with Image GitHub Actions Active
@gchahrouri
gchahrouri deployed to issue-triage October 8, 2026 18:10 — with Image GitHub Actions Active
@gchahrouri
gchahrouri deployed to issue-triage October 8, 2026 18:10 — with Image GitHub Actions Active
@gchahrouri
gchahrouri deployed to issue-triage October 8, 2026 18:11 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@Brunomonk
Brunomonk deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@Brunomonk
Brunomonk deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@Brunomonk
Brunomonk deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:15 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:16 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:16 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:16 — with Image GitHub Actions Active
@stream727
stream727 deployed to issue-triage October 8, 2026 18:16 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants