GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): keep sidebar search results when opening threads by voltcrash · Pull Request #30278 · pingdotgg/t3code

Conversation

@voltcrash

@voltcrash voltcrash commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Problem

Opening a sidebar search result discards the query and results. Inspecting the wrong conversation means retyping the same query to try the next match.

Fixes #30276.

Change

Keep the sidebar search when a result opens, for both clicks and Enter. Escape and the clear button still exit search; message-content matches still open Find at the matching text.

Scope and approval

Submitted under the very small, focused obvious-bug exception: remove the query reset from result selection so browsing existing search matches does not destroy the search. No new setting, search mode, ranking, or persisted state. Web and desktop share this sidebar; native mobile has a separate flow and is unchanged.

Verification

  • Added Sidebar.search.browser.test.tsx, mounting the real app against the existing fake environment. It fails on main because selecting the first match empties the query; passes with the fix while opening a second match by keyboard, then clearing with the button and Escape.
  • vp run check:changed upstream/main passes: format, lint, knip, affected typechecks, 140 tests in 6 files, and React Compiler verification.
  • Real Chromium client, Linux, 1280×800, isolated worktree state with two Replay (dev) conversations: before, opening a result clears search; after, successive result clicks retain the query and both results. Content-only search for clamp still opens Find with clamp; clear and Escape return to the normal sidebar.
  • Not checked in a standalone Electron app, native mobile, other browsers, or real relay/tunnel connections. No server or wire behavior changed.
Before selecting a result After selecting a result
Before: query disappears and the normal sidebar returns After: query and both matches remain visible

Recordings: before · after: open two matches without retyping.

Reviewed with review-loop: 1 round with Claude Opus 5.5. Reviewer verdict: approved.

Created with GPT-6.1 Sol in the Codex harness through T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 3, 2026
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Selecting a sidebar thread search result now preserves the query and results while navigating to the thread. Browser tests cover click and keyboard selection, and clearing the search.

Changes: Sidebar thread search

Layer / File(s) Summary
Preserve search during thread navigation
apps/web/src/components/Sidebar.tsx, apps/web/src/components/Sidebar.search.browser.test.tsx
Thread selection no longer clears the search query. Browser tests check that the query and results remain after click or keyboard selection, and that clearing the search empties the input and hides the results.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

  • pingdotgg/t3code#28442: This PR changes sidebar search and Find behavior on related selection and clear paths.

Suggested reviewers: macroscopeapp

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: retaining sidebar search results when opening threads.
Description check Passed The description includes the problem, change, scope and approval rationale, focused verification with observed results, screenshots, recordings, linked issue, and untested environments.
Linked Issues check Passed Issue [#30276] requires result selection by click or Enter to preserve the sidebar query and results, while clear and Escape exit search. apps/web/src/components/Sidebar.tsx removes the query reset …
Out of Scope Changes check Passed The pull request changes only the sidebar result-selection behavior and adds a focused browser regression test. Both changes directly support issue [#30276]. No unrelated feature, server behavior, mob…
Full details: Linked Issues check

Explanation

Issue [#30276] requires result selection by click or Enter to preserve the sidebar query and results, while clear and Escape exit search. apps/web/src/components/Sidebar.tsx removes the query reset during result selection. Sidebar.search.browser.test.tsx covers result navigation, keyboard selection, retained results, and clearing the search. The summary also states that message-content matches still open Find.

Full details: Out of Scope Changes check

Explanation

The pull request changes only the sidebar result-selection behavior and adds a focused browser regression test. Both changes directly support issue [#30276]. No unrelated feature, server behavior, mobile flow, setting, ranking, or persisted state change is reported.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: b3fdf2b
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec8c6d85-ae52-434e-88b0-6ac02c853b86
Commits

Reviewing files that changed from the base of the PR and between cd5af6604c80ae00bc00e5a820bd41d919059592 and f913bb916307316c98664a60bee286d93883b52e.

Files selected for processing: 2

  • apps/web/src/components/Sidebar.search.browser.test.tsx
  • apps/web/src/components/Sidebar.tsx
Files with no reviewable changes: 1

  • apps/web/src/components/Sidebar.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed labels Nov 3, 2026
@maria-rcks

maria-rcks commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

verified unchanged head f0ab7466d820aa5c1340397b5c32ff9a4d61a99d on linux with the real dev server, repo Playwright, and /usr/bin/google-chrome.

  • reproduced on github/main (15707a84b0): searching sidebar orchard returned two conversations; clicking alpha opened it but emptied the query and removed the search results.
  • created a project for a real git repository and both conversations through the app. real Codex gpt-6.1-sol turns completed through the local proxy. stopped main, then used the same app-created conversation data on the exact pr head.
  • on the pr, clicking a result and selecting another with arrow keys and Enter opened the expected conversations while retaining the query and both results.
  • the clear button and Escape still cleared search. a message-only search for zephyrcontentonly still opened find with the same query and highlighted both matches. a fresh Codex turn on the pr returned pr head provider verified. in the client.
  • checked light mode at 1440×900 and dark mode at 1280×800.
  • vp run check:changed HEAD^ passed through blacksmith after installing its browser prerequisites: format, lint, both knip passes, affected typechecks, 140 tests in 6 files, and React Compiler verification. existing GitHub CI checks also passed.

before: main clears the query after opening alpha.

main clears the sidebar search after opening alpha

after: the same conversation opens with the query and both results retained.

pr retains the sidebar query and both results after opening alpha

Not verified

standalone Electron, native iOS/Android, macOS/Windows, other browsers, and relay/tunnel connections were not exercised on this linux VM. native mobile uses a separate sidebar flow and is unchanged by this diff.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@voltcrash
voltcrash force-pushed the voltcrash/keep-sidebar-search-results branch from f0ab746 to cd5af66 Compare November 7, 2026 11:30
@juliusmarminge GitCafe Production

juliusmarminge commented Nov 11, 2026

Copy link
Copy Markdown
Member

Evidence

Real web app, Chromium, 1280×800, light theme; fresh synthetic state on each commit. Search Orchard, click the first match, then re-enter the same term on both sides and use ArrowDown + Enter to open the other match. Finally exercise Clear and Escape.

The scenario failed on base and passed on head: base lost the query and results after click and Enter; head retained both. Clear and Escape exited search on both.

Interaction Before After
Commit b3fdf2b10f f913bb9163
Click Before: click clears search After: click retains search
Enter Before: Enter clears search After: Enter retains search
Clear Before: Clear exits search After: Clear exits search
Escape Before: Escape exits search After: Escape exits search
Recording Before After

Exact successful scenario. Recordings omit startup pairing screens.

AI-assisted; verified with the tests and tools listed above.

Not shown:

  • Message-content results opening Find: a supplemental run searched the synthetic message text but returned no selectable result, so this path was not demonstrated.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

voltcrash and others added 2 commits November 13, 2026 07:10
@voltcrash
fix(web): keep sidebar search results when opening threads
abaa385
@juliusmarminge @voltcrash
test(web): focus sidebar search regression on result selection
d51a978
AI-assisted; verified with the tests and tools listed above.
@voltcrash
voltcrash force-pushed the voltcrash/keep-sidebar-search-results branch from f913bb9 to d51a978 Compare November 13, 2026 01:42
@github-actions

github-actions Bot commented Nov 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +1 test cases (browser +1, unit 0, server 0).

New browser test files: apps/web/src/components/Sidebar.search.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai coderabbitai Bot mentioned this pull request Nov 15, 2026
fix(web): clear stale sidebar search highlights #28442
Open
@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 23, 2026
@juliusmarminge

juliusmarminge commented Nov 23, 2026

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

someone else pushed to voltcrash/keep-sidebar-search-results (head is now d51a978); the pipeline does not build on commits it did not review

It stays open for a person to finish or close.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body takeover:in-progress A takeover lead is working on this PR and removed takeover:ready Takeover done; auto-lands when gates pass takeover:blocked Takeover blocked; reason in the PR body labels Nov 23, 2026
juliusmarminge and others added 2 commits November 27, 2026 23:48
@juliusmarminge @claude
Merge origin/main into voltcrash/keep-sidebar-search-results
1fd6b12
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(web): trim sidebar search regression to the result-open path
ff2de84
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Search for Orchard among two matching threads and click the first result. On head, refocus search and use ArrowDown then Enter to open the other thread; use Clear, then search again and press Escape. Real web app, Chromium, 1280×800, light theme, fresh synthetic data and Replay (dev).

Evidence Before After
Commit 09418562d6 ff2de8405a
After click Before: search cleared After: query and results retained
Keyboard selection Base stopped at the reproduced failure After: another thread opens while search remains
Clear — After: Clear exits search
Escape — After: Escape exits search
Recording Before recording After recording

Scenario source. scenarios:prove exited 0: base clears the query; head retains it and both results.

Not shown:

  • Message-content results opening Find at the match were not exercised; this scenario covers title matches.
  • Desktop was not run; evidence is from the real web client.
  • Base keyboard selection, Clear and Escape were not reached because the scenario stopped at the reproduced click-selection failure.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit b89c25f into pingdotgg:main Nov 28, 2026
57 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@ImBIOS ImBIOS mentioned this pull request Nov 28, 2026
Desktop thread search hides relevant matches in large histories ImBIOS/t3code#6
Open
@voltcrash
voltcrash deleted the voltcrash/keep-sidebar-search-results branch November 28, 2026 07:36
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Sidebar search clears when opening a matching thread

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@voltcrash @maria-rcks @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.