Repository navigation
feat: make the workspace sidebar resizable - #2109
Conversation
Preserve original control sizing while allowing a narrower pane, keyboard resizing, and temporary window-width constraints. Hide the visual grip and avoid button overlap. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes the workspace sidebar resizable by dragging or keyboard input while preserving conversation drafts and embedded-page alignment. Example: A user wants more conversation space in a 1280-DIP workspace window.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it adds a useful capability absent from main, has collaborator-backed direction, and introduces no definite source defect found in this review. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherWorkspaceWindow owns native sidebar layout and applies its measured width to NavigationView and embedded Settings pages; chat retains its existing host and draft. flowchart LR
Input[Pointer or keyboard input] --> Splitter[Existing GridSplitter control]
Splitter --> Column[Sidebar column width]
Window[Available window width] --> Column
Column --> Navigation[NavigationView pane]
Column --> Embedded[Embedded page allocation]
Technical reviewBest possible solution: Keep the existing window-owned layout implementation and complete its focused native validation before landing. Do we have a high-confidence way to reproduce the issue? This is a capability addition; current-main XAML directly confirms the fixed-width starting behavior, and no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is a small implementation using the existing GridSplitter package and WorkspaceWindow layout owner, with no unnecessary wrapper, parallel policy owner, or persistence machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6ff6a164b20. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 10, 2026, 8:29 PM ET / November 11, 2026, 01:29 UTC. |
Integrate the tested main baseline. Use the correct UI Automation patterns, preserve keyboard limits at fractional DPI, wait for dialog realization, and measure visible Usage session geometry. Co-authored-by: Copilot App <[email protected]>
Use localized Owner for unnamed gateway-owner profiles without displaying email, profile id or a shared-owner marker. Keep authentication, classification and sidebar sizing unchanged. Co-authored-by: Copilot App <[email protected]>
Keep upstream client-clipped Usage sampling and measured row discovery alongside the per-capture scroll reset. Preserve sidebar resizing and the name-only owner footer. Co-authored-by: Copilot App <[email protected]>
|
Hi Barbara. I'm a Copilot triage agent helping the maintainers see which ready PRs can land (I'm not Scott). Here is where this PR stands on head What looks good
What is holding it back tonight
Suggestion Optional and cosmetic. In - if (Math.Round(next * scale) != Math.Round(boundary * scale)) return;
+ var nextPx = Math.Round(next * scale);
+ var boundaryPx = Math.Round(boundary * scale);
+ if (delta < 0 ? nextPx > boundaryPx : nextPx < boundaryPx) return;Thanks for the careful work on the layout and the accessibility proofs. |
What Problem This Solves
The workspace sidebar has a fixed width, so users cannot trade sidebar space for more conversation space.
User Impact
User impact: drag the sidebar edge or focus it and use Left/Right to choose a width between 192 and 480 DIPs, while retaining the original control sizes.
The default remains 256 DIPs. Width is retained across collapse/reopen and restored after a temporary window-width constraint, but is not saved across app restarts.
The Gateway owner footer shows only the saved first name, without a shared-owner marker. An unnamed Gateway owner shows localized Owner, never email or profile id. Authentication and shared-profile classification are unchanged.
Why This Change Was Made
Use the existing native GridSplitter with a transparent 4-DIP hit area and no visible grip. Keep at least 480 DIPs for content, move embedded pinned pages with the pane, and leave full Settings navigation unchanged.
Remove the agent selector's duplicate chevron spacing and keep narrow footer status on one line. Accessible splitter labels are provided in all six supported locales.
The name-only owner presentation is integrated into the existing identity-label projection; obsolete shared-owner label resources are removed from all six locales.
CI follow-up uses the correct toggle/selection automation patterns, waits for dialog-template realization, and measures the Usage session header only after scrolling it into view. Fractional-DPI validation also exposed a real keyboard boundary bug: the Toolkit rejects a computed width of 191.99998 against the 192-DIP minimum. The preview handler normalizes only destinations that match the limit's rendered pixel, preserving ordinary Toolkit resizing and Alt+Left/Right navigation.
The latest
mainmerge preserves its stronger client-clipped Usage viewport and measured-row discovery, alongside this PR's scroll-to-top reset before each capture.Evidence
Full build passed. Shared tests: 5,760 passed and 28 ordinary opt-in skips. Tray tests: 6,275 passed, with one existing real-profile-reading test explicitly excluded.
Nine focused native cases now pass with no skips: the six sidebar/Systems/Usage cases plus three owner-footer cases covering the authenticated label, name-only Gateway owner, and avatar loading. This proves the combined tree retains exact sidebar boundaries at 175% scale, draft retention, collapse/reopen, window-width restoration, and Alt+Left navigation. Current-head CI and remaining proof-pool acceptance are still required before merging.
The preceding sidebar/CI-fix head
ee007ad2passed hosted CI. That is historical evidence, not a result for the new owner-name integration.The earlier Hanselman dual-model review found four verified low/medium issues, which were addressed. Independent rubber-duck review covered the feature and CI repairs; its Alt-navigation and animated-detail visibility concerns were addressed. Reviews do not substitute for runtime proof.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: sidebar dragging, keyboard resizing, owner-footer presentation, accessible focus, embedded-page geometry and current-source Light/Dark visual behavior. Nine focused Debug cases passed; complete pool acceptance, High Contrast and production-shaped Release evidence remain outstanding.Validation
Commands ran on native Windows ARM64 using isolated tray data,
OPENCLAW_REPO_ROOTset to the worktree, andOPENCLAW_STATE_DIRand ordinaryOPENCLAW_RUN_*opt-ins unset. A process-local PATH cleanup was needed for the existing GitVersion build step.The native run opted into
OPENCLAW_RUN_GATEWAY_FIXTURE_UI=1with an explicit current-buildOPENCLAW_GATEWAY_FIXTURE_APP. A temporary short drive alias to the same checkout's parent avoided FileWorker copy paths exceeding 260 characters; it was removed after each run. App references were fully built before the focused test command..\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared-main-merge.trx' --results-directory <session-results>dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName!~OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData' --logger 'trx;LogFileName=tray-main-merge.trx' --results-directory <session-results>dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 --no-restore -p:BuildProjectReferences=false --filter 'FullyQualifiedName~SidebarResize_KeepsDraftAndWidthAcrossCollapseAndWindowResize|FullyQualifiedName~AddAndForgetDialogs_ExposeConsequencesAndSafeDefaults|FullyQualifiedName~UsageHero_RealShellCapturesCardAndRangeInLightAndDark|FullyQualifiedName~NarrowDialog_StacksFactsAndFooterWithoutChangingDestructiveFocus|FullyQualifiedName~OwnerFooter' --logger 'trx;LogFileName=sidebar-main-merge-native.trx' --results-directory <session-results>.\scripts\validate-docs.ps1git diff --checkHosted classifier selects targeted tray/UI tests and the normal validation gates. A new hosted CI result and production-shaped Release UI proof are not implied by the local passes. Earlier CI failures and local diagnostic attempts are retained; they were not made green with assertion removal, widened timeouts, skips or whole-test retries.
Real Behavior Proof
Environment tested: native Windows ARM64, Debug WinUI app, 175% display scale, isolated app profile and synthetic loopback Gateway.
PR head or commit tested: source now committed as
8bed20524954dc8567cdae605d0a430ace1f86be. Checks ran against the identical uncommitted merge ofmainat994539b8b6f51182841e62247357f31cac7ed6e4into42ff2e43ebeddf45e6c25bb083cf9b1d5bc596ce, before this commit was created. Candidate patch SHA-256 against that main tip was751ae77b2193dec25568b4ed058e580f424f0481d1930b065788e7d0f5940ddb; correspondence is manually recorded, not an inventory-bound native freeze receipt.Exact steps or command run: the nine-case
dotnet testcommand above, using the explicitly selected current-build ARM64 Debug app and isolated synthetic fixture profiles.Evidence after fix: copied current-source TRX outcomes:
Observed result: real keyboard resizing reaches 192 DIPs and the display-attainable maximum, rejects further boundary keys, avoids button overlap, retains the draft and pane width across collapse/reopen, follows embedded pinned pages, preserves Alt+Left navigation, and restores width after narrowing then maximizing the window. Systems card-template, focus and centering assertions pass. Usage captures complete in both themes, including expanded session geometry and the narrower shell. The Gateway owner fixture with saved name "Fixture Shared Person" renders only "Fixture", retains Connected help text, and loads its authenticated avatar. Identity unit tests cover localized Owner fallback without shared-owner email/id. The earlier hidden-grip visual acceptance was on a previous head; current Usage captures remain local and are not public screenshot links.
Screenshot or artifact links verified? (
Yes/No/N/A): N/A. No public media or local private paths are attached.Not verified or blocked: hosted CI completion for the new head, High Contrast, production-shaped Release UI proof, additional desktop/DPI configurations, full proof-pool acceptance, and the excluded real-profile test on an isolated Windows user/host. The old local FileWorker path-length blocker was resolved for validation with the temporary short alias. Fixture evidence does not establish real Gateway pairing/provider or installer behavior; none of those contracts changes here.
Security Impact
Yes/No) No.Yes/No) No.Yes/No) No.Yes/No) No.Yes/No) No.Yes, explain the risk and mitigation: N/A.Compatibility and Migration
Yes/No) Yes.Yes/No) No product configuration changes; validation uses isolated process-local overrides.Yes/No) No.Review Conversations