Repository navigation
Include foreground activity in iTerm2 session status - #52226
Merged
copyberry[bot] merged 1 commit intoOct 8, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/b27a287b80e0db52be6cd9d5d246f03897e2996b
branch
from
October 8, 2026 18:56
ac0ae5a to
96d238d
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/b27a287b80e0db52be6cd9d5d246f03897e2996b
branch
October 8, 2026 18:56
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Include foreground activity in iTerm2 session status
Why
The iTerm2 session status reports
Workingwithout describing the current activity.What changed
Populate the OSC 21337
detailfield from the TUI status header during foreground work, for exampleReading source. Leave it empty for idle, waiting, background-only work, and the genericWorkingheader.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.