Skip to content

fix(web): a quick retry on a sidebar thread row opens it - #26550

Draft
makhnatkin wants to merge 1 commit into
pingdotgg:mainfrom
makhnatkin:fix/sidebar-retry-click
Draft

makhnatkin wants to merge 1 commit into
pingdotgg:mainfrom
makhnatkin:fix/sidebar-retry-click

Conversation

@makhnatkin

Copy link
Copy Markdown

AI-generated
"Generated" means mostly the model, "Edited" means mostly me.

Problem

On macOS, a retry on a sidebar thread row within the double-click interval does nothing. macOS keeps counting clicks at one spot, so the retry arrives with detail > 1, and the row skips every such click as the trailing click of a double-click. When the first click is lost, each quick retry is lost too. Refs #22058, cause described in this comment.

Change

The row skips a click with detail > 1 only when it is already the open thread. A quick retry on a row that is not open opens it. Double-click rename keeps working: the first click opens the row, and the trailing click on the now open row is skipped.

Scope and approval

Focused fix for the cause above: one helper in Sidebar.logic.ts and its use in the row click handler. The chat header title keeps its own detail > 1 guard.

Verification

Added a table to Sidebar.logic.test.ts for shouldNavigateOnThreadClick: detail 2 and 3 on a row that is not open navigate, detail 2 on the open row does not.

Not run yet: vp test run apps/web/src/components/Sidebar.logic.test.ts, and a manual check of double-click rename and quick retries in a packaged build.

Written with Claude Opus 5.5 in Claude Code (via T3 Code).

🤖 Generated with Claude Code

macOS reports clicks at the same spot within the double-click interval
with detail > 1, so a retry after a lost click was dropped as the
trailing click of a double-click. Only the open row now skips it, which
keeps double-click rename intact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant