Skip to content

Add read-only document previews to the TUI sidebar - #61888

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e979b757c623c29a8ed50277ec929655d783ad18
Nov 16, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Add read-only document previews to the TUI sidebar

What changed

  • Open transcript file links in sidebar tabs when the TUI workspace is enabled, resolving and reading files through the focused thread's app server and rendering their contents as Markdown.
  • Support pager keys, mouse scrolling, switching between document and chat tabs, and closing previews with Esc. Reuse existing previews and allow failed opens to be retried.
  • Show loading and error states, and prevent late document results from taking focus back after the user switches views.
  • Adapt tab widths to the available space, preserve filename extensions in truncated labels, and keep divider dragging aligned to exact terminal columns.

Testing

Add coverage for workspace-gated link opening, loading and error states, retrying, custom pager bindings, multiple previews, tab reuse, closing during loading, and preserving focus when results arrive late. Update tab and divider assertions and snapshots.

## What changed

- Open transcript file links in sidebar tabs when the TUI workspace is enabled, resolving and reading files through the focused thread's app server and rendering their contents as Markdown.
- Support pager keys, mouse scrolling, switching between document and chat tabs, and closing previews with `Esc`. Reuse existing previews and allow failed opens to be retried.
- Show loading and error states, and prevent late document results from taking focus back after the user switches views.
- Adapt tab widths to the available space, preserve filename extensions in truncated labels, and keep divider dragging aligned to exact terminal columns.

## Testing

Add coverage for workspace-gated link opening, loading and error states, retrying, custom pager bindings, multiple previews, tab reuse, closing during loading, and preserving focus when results arrive late. Update tab and divider assertions and snapshots.

GitOrigin-RevId: e979b757c623c29a8ed50277ec929655d783ad18
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e979b757c623c29a8ed50277ec929655d783ad18 branch from 09068a0 to be5db96 Compare November 16, 2026 21:49
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-16T21:49:24.264790Z 09068a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit be5db96 into main Nov 16, 2026
9 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e979b757c623c29a8ed50277ec929655d783ad18 branch November 16, 2026 21:49
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 16, 2026
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.

1 participant