Repository navigation
Render follow-up directive labels in the TUI and copied responses - #49089
Merged
copyberry[bot] merged 1 commit intoSep 28, 2026
Conversation
…9089) ## Why Follow-up directives contain display labels and prompt attributes. Show the labels without exposing directive syntax or prompt text in rendered responses and streaming previews. ## What changed - Render `:codex-followup[label]{prompt="..."}` as its label, preserving inline Markdown styling and source offsets. - Replace recognized follow-up directives with their labels when copying whole responses, while retaining the original source. - Withhold unfinished directives in rich streaming previews and avoid cropping into prompt attributes when the preview window advances. - Preserve literal code, escaped directives, and malformed source when rendering completed messages or copying responses. ## Testing Add regression coverage for label formatting, nested brackets and backticks, literal and malformed directives, whole-response copying, and streaming holdback across long prompts and preview window boundaries. GitOrigin-RevId: dce61d1164de0a576fe95fb2c67b177a1ed414e8
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/dce61d1164de0a576fe95fb2c67b177a1ed414e8
branch
from
September 28, 2026 22:20
930fe10 to
222e24b
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/dce61d1164de0a576fe95fb2c67b177a1ed414e8
branch
September 28, 2026 22:20
skrodolies
temporarily deployed
to
issue-triage
September 28, 2026 22:23 — with
GitHub Actions
Inactive
skrodolies
temporarily deployed
to
issue-triage
September 28, 2026 22:23 — with
GitHub Actions
Inactive
skrodolies
temporarily deployed
to
issue-triage
September 28, 2026 22:23 — with
GitHub Actions
Inactive
skrodolies
temporarily deployed
to
issue-triage
September 28, 2026 22:24 — with
GitHub Actions
Inactive
ncca-tech
temporarily deployed
to
issue-triage
September 28, 2026 22:27 — with
GitHub Actions
Inactive
ncca-tech
temporarily deployed
to
issue-triage
September 28, 2026 22:27 — with
GitHub Actions
Inactive
ncca-tech
temporarily deployed
to
issue-triage
September 28, 2026 22:27 — with
GitHub Actions
Inactive
cryptovaltt
temporarily deployed
to
issue-triage
September 28, 2026 22:28 — with
GitHub Actions
Inactive
cryptovaltt
temporarily deployed
to
issue-triage
September 28, 2026 22:28 — with
GitHub Actions
Inactive
cryptovaltt
temporarily deployed
to
issue-triage
September 28, 2026 22:28 — with
GitHub Actions
Inactive
This branch was previously 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.
Render follow-up directive labels in the TUI and copied responses
Why
Follow-up directives contain display labels and prompt attributes. Show the labels without exposing directive syntax or prompt text in rendered responses and streaming previews.
What changed
:codex-followup[label]{prompt="..."}as its label, preserving inline Markdown styling and source offsets.Testing
Add regression coverage for label formatting, nested brackets and backticks, literal and malformed directives, whole-response copying, and streaming holdback across long prompts and preview window boundaries.