Skip to content

Dismiss viewed TUI warnings when closing the viewer - #48205

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3ce88c62a7f0ff9de34062165051e22168d3db25
Sep 25, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Dismiss viewed TUI warnings when closing the viewer

Why

Closing the warnings viewer left reviewed diagnostics in the warning badge and subsequent visits, with no way to dismiss them.

What changed

  • Dismiss only warning pages actually rendered when closing with Esc, F2, or Ctrl+C, and update the footer hint to “dismiss & close”. Unviewed warnings remain available.
  • Hide dismissed diagnostics from the badge and viewer while their details are unchanged. Updated details make a warning visible again.
  • Reset dismissals when clearing the transcript and ignore queued dismissals from an earlier transcript.
  • Cache warning counts until transcript cell identities or dismissal decisions change.

Testing

Add regression coverage for partial dismissal, navigation that skips rendering a page, changed warning details, and transcript resets with queued dismissals. Update snapshots for the close hint and remaining warning count.

## Why

Closing the warnings viewer left reviewed diagnostics in the warning badge and subsequent visits, with no way to dismiss them.

## What changed

- Dismiss only warning pages actually rendered when closing with `Esc`, `F2`, or `Ctrl+C`, and update the footer hint to “dismiss & close”. Unviewed warnings remain available.
- Hide dismissed diagnostics from the badge and viewer while their details are unchanged. Updated details make a warning visible again.
- Reset dismissals when clearing the transcript and ignore queued dismissals from an earlier transcript.
- Cache warning counts until transcript cell identities or dismissal decisions change.

## Testing

Add regression coverage for partial dismissal, navigation that skips rendering a page, changed warning details, and transcript resets with queued dismissals. Update snapshots for the close hint and remaining warning count.

GitOrigin-RevId: 3ce88c62a7f0ff9de34062165051e22168d3db25
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3ce88c62a7f0ff9de34062165051e22168d3db25 branch from fe377bf to 7703f8b Compare September 25, 2026 20:26
@copyberry
copyberry Bot merged commit 7703f8b into main Sep 25, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3ce88c62a7f0ff9de34062165051e22168d3db25 branch September 25, 2026 20:26
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 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