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): recognize composerEmpty in keybinding settings - #42986
In Settings → Keybindings, edit the When condition for Queue: Send First Queued Message. The picker omits composerEmpty. Typing the documented composerFocus && turnRunning && composerEmpty rule shows an “Unknown condition” warning, even though the chat evaluates it. Composer guide
Change
Add composerEmpty to the conditions Settings recognizes explicitly. The picker and the warning share this list. Settings also discovers conditions from default shortcuts, but none use composerEmpty.
Scope
#30644 added the condition. This fixes the existing settings editor on web and desktop.
Verification
Reproduced the warning in the running web app on f84c7168. After the fix, the same expression shows no unknown-condition warning.
Extended the existing settings test to check that the documented rule is recognized and the picker offers composerEmpty. It failed on the base revision and passed after the change. All 18 tests in that file passed.
vp run check:changed passed format, lint, both Knip checks, affected typechecks, tests, and the React Compiler check.
Before
After
Built with GPT-6.2 Astra in the Codex harness, running in T3 Code.
Reviewing files that changed from the base of the PR and between 5c04dae and 76b14d6.
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 core when-variable set now includes composerEmpty. The keybinding parser test checks that the variable is recognized in an expression and appears in available options.
Changes: Keybinding when-variables
Layer / File(s)
Summary
Add and verify composerEmpty apps/web/src/components/settings/KeybindingsSettings.logic.ts, apps/web/src/components/settings/KeybindingsSettings.logic.test.ts
composerEmpty is added to CORE_WHEN_VARIABLES. The test checks that the expression parses, that composerEmpty is not unknown, and that it is available in options.
This change makes Settings recognize the composerEmpty keybinding condition. Users can pick it and enter the documented rule without a warning. No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Settings now recognizes the composerEmpty condition in keybinding settings. It follows the conventional commit format and is specific. It fits the changeset, which add…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the reproduction path and expected behavior. The Change section explains the o…
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: Settings now recognizes the composerEmpty condition in keybinding settings. It follows the conventional commit format and is specific. It fits the changeset, which adds composerEmpty to CORE_WHEN_VARIABLES and extends the related test.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the reproduction path and expected behavior. The Change section explains the one-line fix and why it is sufficient. The Scope section links the prior PR that added the condition and states this is a bug fix on the existing settings editor. Verification lists the reproduction, a failing-then-passing test, and the check run, with before and after screenshots. The author also names the model and harness used, as the template asks. The Scope section does not explicitly say why no issue is linked, but it links a related PR and the documentation that defines the expected behavior.
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; 9 remain after this review.
Steps on both commits: Settings → Keybindings → Add keybinding → search “Send First” → select “Queue: Send First Queued Message” → open When → enter composerFocus && turnRunning && composerEmpty → open a condition dropdown.
Environment: real web app, fresh synthetic state per commit, 1280×800 viewport, light theme. scenarios:prove exited 0.
Proven: base flags composerEmpty as unknown and omits it from the picker; head recognizes it and offers it.
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.
Problem
In Settings → Keybindings, edit the When condition for Queue: Send First Queued Message. The picker omits
composerEmpty. Typing the documentedcomposerFocus && turnRunning && composerEmptyrule shows an “Unknown condition” warning, even though the chat evaluates it. Composer guideChange
Add
composerEmptyto the conditions Settings recognizes explicitly. The picker and the warning share this list. Settings also discovers conditions from default shortcuts, but none usecomposerEmpty.Scope
#30644 added the condition. This fixes the existing settings editor on web and desktop.
Verification
f84c7168. After the fix, the same expression shows no unknown-condition warning.composerEmpty. It failed on the base revision and passed after the change. All 18 tests in that file passed.vp run check:changedpassed format, lint, both Knip checks, affected typechecks, tests, and the React Compiler check.Before
After
Built with GPT-6.2 Astra in the Codex harness, running in T3 Code.