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
feat(keybar): My keys keep every key of your own; a Custom bar in Lean's or Basic's style; All keys renamed Basic - #5106
The next key bar bundle (key bar area, bundled by area). One change, from the keybar-editor-ux lane (its commit bfa2893, unchanged), plus its changelog fragment.
Change
Two LOW findings from the reviews of the key bar editor (#5087), fixed because the first loses the person's data:
My keys full: a key of the person's own that only the bar held pushed the oldest kept key out of My keys when it left the bar (Remove) or on Restore defaults. Such an edit is now not made, the status line says "My keys is full. Delete one first." (new string, ko/ja/zh), and My keys shows every key, those only the bar holds too.
Bar full: a key made in New key while the bar was full went nowhere. It is now kept in My keys, and the status line still says the bar is full.
Files: src/lib/keyBarEdit(.test).ts, src/components/KeyBarEditor(.test).tsx, the three settings i18n files, DESIGN.md, a changelog fragment. No new control or setting.
Validation
bun run typecheck (exit 0); bun test src/lib/keyBarEdit.test.ts src/components/KeyBarEditor.test.tsx src/lib/i18n.test.ts src/conventions.test.ts scripts/changelog-fold.test.ts (117 pass); scripts/key-bar-customization-demo-regression.ts 8 PASS.
The editor lane showed each new test red against a mutation of the code it covers.
Review round
omo gate (dori review at 2167b75): CLEAR, two LOWs. Codex via axwith: BLOCK. Fixed in db3cb0d (from the keybar-editor-ux lane, one fix round):
MEDIUM: Restore defaults on an edited (custom) bar also keeps in My keys the keys of the custom bar it replaces, and is refused with the status line when they do not fit (a fixed layout replaces no custom bar).
LOW: the status line is derived in apply() from the same stored snapshot as the edit (keyBarEditRefusal), so "My keys is full" is never overwritten by "The key bar is full", and a capacity note clears once another tab makes room. omo's LOW: an editor test that Restore defaults with My keys full saves nothing.
Checked at db3cb0d: typecheck ok; keyBarEdit, KeyBarEditor, settings, i18n, conventions 251 pass; scripts/key-bar-customization-demo-regression.ts 8 PASS; the editor lane turned each new test red with a mutation.
Part: a Custom bar's style, a mouse that swipes the editor's bar, "All keys" renamed Basic
Change
Three changes the owner asked for after using the key bar editor (#5087) himself.
Bar style for a Custom bar. A Custom bar was always drawn as the bar across the screen, so a bar edited out of Lean lost Lean's look. It can now be drawn either way: Lean (the rounded row floating over the keyboard) or Basic (the bar across the screen). Edit key bar offers the two under My keys as Bar style, each with the bar in small beside its name, on a touch screen and for a Custom bar only (no bar floats without touch, and Lean and Basic have their own look). A bar edited out of Lean or Basic starts in that layout's style, so an edit never changes how the bar looks. New device setting keyBarCustomStyle ("full" | "lean", through sanitizeSettings, default "full" = today's behaviour), stored under its own key ovis:key-bar-custom-style so a tab of an older build cannot drop it, and followed across tabs. keyBarFloats(items, style) in src/lib/keyBar.ts is the one rule the terminal (PaneTerminal's floatingBar), the editor's bar and the Terminal page's preview read.
Every key within reach while editing. A finger already swiped the editor's bar sideways. A mouse could not: a drag lifted the key under it. The bar in the phone is now a phone's bar under a mouse too: while its row runs past its end, a sideways mouse drag over its keys scrolls it (the release picks no key), a wheel turns it sideways, and a key is lifted by holding still or by pulling it up out of the row. Holding a lifted key at an end of the row still scrolls the row under it. A mouse's press on a bar key no longer takes the focus (which picked a key the drag only passed); its click does.
"All keys" is called "Basic" ("전체 키" -> "기본", "すべてのキー" -> "基本", "全部按键" -> "基本") in the layout row, its description, DESIGN.md, the unreleased changelog fragments and comments. The stored value stays "full", so everyone keeps the layout they chose.
Also in KeyBar.tsx (agreed with the key bar's owner, its own commit): the bar's placement effect runs again when the bar starts or stops floating (React rewrites the class list then and wiped is-at-screen-bottom until the next resize; on main this already happened between Lean and Basic), and a floating bar that shows the Input line switch (a Custom bar) keeps Paste beside it, where Paste's note shows. Lean is unchanged.
No new control in the chat composer. No HTTP/WS contract change.
Before
After
Settings -> Terminal, the layout row
Edit key bar, a Lean bar with F5-F7 added
The same bar, Bar style = Basic
(no choice)
Screenshots are from an isolated demo server, phone width 390, light, Korean.
Stored format
New ovis:key-bar-custom-style = "full" or "lean". ovis:key-bar and ovis:key-bar-own are unchanged. Device-only.
SettingsProvider.update: a function patch is now also compared with the fresh snapshot it was given, so a field it sets is written over a newer value in storage that this tab has not heard of yet (before, a value this tab already held was left unwritten). Object patches behave as before.
Validation
Unit tests new or extended, each shown red against a mutation of the code it covers: src/lib/keyBarDrag.test.ts (new, 7: sideways drag scrolls and lifts nothing, pull out of the row lifts at once, nothing to scroll lifts at once, hold on a fake clock, release clears the hold, the two secondary-button cases), src/components/KeyBarEditor.test.tsx (style kept out of Lean and out of Basic, the two chips, no chips without touch, the set-aside bar's style round trips through Undo / toggle / Restore defaults, a style another tab chose and this tab has not heard of), src/lib/keyBar.test.ts (keyBarFloats), src/lib/settings.test.ts (default, sanitize, scope, an older tab's whole-record save), src/lib/settings.hook.test.ts (another tab's style followed with no write; a function patch over a newer stored value).
Browser: scripts/key-bar-customization-demo-regression.ts gains a mouse drag and a wheel that scroll the editor's bar without moving or picking a key, a mouse reorder after a hold, and "a Custom bar floats as Lean's does when its style says so, in the editor and in the terminal, and goes back with Basic's" and "a bar that stops floating, by its style or its layout, keeps its room at the screen's bottom" (Lean, then Basic, in Settings -> Terminal; 9 PASS; it fails without either KeyBar.tsx change). key-bar-pinned-history 8, key-bar-input-paths 6, settings-pages-demo 17 PASS.
Real touch on an Android emulator (Chrome 133, adb shell input, positions calibrated against a trusted touchstart): a swipe along the editor's bar scrolls it (0 -> 215 px) with no key lifted; a long press and a drag to the row's right edge scrolls the row to its end under the finger and the drop puts the key last; a tap on the Lean chip floats the bar, the floating row swipes, a tap on Basic puts it back. This ran on the first commit, before the review fixes below; after them the same flows ran in Chromium and in the browser regression.
Review: one round on the first commit, two reviewers, both BLOCK on MEDIUM findings, all fixed in the second and third commits:
a mouse's press ended only on pointerup, which does not come while another button is down: the hold timer lifted a key with no primary button held and the other button's release dropped it (the press now ends, and a key that is up is dropped, on the move that reports the primary button gone);
an edit out of Lean or Basic took the style, and Undo (or taking the key off again) brought the Custom bar set aside back in the wrong style (it gets its style back; Restore defaults, which sets the new bar aside instead, keeps the new one's);
with another tab's style change not yet heard of, an edit saved the new Custom bar with that tab's style (the update change above);
Paste's note off screen in a long floating Custom bar, and the screen-bottom class wiped on a style switch (the KeyBar.tsx commit);
LOW, fixed: a wheel the row cannot follow further is left to the page and a page-mode wheel turns the row by its width; the ko / ja description said Basic has "every key"; the hold timer and its release are tested on a fake clock; the regression reads the bar's state and key order, not a class string.
Left as LOW, not fixed:
the click swallowed after a drag that scrolled is a flag for the next click, not tied to the pointer: a keyboard click in the same tick, or a pen used during a mouse drag, can meet it;
a Custom bar set aside gets its style back only within one visit to the editor: closed between the edit out of Lean / Basic and the return to that layout, it comes back in the newer style (one tap on the chip sets it).
… keys, and one made on a full bar is kept
Two LOW findings from the reviews of the key bar editor (#5087):
- With My keys full, a key of the person's own that only the bar held pushed the oldest kept
key out when it left the bar or on Restore defaults. Such an edit is now not made, the status
line says why, and My keys show every key, those only the bar holds too.
- A key made in New key while the bar was full went nowhere. It is now kept in My keys, and the
status line still says the bar is full.
Co-authored-by: sisyphus-dev-ai <[email protected]>
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
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.
Summary
Summary by CodeRabbit
Bug Fixes
Personal keys are no longer silently removed from My keys when the collection reaches its limit. Removing a personal key from the bar or restoring the default bar is blocked when it would exceed the limit, and a message asks you to delete a key first.
Creating a key while the bar is full still saves it in My keys, even if it cannot be added to the bar.
Key bar edits now preserve saved keys when My keys reaches its limit. New keys created while the bar is full remain in My keys. The editor reports when an edit is blocked by the My keys limit or when the bar is full.
Changes: My keys retention
Layer / File(s)
Summary
Key retention and edit rules src/lib/keyBarEdit.ts, src/lib/keyBarEdit.test.ts
Edits no longer evict older saved keys when My keys is full. New keys can be saved while the bar is full. Tests cover placement, removal, reset, and own-key merging.
Editor feedback and documentation src/components/KeyBarEditor.tsx, src/components/KeyBarEditor.test.tsx, src/lib/i18n/settings.*.ts, DESIGN.md, changelog.d/key-bar-own-keys-kept.md
The editor reports full-list and full-bar conditions, and only focuses a placed key after a successful edit. Tests and documentation describe these outcomes. Japanese, Korean, and Simplified Chinese translations add the full-list message.
devswha/ovis#5081: Introduced the key bar editor, My keys list, and stored own-key record that this change updates.
devswha/ovis#5087: Introduced the editor behavior whose My keys retention and New key behavior this change corrects.
Suggested reviewers:jokkopucko
Merge Risk: Minimal · previous review 2167b
When My keys is full, removing your own key from the bar or restoring defaults is now blocked instead of silently deleting the oldest saved key. New keys created while the bar is full stay in My keys. The changes are small and reversible. The only known gap is a rare status-message mix-up across tabs, which is low impact and not a reason to block merge.
Pre-merge checks: 4
Check name
Status
Explanation
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.
Title check
The title names the primary change: My keys now keeps every key of the user's own, which matches the keyBarEdit.ts and KeyBarEditor changes that block edits when My keys is full and keep new keys in M…
Description check
The description follows the repository template closely. It has a Change section that explains the problem and the resulting behavior, and a Validation section that lists the commands run with results…
Full details: Title check
Explanation
The title names the primary change: My keys now keeps every key of the user's own, which matches the keyBarEdit.ts and KeyBarEditor changes that block edits when My keys is full and keep new keys in My keys. It also names two further items (a Custom bar in Lean's or Basic's style, and renaming All keys to Basic) that the raw summary does not mention. The title is long at 113 characters, but the main change is clearly identified.
Full details: Description check
Explanation
The description follows the repository template closely. It has a Change section that explains the problem and the resulting behavior, and a Validation section that lists the commands run with results. The PR is a bug fix from a review finding, so it does not need a linked feature issue. It also covers the changelog, the stored format, and the review rounds. The Change section is long, and the PR bundles a second unrelated part (bar style, mouse drag, and the Basic rename) into the same description. That makes the scope hard to review, but the template fields are present and filled in.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 5a93dba and 2167b75.
Files selected for processing: 9
DESIGN.md
changelog.d/key-bar-own-keys-kept.md
src/components/KeyBarEditor.test.tsx
src/components/KeyBarEditor.tsx
src/lib/i18n/settings.ja.ts
src/lib/i18n/settings.ko.ts
src/lib/i18n/settings.zh.ts
src/lib/keyBarEdit.test.ts
src/lib/keyBarEdit.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
…laces, and the status line speaks of the stored bar
From the review of the key bar bundle (#5106):
- Restore defaults on an edited bar replaces the custom bar set aside before it. A key of the
person's own that only that bar held (a bar from before My keys, set aside by choosing Lean)
was then held nowhere. Its keys are now kept in My keys too, and the reset is not made, with a
word in the status line, when they have no room.
- Which had no room, the bar or My keys, is read from the bar the edit was made on (storage's),
so a full bar no longer hides that another tab filled My keys; and the word goes once a
change from elsewhere has made room, not before.
- The keys an edit keeps in My keys are named in one place, which the reducer and the status
line both read.
Co-authored-by: sisyphus-dev-ai <[email protected]>
…wipes the editor's bar, and "All keys" renamed Basic
Three changes the owner asked for after using the key bar editor:
- A Custom bar is drawn as Basic's bar across the screen or as Lean's rounded row floating over
the keyboard: keyBarCustomStyle, this device only, under its own storage key (an older tab's
save cannot drop it), Basic until chosen. keyBarFloats reads it for the terminal
(PaneTerminal's floatingBar), the editor's bar and the Terminal page's preview. Edit key bar
offers the two as Bar style on a touch screen, each with the bar in small, and a bar edited
out of Lean or Basic starts in that layout's style.
- The bar the editor draws is a phone's bar under a mouse too: while its row runs past its end,
a sideways mouse drag over its keys scrolls it and its release picks no key, a wheel turns it
sideways, and a key is lifted by holding still or by pulling it out of the row. A mouse's
press no longer focuses (and so picks) the key it only scrolls past.
- The layout "All keys" is called "Basic" in every language, in DESIGN.md, the unreleased
changelog fragments and comments. The stored value stays "full".
Co-authored-by: sisyphus-dev-ai <[email protected]>
…press ends with its button, the style set aside comes back
From the one review round of 7ce7c41 (gate reviewer and Codex):
- A mouse's press ended only on pointerup, which does not come while another button is down:
the hold timer then lifted a key with no primary button held, and that other button's release
dropped it. The press ends, and a key that is up is dropped, on the move that reports the
primary button gone.
- An edit out of Lean or Basic takes the style for the new Custom bar. When the bar is that
layout again (Undo, the key taken off again) the Custom bar set aside gets its style back;
Restore defaults, which sets the new bar aside in its place, keeps the new bar's.
- SettingsProvider.update wrote a field only when it differed from what this tab holds, so a
style another tab had changed, not yet heard of here, stayed in storage when an edit asked
for the value this tab already held. A function patch is now also compared with the snapshot
it was given; the editor saves its edits and Undo that way.
- A wheel the row cannot follow any further is left to the page, and a wheel that counts pages
turns the row by its width.
- ko, ja: Basic is the row across the screen, not "every key".
- Tests: hold and release on a fake clock, the secondary-button cases, the style round trips;
the browser regression reads the bar's state and the order of its keys, not a class string.
Co-authored-by: sisyphus-dev-ai <[email protected]>
… bottom, and a floating Custom bar keeps Paste by its switch
Two findings from the review of the Custom bar style that only KeyBar.tsx can fix; kept apart
from the editor's commits so the key bar's owner can take or change them.
- React writes the bar's class list anew when `floating` changes, without the
is-at-screen-bottom class the placement effect had set, until the next resize. The effect
runs again when the bar starts or stops floating. (On main this already happens when the
layout goes between Lean and Basic with the bar on screen.)
- A floating bar drew Paste after all its keys, and Paste's note beside the Input line switch at
the start: in a long Custom bar the tap's feedback was off screen. With the switch shown
(a Custom bar) Paste stays at the start, as in a bar across the screen. Lean is unchanged.
The browser regression fails without either.
Co-authored-by: sisyphus-dev-ai <[email protected]>
devswha
changed the title
fix(keybar): My keys full keeps every key of your own, and a key made on a full bar is kept
feat(keybar): My keys keep every key of your own; a Custom bar in Lean's or Basic's style; All keys renamed Basic
Nov 30, 2026
… the screen's bottom
The browser case the key bar's owner asked for with the placement effect's [floating] deps:
choose Lean, then Basic, with the bar at the screen's bottom, and the is-at-screen-bottom class
is there again without a resize; Custom then brings the bar set aside back. It fails with the
effect's deps empty.
Co-authored-by: sisyphus-dev-ai <[email protected]>
Merged through pr-merge at head 82a1335b4. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit finished, with no review that names this head.
main had moved since the checks of f61811ff4: pr-merge --update merged it in (42b32c44c), and every required check was green at this head.
Key bar bundle 2. Reviews: omo gate (dori review) and Codex via axwith on this PR; editor lane's own tests and mutation checks.
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
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.
The next key bar bundle (key bar area, bundled by area). One change, from the keybar-editor-ux lane (its commit bfa2893, unchanged), plus its changelog fragment.
Change
Two LOW findings from the reviews of the key bar editor (#5087), fixed because the first loses the person's data:
Files:
src/lib/keyBarEdit(.test).ts,src/components/KeyBarEditor(.test).tsx, the three settings i18n files, DESIGN.md, a changelog fragment. No new control or setting.Validation
bun run typecheck(exit 0);bun test src/lib/keyBarEdit.test.ts src/components/KeyBarEditor.test.tsx src/lib/i18n.test.ts src/conventions.test.ts scripts/changelog-fold.test.ts(117 pass);scripts/key-bar-customization-demo-regression.ts8 PASS.Review round
omo gate (dori review at 2167b75): CLEAR, two LOWs. Codex via axwith: BLOCK. Fixed in db3cb0d (from the keybar-editor-ux lane, one fix round):
apply()from the same stored snapshot as the edit (keyBarEditRefusal), so "My keys is full" is never overwritten by "The key bar is full", and a capacity note clears once another tab makes room. omo's LOW: an editor test that Restore defaults with My keys full saves nothing.Checked at db3cb0d: typecheck ok; keyBarEdit, KeyBarEditor, settings, i18n, conventions 251 pass;
scripts/key-bar-customization-demo-regression.ts8 PASS; the editor lane turned each new test red with a mutation.Part: a Custom bar's style, a mouse that swipes the editor's bar, "All keys" renamed Basic
Change
Three changes the owner asked for after using the key bar editor (#5087) himself.
keyBarCustomStyle("full" | "lean", throughsanitizeSettings, default"full"= today's behaviour), stored under its own keyovis:key-bar-custom-styleso a tab of an older build cannot drop it, and followed across tabs.keyBarFloats(items, style)insrc/lib/keyBar.tsis the one rule the terminal (PaneTerminal'sfloatingBar), the editor's bar and the Terminal page's preview read."full", so everyone keeps the layout they chose.Also in
KeyBar.tsx(agreed with the key bar's owner, its own commit): the bar's placement effect runs again when the bar starts or stops floating (React rewrites the class list then and wipedis-at-screen-bottomuntil the next resize; on main this already happened between Lean and Basic), and a floating bar that shows the Input line switch (a Custom bar) keeps Paste beside it, where Paste's note shows. Lean is unchanged.No new control in the chat composer. No HTTP/WS contract change.
Screenshots are from an isolated demo server, phone width 390, light, Korean.
Stored format
ovis:key-bar-custom-style="full"or"lean".ovis:key-barandovis:key-bar-ownare unchanged. Device-only.SettingsProvider.update: a function patch is now also compared with the fresh snapshot it was given, so a field it sets is written over a newer value in storage that this tab has not heard of yet (before, a value this tab already held was left unwritten). Object patches behave as before.Validation
src/lib/keyBarDrag.test.ts(new, 7: sideways drag scrolls and lifts nothing, pull out of the row lifts at once, nothing to scroll lifts at once, hold on a fake clock, release clears the hold, the two secondary-button cases),src/components/KeyBarEditor.test.tsx(style kept out of Lean and out of Basic, the two chips, no chips without touch, the set-aside bar's style round trips through Undo / toggle / Restore defaults, a style another tab chose and this tab has not heard of),src/lib/keyBar.test.ts(keyBarFloats),src/lib/settings.test.ts(default, sanitize, scope, an older tab's whole-record save),src/lib/settings.hook.test.ts(another tab's style followed with no write; a function patch over a newer stored value).scripts/key-bar-customization-demo-regression.tsgains a mouse drag and a wheel that scroll the editor's bar without moving or picking a key, a mouse reorder after a hold, and "a Custom bar floats as Lean's does when its style says so, in the editor and in the terminal, and goes back with Basic's" and "a bar that stops floating, by its style or its layout, keeps its room at the screen's bottom" (Lean, then Basic, in Settings -> Terminal; 9 PASS; it fails without eitherKeyBar.tsxchange).key-bar-pinned-history8,key-bar-input-paths6,settings-pages-demo17 PASS.adb shell input, positions calibrated against a trustedtouchstart): a swipe along the editor's bar scrolls it (0 -> 215 px) with no key lifted; a long press and a drag to the row's right edge scrolls the row to its end under the finger and the drop puts the key last; a tap on the Lean chip floats the bar, the floating row swipes, a tap on Basic puts it back. This ran on the first commit, before the review fixes below; after them the same flows ran in Chromium and in the browser regression.pointerup, which does not come while another button is down: the hold timer lifted a key with no primary button held and the other button's release dropped it (the press now ends, and a key that is up is dropped, on the move that reports the primary button gone);updatechange above);KeyBar.tsxcommit);