Skip to content

Render follow-up directive labels in the TUI and copied responses - #49089

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/dce61d1164de0a576fe95fb2c67b177a1ed414e8
Sep 28, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

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

  • 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.

…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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/dce61d1164de0a576fe95fb2c67b177a1ed414e8 branch from 930fe10 to 222e24b Compare September 28, 2026 22:20
@copyberry
copyberry Bot merged commit 222e24b into main Sep 28, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/dce61d1164de0a576fe95fb2c67b177a1ed414e8 branch September 28, 2026 22:20
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 222e24b7 Deployed Sep 28, 2026 by cryptovaltt via Translate non-English issue #15949
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.

4 participants