Repository navigation
fix(native): receding working rows no longer set hover twice - #85
Merged
Merged
Conversation
This was referenced Nov 2, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
sidebar/row.rsset.hover()twice on a thread row that is neither active nor selected and is a receding working row: once for the row hover background, once for the receding row'sopacity 0.7 -> 1. GPUI keeps one hover style per element. In debug builds itsdebug_assert!panics (hover style already set), socargo runcrashes whenever such a row is on screen. In release the second call replaces the first, so the row loses its hover background.Fix
The row now sets one hover style. It has the background when the row is neither active nor selected, and full opacity when the row is a receding working row. That matches the web's
SidebarThreadRowsurface (hover:bg-sidebar-row-hoverplusopacity-70 hover:opacity-100). The restingopacity(0.7)stays on the base style.I also checked every
.hover(incrates/app/srcfor a second call on the same element (same builder chain,.whenclosures, and helpers such ashover_action/media_buttonwhose callers add another). The only other pair ismedia/viewer.rsmedia_button, and its two branches arefilled/!filled, so they never both apply. No other fixes were needed.Evidence
Debug offscreen renderer (
--features snapshot) against the smoke server. A freeReplay (dev)turn ran on a pinned scratch thread, so the receding working card sits at the top of the list. The Working shelf sits below the fold. Afterwards the thread was unpinned, and all scratch threads were archived.nativeat c0eca6c): the snapshot exits 101 when the working row renders./private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots83/before.log/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots83/after-rest.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots83/after-hover.pngGates:
cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace,gen-theme --check,parity/sync.test.ts, andconformance/generate.ts --checkall pass.Closes #83
Opus 5.5, Claude Code