Skip to content

Include foreground activity in iTerm2 session status - #52226

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Include foreground activity in iTerm2 session status

Why

The iTerm2 session status reports Working without describing the current activity.

What changed

Populate the OSC 21337 detail field from the TUI status header during foreground work, for example Reading source. Leave it empty for idle, waiting, background-only work, and the generic Working header.

Reuse terminal-title text filtering and the 240-character limit, then escape semicolons and backslashes for the status payload. Include detail in the emission cache so activity changes update the terminal even when the lifecycle state stays the same.

Testing

Add coverage for foreground-only details, payload encoding, text filtering and truncation, and cache updates when the detail changes.

## Why

The iTerm2 session status reports `Working` without describing the current activity.

## What changed

Populate the OSC 21337 `detail` field from the TUI status header during foreground work, for example `Reading source`. Leave it empty for idle, waiting, background-only work, and the generic `Working` header.

Reuse terminal-title text filtering and the 240-character limit, then escape semicolons and backslashes for the status payload. Include detail in the emission cache so activity changes update the terminal even when the lifecycle state stays the same.

## Testing

Add coverage for foreground-only details, payload encoding, text filtering and truncation, and cache updates when the detail changes.

GitOrigin-RevId: b27a287b80e0db52be6cd9d5d246f03897e2996b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b27a287b80e0db52be6cd9d5d246f03897e2996b branch from ac0ae5a to 96d238d Compare October 8, 2026 18:56
@copyberry
copyberry Bot merged commit 96d238d into main Oct 8, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b27a287b80e0db52be6cd9d5d246f03897e2996b branch October 8, 2026 18:56
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026

This branch was successfully deployed

1 active deployment
issue-triage — 96d238d0 Deployed Oct 8, 2026 by Manamomachismo via Translate non-English issue #18526
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.

2 participants