Skip to content

fix(web): recognize composerEmpty in keybinding settings - #42986

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
v-khanna:fix/composer-empty-keybinding-condition
Nov 25, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
v-khanna:fix/composer-empty-keybinding-condition

Conversation

@v-khanna

Copy link
Copy Markdown
Contributor

Problem

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

Settings flags composerEmpty as an unknown condition

After

Settings recognizes composerEmpty in the same rule

Built with GPT-6.2 Astra in the Codex harness, running in T3 Code.

@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 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: lukasfb, marve10s

Merge Risk: Minimal · previous review 5c04d

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 667cb3b and 5c04dae.

Files selected for processing: 2

  • apps/web/src/components/settings/KeybindingsSettings.logic.test.ts
  • apps/web/src/components/settings/KeybindingsSettings.logic.ts

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Capture Before — 60eed627d0 After — 76b14d6f38
Documented expression Before: composerEmpty warning After: expression without unknown-condition warning
Condition picker Before: composerEmpty absent After: composerEmpty offered
Reopened editor Before: composerEmpty remains flagged After: all three conditions recognized
Recording Before recording After recording

Scenario source

Not shown:

  • Electron shell was not run separately; this proof covers the shared web Settings implementation.

@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 25, 2026
@juliusmarminge
juliusmarminge merged commit 9a3ad0b into pingdotgg:main Nov 25, 2026
20 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 25, 2026
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 Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants