GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(contracts): keep Space shortcuts after saving keybindings by voltcrash · Pull Request #32008 · pingdotgg/t3code

Conversation

@voltcrash

@voltcrash voltcrash commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Problem

Saving a shortcut containing Space, such as Super+Space for dictation, writes the correct file but leaves Settings and the active shortcut using the default. The resolved-keybinding schema trims the literal Space key to an empty string during encoding; clients silently drop the invalid rule and restore the default.

Closes #32007

Change

Preserve resolved key strings without trimming, while keeping the nonempty and maximum-length checks. Shortcut configuration text still uses the existing trimmed schema. Add one regression test for encoding and decoding the resolved Super+Space dictation rule.

Scope and approval

This qualifies for the very small, focused obvious-bug exception in CONTRIBUTING.md: it fixes an existing shortcut's serialization without adding a feature, changing defaults, or changing UI code. The shared contract covers server/client messages, cached configuration, and forwarded preview shortcuts. No provider-specific changes are needed.

Verification

  • Added the regression test before the fix; it failed because shortcut.key encoded as "" instead of " ". It passes with the fix.
  • vp test run packages/contracts/src/keybindings.test.ts apps/server/src/keybindings.test.ts apps/web/src/components/settings/KeybindingsSettings.logic.test.ts: 39 tests passed.
  • vp run check:changed: format, lint, both knip checks, affected typechecks, and adjacent tests passed.
  • Isolated development client, seeded from a read-only snapshot: recorded Meta+Space in Settings and clicked Save. The file stores meta+space; after a full page reload Settings displays Meta+Space. Reading the live client bindings and matching both chords returned:
Meta+Space    → composer.dictation
Ctrl+Shift+D  → null

The verification covers persistence, serialization, display, and shortcut resolution. Actual microphone capture/transcription and native mobile were not exercised; this is a shared-contract fix with no UI layout changes.

Reviewed with review-loop: 1 round with GPT-6.1 Sol on xhigh. Reviewer verdict: approved.

Created with GPT-6.1 Sol in the Codex harness.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@voltcrash
fix(contracts): keep Space shortcuts after saving keybindings
1e82c17
@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 6, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 6, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 1e82c17

Macroscope's review found this PR approvable — Resolved Space shortcuts now survive serialization after saving keybindings, while existing length limits and configuration-text validation remain intact. This is a bounded compatibility fix with no product-default changes.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The resolved keybinding schema now preserves literal Space characters. A regression test checks that a Space shortcut with metaKey: true and modKey: false is unchanged after encoding and decoding.

Changes: Space keybinding round-trip

Layer / File(s) Summary
Resolved shortcut schema and round-trip test
packages/contracts/src/keybindings.ts, packages/contracts/src/keybindings.test.ts
KeybindingShortcut.key accepts non-empty strings up to 64 characters without trimming. The test checks that encoding and decoding preserve a resolved Space shortcut.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

  • pingdotgg/t3code#30645: Both PRs remove trimming from KeybindingShortcut.key while retaining the non-empty and maximum-length checks.

Suggested labels: size:S

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 1e82c

The change is intended to preserve Space shortcuts after saving and reloading. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly describes the Space shortcut fix.
Description check Passed The description covers the problem, change, scope, verification results, and unchecked behavior. It also identifies the model and harness.
Linked Issues check Passed [#32007] KeybindingShortcut.key preserves the literal Space while retaining nonempty and length checks. The regression test verifies encoding and decoding a Meta+Space dictation rule. The author rep…
Out of Scope Changes check Passed [#32007] The shared schema change and its regression test address Space shortcut serialization. The change does not alter shortcut configuration text or unrelated code.
Full details: Linked Issues check

Explanation

[#32007] KeybindingShortcut.key preserves the literal Space while retaining nonempty and length checks. The regression test verifies encoding and decoding a Meta+Space dictation rule. The author reports that the saved shortcut persists, displays, and resolves after reload, replacing the default.

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

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 6577c6b
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6925667b-b2dc-4e44-8a43-a728b2c5d386
Commits

Reviewing files that changed from the base of the PR and between 6577c6b and 1e82c17.

Files selected for processing: 2

  • packages/contracts/src/keybindings.test.ts
  • packages/contracts/src/keybindings.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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed labels Nov 6, 2026
@voltcrash voltcrash closed this Nov 7, 2026
@juliusmarminge juliusmarminge removed the pr:gate-failed A land gate failed label Nov 7, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Nov 10, 2026
fix(contracts): preserve Space keybindings during serialization #33761
Closed
@voltcrash
voltcrash deleted the t3/fix-keybinding-settings-save branch November 10, 2026 10:37
This was referenced Nov 10, 2026
fix(contracts): custom Space shortcuts are no longer dropped #30645
Closed
fix(contracts): Space shortcuts reach clients instead of reverting to defaults #34799
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bugfix Fix PR opened by an issue lead; enters the PR loop size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Space keybindings save to disk but revert to defaults in clients

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@voltcrash @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.