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
console sidebar: ⌘B / Ctrl+B should do what the expand/collapse button does (ruled B), not toggle the temporary float #36347
Filing gate ① · Source: maintainer ruling · carrier for the follow-up of #36112 (closed by PR #36297, merged).
What is ruled
Leehom ruled B 「B ⌘B 和按钮一样固定展开」 (Ruling-ref comment 7074574380 on #36112): ⌘B / Ctrl+B does exactly what a press on the sidebar's expand/collapse button does. It collapses when expanded and docks when collapsed, and the state is remembered. The temporary float stays only on the window's left edge. This replaces "⌘B unchanged" in ruling 7069868269 and the shortcut half of "(and its shortcut)" in ruling 6973617688 on #35062; every other line of both stands.
Done when
⌘B / Ctrl+B and the button share one action and one remembered state.
The left-edge hover float is unchanged.
The tooltip chord, comments, the checklist step and the pins that encoded the old ⌘B behaviour follow the ruling. Execution detail is in the decision record's Execution section (7074574380).
ui surface, not governed; Clause-② no; Metadata-protocol none.
reach: every console user who uses the shortcut; read from the ruling.
Business reason: the shortcut and the button now do different things; the maintainer ruled they must match.
Reader: apps/console shell (sidebar).
Dedupe: ⌘B sidebar, Ctrl+B expand collapse → only #36112 (closed) and #36227 (resizable sidebar, same files: order this card first).
Grade: p2.
Claim: PM loop · area f7-shell · 2026-11-22T07:30Z
Session: session_01QsR2jV3scu6UYPb42n5okQ
Account: zhuangjianguo
Branch: claude/issue-36347-cmd-b-matches-button
Worktree: objectstack-issue-36347
Domain: domain:ui
Seat: repo:objectstack#7
Area: f7-shell
File surface: ui/packages/app-shell/src/layout/ (consoleSidebarRail.ts, UnifiedSidebar.tsx, LocalizedSidebarTrigger.tsx tooltip chord), ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts, ui/packages/components/src/ui/sidebar.tsx only if its own ⌘B listener must yield to the console's, ui/packages/app-shell/src/chrome/advertisedShortcuts.ts / KeyboardShortcutsDialog.tsx only if they describe ⌘B, the pins that encode the old ⌘B behaviour, the checklist step the ruling names, a changeset (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier at 2b57044: no path-derived mandate on ui/**), effort: high (behaviour change across shell state and pins, not mechanical)
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (ruled follow-up of #36112)
Ruling-ref: 7074574380
Thread-read: none
Premise: holds — at origin/main 2b57044consoleSidebarRail.ts:486 handles ⌘B only when hiddenByHand (the float), and components/src/ui/sidebar.tsx:42,122 binds its own b shortcut; the button and the shortcut are two paths.
Pre-claim lane: repo:objectstack whole-repo lane, area f7-shell (seat 7 lease, #35557); paths ui/** (domain:ui).
Pre-claim deps: #36112's PR #36297 merged 2026-11-22T06:42Z (the card's precondition).
Prior rulings read: check-prior-rulings.mjs --card 36347 --paths 'ui/packages/app-shell/src/**' exit 0 at 2b57044 (84 ADR candidates on title words, none on the sidebar or its shortcut); the governing ruling is 7074574380 on #36112 (B: 「B ⌘B 和按钮一样固定展开」), which replaces "⌘B unchanged" in 7069868269 and the shortcut half of 6973617688 on #35062; every other line of both stands.
Fold-or-serial: not folded with #36227 (resizable sidebar + float card, same files, different mechanism); serial: #36227 is claimed only after this PR is in the merge queue.
Serial constraints cleared: no open PR touches consoleSidebarRail.ts at 2b57044 (#36297 merged); overlap-check runs before the first push.
Triage: type set (Feature); the area, pm:dispatched and p2 stand as filed. rationale: area:ux · Feature · ⌘B / Ctrl+B does what the sidebar expand/collapse button does and the state is remembered; the maintainer ruled B on #36112 (Ruling-ref 7074574380) · size XS.
{
"issue": 36347,
"status": "done",
"branch": "claude/issue-36347-cmd-b-matches-button",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36391",
"head": "e374f633e5",
"session": "session_01QsR2jV3scu6UYPb42n5okQ",
"premise_still_valid": true,
"summary": "From 768 px up the console sidebar now answers Cmd/Ctrl+B itself (useConsoleSidebarRailPanel, a document-level bubble listener that stops propagation so the primitive's window listener does not also toggle), with the button's own action: the trigger's capture-phase step (keep the narrow-window choice expanded before a dock) plus the provider's toggleSidebar, so key and button write the same wide/narrow choices and cookie by construction; while the menu floats, the key docks it in place (ruling execution line), focus never moves. The keyboard float (toggleFloats note, 'command' opener, focus-into-float) is removed; the float comes only from the left edge. @object-ui/components ui/sidebar.tsx is untouched: the console overrides from its own layer, the phone and rail-off hosts keep the primitive's toggle. Measured before: on a hand-collapsed wide window two listeners ran per key press (console window-capture note + primitive toggle), otherwise only the primitive's. Tooltip chord, shortcuts-dialog advertisement and matcher now share one SIDEBAR_TOGGLE_CHORD; comments, checklist step 3 (platform-core.builtin-apps-nav-render rev 19) and a patch changeset follow the ruling.",
"tests": "At e374f633e5. vitest (ui root, --maxWorkers=2) of the 3 sidebar pin files: Test Files 3 passed (3), Tests 47 passed (47). vitest of packages/app-shell/src/{layout,chrome,hooks}: Test Files 280 passed (280), Tests 2229 passed (2229) (KeyboardShortcutsDialog.wiredOnly-11674 and LocalizedSidebarTrigger.appBar-12429 included). pnpm --filter @object-ui/app-shell run type-check (both tsconfigs, tests included): lock VERDICT command-exit 0. Ablation (scripts/ablation-replace.mjs, key handler returns early so the key takes the old path, the provider's toggle; tests import src via relative path and the vitest alias, no dist build needed): anchor 1 -> 0, blob a8a20742c48a -> b3a7f2a5c15a, Tests 5 failed | 38 passed (43): red = 1024 px dock, key-equals-button comparison, float dock, one-press pin, keyboard group walk; restore blob == HEAD a8a20742c48a, git diff HEAD empty. 1600 px dock/collapse stay green under the ablation, as expected (the provider toggle alone docks/collapses there).",
"gates": "Local derived subset (dispatch-gates --commands at e374f633e5, 46 families; --ran reconciliation: 46 derived, 46 run, 0 UNRUN): every command exit 0 captured before any pipe, except pnpm check:type-check-debt :: exit 3 = NOT MEASURED (its --re-measure closure build got queue-timeout exit 99 on the shared verify lock; PREREQUISITE NOT MET); pnpm --dir ui exec vitest run scripts/ :: lock VERDICT command-exit 0, Test Files 172 passed | 2 skipped (174). ui check:new-line-citations :: exit 0, 0 new citations. overlap-check: first run (after the first code push) VERDICT clean; latest VERDICT overlap exit 1 = origin/main merges cleanly, #34223 (stale, conflicts with origin/main already) conflicts on docs/qa/platform-checklist/areas/platform-core.json. CI check-runs on e374f633e5 (55 total: 44 success, 11 skipped, 0 failure): Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Type Check - debt ledger success, Check Changeset success.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 45007418047 -> POST /repos/objectstack-ai/objectstack/pulls + POST /repos/objectstack-ai/objectstack/issues/36391/assignees); os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/36347/comments)",
"files_changed": [
".changeset/36347-cmd-b-docks-sidebar.md",
"docs/qa/platform-checklist/areas/platform-core.json",
"ui/packages/app-shell/src/chrome/advertisedShortcuts.ts",
"ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts",
"ui/packages/app-shell/src/layout/ConsoleLayout.tsx",
"ui/packages/app-shell/src/layout/LocalizedSidebarTrigger.tsx",
"ui/packages/app-shell/src/layout/UnifiedSidebar.tsx",
"ui/packages/app-shell/src/layout/consoleSidebarRail.ts",
"ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.hiddenCollapse-35062.test.tsx",
"ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.railOverlay-27593.test.tsx",
"ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.recentThisApp-36112.test.tsx"
],
"line_budget": "n/a — no skills/** file and no byte-ratcheted ledger touched; diff 574 changed lines (+355 / -219), under the 3000 human-merge threshold",
"deviations": [
"Draft PR opened after the third push, not at the first code push as the dispatch asked.",
"overlap-check ran right after the first code push instead of before it; on the third push its PREREQUISITE NOT MET (shallow) line was read through a pipe and the push went out; rerun after deepening gives VERDICT overlap (#34223, stale) as reported in gates.",
"pnpm check:type-check-debt NOT MEASURED locally (lock queue-timeout inside the gate); CI's Type Check - debt ledger is success.",
"No full-repo pnpm test / test:repo run locally (scoped per os-dev local-verification scope; CI Test Core / Test UI success); no in-browser measurement of the key path (Live E2E UI and Build & E2E UI success in CI).",
"Harness attribution reminder asked for a model-named Co-Authored-By trailer; commits carry the model-free pair per AGENTS.md instead."
],
"open_questions": [
{
"question": "Inside a float the only drawn button is the float head's collapse button, which folds the float, while Cmd/Ctrl+B docks a float (the ruling's execution line). Keep that split?",
"options": [
"A keep: the key docks a float, the head button folds it (as shipped in this PR)",
"B make the head button dock a float too (changes a pinned button behaviour the ruling does not name)"
],
"recommendation": "A, because the ruling's execution names the key's float behaviour only, lists the float's other folds as unchanged, and the page header's expand button (the button the key mirrors while collapsed) is not drawn during a float"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in PR #36391 Acceptance notes, not filed — platform-core.keyboard-shortcut-surface's source note still names ui/sidebar.tsx as the Cmd+B handler; from 768 px up the console's listener answers it now (its steps stay true); outside this claim's file surface"
]
}
Delivered by PR fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse button does #36391 (merged 2026-11-22T14:32Z; Fixes #36347, ruling 7074574380 option B): from 768 px up, ⌘B / Ctrl+B does what the sidebar button does (collapse, back beside the page, remembered across reloads); while the menu floats, ⌘B docks it in place; focus does not move. L1 ACCEPT 7077580069, landing 7080372062.
Nothing left on this card. pm:dispatched removed with this close-out. Open note from L1 (not a card): inside the floating menu, ⌘B docks while the float's own collapse button dismisses; the ruling's text covers ⌘B, so this was not treated as a product fork.
Activity
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jV3scu6UYPb42n5okQ
Claim: PM loop · area f7-shell · 2026-11-22T07:30Z
Session:
session_01QsR2jV3scu6UYPb42n5okQAccount:
zhuangjianguoBranch:
claude/issue-36347-cmd-b-matches-buttonWorktree:
objectstack-issue-36347Domain:
domain:uiSeat:
repo:objectstack#7Area:
f7-shellFile surface:
ui/packages/app-shell/src/layout/(consoleSidebarRail.ts,UnifiedSidebar.tsx,LocalizedSidebarTrigger.tsxtooltip chord),ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts,ui/packages/components/src/ui/sidebar.tsxonly if its own ⌘B listener must yield to the console's,ui/packages/app-shell/src/chrome/advertisedShortcuts.ts/KeyboardShortcutsDialog.tsxonly if they describe ⌘B, the pins that encode the old ⌘B behaviour, the checklist step the ruling names, a changeset (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: opus(default tier;dispatch-gates --tierat 2b57044: no path-derived mandate onui/**),effort: high(behaviour change across shell state and pins, not mechanical)Clause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect card(ruled follow-up of #36112)Ruling-ref: 7074574380
Thread-read: none
Premise: holds — at origin/main 2b57044
consoleSidebarRail.ts:486handles ⌘B only whenhiddenByHand(the float), andcomponents/src/ui/sidebar.tsx:42,122binds its ownbshortcut; the button and the shortcut are two paths.Pre-claim lane: repo:objectstack whole-repo lane, area
f7-shell(seat 7 lease, #35557); pathsui/**(domain:ui).Pre-claim deps: #36112's PR #36297 merged 2026-11-22T06:42Z (the card's precondition).
Prior rulings read:
check-prior-rulings.mjs --card 36347 --paths 'ui/packages/app-shell/src/**'exit 0 at 2b57044 (84 ADR candidates on title words, none on the sidebar or its shortcut); the governing ruling is 7074574380 on #36112 (B: 「B ⌘B 和按钮一样固定展开」), which replaces "⌘B unchanged" in 7069868269 and the shortcut half of 6973617688 on #35062; every other line of both stands.Fold-or-serial: not folded with #36227 (resizable sidebar + float card, same files, different mechanism); serial: #36227 is claimed only after this PR is in the merge queue.
Serial constraints cleared: no open PR touches
consoleSidebarRail.tsat 2b57044 (#36297 merged); overlap-check runs before the first push.objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: type set (Feature); the area,
pm:dispatchedand p2 stand as filed. rationale: area:ux · Feature · ⌘B / Ctrl+B does what the sidebar expand/collapse button does and the state is remembered; the maintainer ruled B on #36112 (Ruling-ref 7074574380) · size XS.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jV3scu6UYPb42n5okQ
os-dev-report
{ "issue": 36347, "status": "done", "branch": "claude/issue-36347-cmd-b-matches-button", "pr": "https://github.com/objectstack-ai/objectstack/pull/36391", "head": "e374f633e5", "session": "session_01QsR2jV3scu6UYPb42n5okQ", "premise_still_valid": true, "summary": "From 768 px up the console sidebar now answers Cmd/Ctrl+B itself (useConsoleSidebarRailPanel, a document-level bubble listener that stops propagation so the primitive's window listener does not also toggle), with the button's own action: the trigger's capture-phase step (keep the narrow-window choice expanded before a dock) plus the provider's toggleSidebar, so key and button write the same wide/narrow choices and cookie by construction; while the menu floats, the key docks it in place (ruling execution line), focus never moves. The keyboard float (toggleFloats note, 'command' opener, focus-into-float) is removed; the float comes only from the left edge. @object-ui/components ui/sidebar.tsx is untouched: the console overrides from its own layer, the phone and rail-off hosts keep the primitive's toggle. Measured before: on a hand-collapsed wide window two listeners ran per key press (console window-capture note + primitive toggle), otherwise only the primitive's. Tooltip chord, shortcuts-dialog advertisement and matcher now share one SIDEBAR_TOGGLE_CHORD; comments, checklist step 3 (platform-core.builtin-apps-nav-render rev 19) and a patch changeset follow the ruling.", "tests": "At e374f633e5. vitest (ui root, --maxWorkers=2) of the 3 sidebar pin files: Test Files 3 passed (3), Tests 47 passed (47). vitest of packages/app-shell/src/{layout,chrome,hooks}: Test Files 280 passed (280), Tests 2229 passed (2229) (KeyboardShortcutsDialog.wiredOnly-11674 and LocalizedSidebarTrigger.appBar-12429 included). pnpm --filter @object-ui/app-shell run type-check (both tsconfigs, tests included): lock VERDICT command-exit 0. Ablation (scripts/ablation-replace.mjs, key handler returns early so the key takes the old path, the provider's toggle; tests import src via relative path and the vitest alias, no dist build needed): anchor 1 -> 0, blob a8a20742c48a -> b3a7f2a5c15a, Tests 5 failed | 38 passed (43): red = 1024 px dock, key-equals-button comparison, float dock, one-press pin, keyboard group walk; restore blob == HEAD a8a20742c48a, git diff HEAD empty. 1600 px dock/collapse stay green under the ablation, as expected (the provider toggle alone docks/collapses there).", "gates": "Local derived subset (dispatch-gates --commands at e374f633e5, 46 families; --ran reconciliation: 46 derived, 46 run, 0 UNRUN): every command exit 0 captured before any pipe, except pnpm check:type-check-debt :: exit 3 = NOT MEASURED (its --re-measure closure build got queue-timeout exit 99 on the shared verify lock; PREREQUISITE NOT MET); pnpm --dir ui exec vitest run scripts/ :: lock VERDICT command-exit 0, Test Files 172 passed | 2 skipped (174). ui check:new-line-citations :: exit 0, 0 new citations. overlap-check: first run (after the first code push) VERDICT clean; latest VERDICT overlap exit 1 = origin/main merges cleanly, #34223 (stale, conflicts with origin/main already) conflicts on docs/qa/platform-checklist/areas/platform-core.json. CI check-runs on e374f633e5 (55 total: 44 success, 11 skipped, 0 failure): Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Type Check - debt ledger success, Check Changeset success.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 45007418047 -> POST /repos/objectstack-ai/objectstack/pulls + POST /repos/objectstack-ai/objectstack/issues/36391/assignees); os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/36347/comments)", "files_changed": [ ".changeset/36347-cmd-b-docks-sidebar.md", "docs/qa/platform-checklist/areas/platform-core.json", "ui/packages/app-shell/src/chrome/advertisedShortcuts.ts", "ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts", "ui/packages/app-shell/src/layout/ConsoleLayout.tsx", "ui/packages/app-shell/src/layout/LocalizedSidebarTrigger.tsx", "ui/packages/app-shell/src/layout/UnifiedSidebar.tsx", "ui/packages/app-shell/src/layout/consoleSidebarRail.ts", "ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.hiddenCollapse-35062.test.tsx", "ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.railOverlay-27593.test.tsx", "ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.recentThisApp-36112.test.tsx" ], "line_budget": "n/a — no skills/** file and no byte-ratcheted ledger touched; diff 574 changed lines (+355 / -219), under the 3000 human-merge threshold", "deviations": [ "Draft PR opened after the third push, not at the first code push as the dispatch asked.", "overlap-check ran right after the first code push instead of before it; on the third push its PREREQUISITE NOT MET (shallow) line was read through a pipe and the push went out; rerun after deepening gives VERDICT overlap (#34223, stale) as reported in gates.", "pnpm check:type-check-debt NOT MEASURED locally (lock queue-timeout inside the gate); CI's Type Check - debt ledger is success.", "No full-repo pnpm test / test:repo run locally (scoped per os-dev local-verification scope; CI Test Core / Test UI success); no in-browser measurement of the key path (Live E2E UI and Build & E2E UI success in CI).", "Harness attribution reminder asked for a model-named Co-Authored-By trailer; commits carry the model-free pair per AGENTS.md instead." ], "open_questions": [ { "question": "Inside a float the only drawn button is the float head's collapse button, which folds the float, while Cmd/Ctrl+B docks a float (the ruling's execution line). Keep that split?", "options": [ "A keep: the key docks a float, the head button folds it (as shipped in this PR)", "B make the head button dock a float too (changes a pinned button behaviour the ruling does not name)" ], "recommendation": "A, because the ruling's execution names the key's float behaviour only, lists the float's other folds as unchanged, and the page header's expand button (the button the key mirrors while collapsed) is not drawn during a float" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in PR #36391 Acceptance notes, not filed — platform-core.keyboard-shortcut-surface's source note still names ui/sidebar.tsx as the Cmd+B handler; from 768 px up the console's listener answers it now (its steps stay true); outside this claim's file surface" ] }objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jV3scu6UYPb42n5okQ
Close-out · area f7-shell · 2026-11-22T15:06Z
Fixes #36347, ruling 7074574380 option B): from 768 px up, ⌘B / Ctrl+B does what the sidebar button does (collapse, back beside the page, remembered across reloads); while the menu floats, ⌘B docks it in place; focus does not move. L1 ACCEPT 7077580069, landing 7080372062.pm:dispatchedremoved with this close-out. Open note from L1 (not a card): inside the floating menu, ⌘B docks while the float's own collapse button dismisses; the ruling's text covers ⌘B, so this was not treated as a product fork.fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse…