You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): Esc in the Files search clears it without closing the sheet - #41616
On narrow windows the right panel opens as a sheet. Pressing Esc in the Files search cleared the query and also closed the whole Files sheet, because the Escape bubbled up to the sheet's dismiss handler. Esc pressed to cancel an IME candidate also cleared the whole query.
The search field now ignores Escape while an IME composition is active, and stops the Escape from bubbling when it clears a non-empty query. Esc on an empty search still closes the sheet, as before. This matches the keybindings search fix in #35161. The field is now a text input with the searchbox role, because a native search input clears itself on Escape even during IME composition (the same change as #28298).
The new browser test renders the panel inside the real RightPanelSheet. It fails on main and passes with this change.
Before and after
Setup: Linux, Chromium (T3 Browser panel), light theme, 720×800 viewport, fresh isolated dev data (--no-seed) with a small synthetic project on each commit.
Steps: open the Files panel → type readme in the file search → press Esc
An AI agent (Claude Opus 5.5, T3 Code) also checked that Esc on an empty search still closes the sheet, and that at 1400px wide (inline panel) Esc still clears and blurs the search. Not shown: the IME case, which the browser test covers.
Reviewing files that changed from the base of the PR and between 5d9c9af and e09bab8.
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
The file search input now preserves its query during IME composition. Ordinary Escape clears a nonempty query before a subsequent Escape closes the sheet. A browser test covers this behavior.
The search input uses type="text" with a searchbox role. Escape during IME composition does not alter the query. An ordinary Escape clears a nonempty query without closing the sheet; a later Escape closes it. The browser test verifies these interactions.
This change makes Escape in the Files search clear the query without closing the sheet, and it ignores Escape during IME composition. The scope is a narrow UI interaction, and no concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Escape in the Files search now clears the query without closing the sheet. It uses a conventional commit prefix and plain language. It matches the raw summary and the …
Description check
The description follows the template well. It states the problem with expected behavior and reproduction steps (Linux, Chromium, 720x800, steps listed). It explains the change (IME-aware Escape handli…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: Escape in the Files search now clears the query without closing the sheet. It uses a conventional commit prefix and plain language. It matches the raw summary and the PR objectives, which describe Escape handling in FileSearchField and the new browser test.
Full details: Description check
Explanation
The description follows the template well. It states the problem with expected behavior and reproduction steps (Linux, Chromium, 720x800, steps listed). It explains the change (IME-aware Escape handling, stopPropagation on non-empty clear, searchbox text input). It gives verification: a new browser test that fails on main and passes with the change, plus before/after screenshots and a manual check of empty-search and 1400px cases. It names the model and harness. The Scope section is weak: it does not link an issue that shows the bug. It cites PR #35161 and #28298 as related, but these are not the bug report. The author should state whether an issue exists or explain why none is needed, and should link any maintainer request.
Resolution
Optionally add an issue link under Scope, or state why no issue is needed for this small bug fix. The description is otherwise complete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Real web app, Chromium, 900×750, dark theme, fresh synthetic state on each commit. Open a thread → Toggle right panel → Files → enter readme in the focused search → press Escape once.
Real IME composition was not exercised: the scenario browser cannot drive a real input method, and synthetic composition events would be a stand-in.
The 1400×750 inline-panel control and reopening the base sheet to inspect its cleared query were not run; the paired proof covers the sheet-dismissal defect directly.
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
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
On narrow windows the right panel opens as a sheet. Pressing Esc in the Files search cleared the query and also closed the whole Files sheet, because the Escape bubbled up to the sheet's dismiss handler. Esc pressed to cancel an IME candidate also cleared the whole query.
The search field now ignores Escape while an IME composition is active, and stops the Escape from bubbling when it clears a non-empty query. Esc on an empty search still closes the sheet, as before. This matches the keybindings search fix in #35161. The field is now a text input with the searchbox role, because a native search input clears itself on Escape even during IME composition (the same change as #28298).
The new browser test renders the panel inside the real
RightPanelSheet. It fails on main and passes with this change.Before and after
Setup: Linux, Chromium (T3 Browser panel), light theme, 720×800 viewport, fresh isolated dev data (
--no-seed) with a small synthetic project on each commit.Steps: open the Files panel → type
readmein the file search → press EscThe query typed, before Esc (same on both commits)
An AI agent (Claude Opus 5.5, T3 Code) also checked that Esc on an empty search still closes the sheet, and that at 1400px wide (inline panel) Esc still clears and blurs the search. Not shown: the IME case, which the browser test covers.
Generated with Claude Opus 5.5 in T3 Code Nightly