Skip to content

Fix KeybindingsToast browser fixture to include commandCode#5

Merged
sannman merged 1 commit into
mainfrom
fix/keybindings-fixture-codemod
Jun 18, 2026
Merged

Fix KeybindingsToast browser fixture to include commandCode#5
sannman merged 1 commit into
mainfrom
fix/keybindings-fixture-codemod

Conversation

@sannman

@sannman sannman commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Fixes the typecheck failure on main:

src/components/KeybindingsToast.browser.tsx(146,7): error TS2741:
Property 'commandCode' is missing in type ... but required in type ...

The ServerSettingsSchema.providers struct in packages/contracts/src/settings.ts requires commandCode (added in 2080dba "Add Command Code provider"), but the test fixture in apps/web/src/components/KeybindingsToast.browser.tsx was never updated to match, so the strict typecheck in the Check job fails.

This PR adds the missing commandCode block to the fixture, using the same defaults declared on CommandCodeSettings (enabled=true, skipOnboarding=true, maxTurns=25, printTimeoutMs=180_000).

The ServerSettingsSchema in packages/contracts/src/settings.ts
already requires `commandCode` in `providers` (it landed in
"Add Command Code provider" — 2080dba), but the test fixture
in apps/web/src/components/KeybindingsToast.browser.tsx was never
updated to match. With strict TS, that produced:

  src/components/KeybindingsToast.browser.tsx(146,7): error TS2741:
  Property 'commandCode' is missing in type ... but required in type ...

and broke the Check job in CI. Add the missing commandCode block to
the fixture, matching the defaults declared on CommandCodeSettings
(enabled=true, skipOnboarding=true, maxTurns=25, printTimeoutMs=180_000).

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@sannman sannman merged commit c36ef16 into main Jun 18, 2026
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants