Skip to content

fix(ui): keep the header highlight when a result closes STATS/DETAIL - #117

Merged
kwrkb merged 1 commit into
mainfrom
fix/resync-viewport-after-overlay-reset
Sep 30, 2026
Merged

kwrkb merged 1 commit into
mainfrom
fix/resync-viewport-after-overlay-reset

Conversation

@kwrkb

@kwrkb kwrkb commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Follow-up to the Codex review comment on #116 (merged).

When a query finished while STATS was open, or while DETAIL was open and the new result was empty, applyResult rebuilt the viewport before resetResultOverlays switched the mode back to NORMAL. The rebuild cached lastHighlight=false, so the selected-column header highlight stayed missing until another key or resize.

  • Call resetResultOverlays before applyResult (it reads m.lastResult, which is already set to the new result).
  • TestNewResultResetsStatsAndDetail / TestEmptyResultLeavesDetailMode now assert lastHighlight; both fail without the reorder.

go vet ./... and go test ./... pass.

🤖 Generated with Claude Code

- Reset the STATS/DETAIL overlays before applying a new query result, so
  the viewport rebuild sees NORMAL mode and draws the column-header
  highlight instead of caching lastHighlight=false until the next input.
- Assert lastHighlight in the two overlay-reset tests (both fail without
  the reorder).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T14:19:12.338948Z bd6907b 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.

@kwrkb
kwrkb merged commit 9d62c48 into main Sep 30, 2026
3 checks passed
@kwrkb
kwrkb deleted the fix/resync-viewport-after-overlay-reset branch September 30, 2026 14:26
kwrkb added a commit that referenced this pull request Sep 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant