Repository navigation
feat(workspaces): floating mobile windows, default size preferences, and touch UX - #65
Merged
funnycups merged 6 commits intoNov 22, 2026
Conversation
…and tri-lingual docs
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
After #58 unified the Workbench platform and shared Run Dock, desktop viewports already use floating small/large windows, whereas narrow mobile screens still forced both the Run Dock and the Workbench shell into edge-to-edge bottom sheets over dark scrims. On mobile this obscured most of the chat while search or multi-agent orchestration ran, offered no setting for whether windows should open small or large by default, and kept desktop-sized
24-30pxcontrols that were easy to mis-tap with one thumb.Changes
Mobile floating Run Dock & synced default size preference:
public/scripts/run-panel/dock.jsanddock.csswith a rounded floating window across bothsmall(compact header + live round card above the input/quick-reply bar, no backdrop scrim) andlarge(centered floating modal with both Shrink and Collapse buttons) modes, unifying the compact breakpoint with Workbench at<= 640pxand removing legacy bottom-sheet dead nodes/branches.mobilePos/mobilePillPos) separate from desktop coordinates (pos/pillPos) and trackedvisualViewportoffsets so the card stays visible when mobile keyboards open.defaultSize('small' | 'large', defaulting to'small') and exposedgetRunDockPrefs,setRunDockPrefs,resetRunDockPosition, andsubscribeRunDockPrefsonrun-panelandLuker.getContext().runPanel....menu, Search Tools extension settings (search-tools/settings-ui.jswith clean teardown and Node-safeglobalThis.window?.addEventListener), Orchestrator workspace settings (orchestrator/lens/views/settings-view.js), and WorkbenchSettings -> Window(workbench/pages/settings.js).Mobile floating Workbench window & default size setting:
<640pxbottom sheet and unreachable.wb-scriminworkbench/ui/window.js,workbench/model/geometry.js(compactDefaultBox/clampCompactBox, keepingtop + height <= vhandleft + width <= vw), andworkbench/css/shell.csswith a centered rounded floating window, preserving independentmobileBoxpersistence, persistedprefs.maximisedacross reloads and fold/reopen cycles, and the Maximize/Restore control on mobile.defaultSize: 'small'toDEFAULT_SETTINGSinworkbench/source-luker.jsandWorkbench default size(Small window/Large window) inSettings -> Window, and madeReset positionrestore both Workbench and Run Dock positions immediately without requiring a page reload.Thumb-friendly mobile touch UX, host-theme isolation & tri-lingual docs:
.is-compacttouch targets (34-36pxheader icon buttons,38pxtabs/selects/buttons/check rows,40pxmenu items and collapsed Run Dock pill with a36x36close target), auto-scrolling the active compact Workbench tab into view.6pxpointer deadzone before titlebar dragging starts and touch double-tap (<320ms) on both Workbench and Run Dock headers to toggle between small and large window modes cleanly on iOS/Android..wb-resize-y) on compact Workbench windows, made the collapsed Run Dock pill draggable without triggering accidental click-to-open on release, and auto-flipped the Run Dock...menu upward (.is-up) when opened near the bottom of the screen..lw-surfacebutton(box-shadow: none) and.lw-select(white-space: nowrap) isolation inlens-shared/tokens.cssagainst custom host themes.zh-CN/zh-TWuser & extension-API documentation (run-panel.md,orchestrator/index.md,workbench.md), E2E helpers, and05-panel-mobile.pngscreenshot.Verification
npm run lint:plugin-imports-> 0 violationsnpx eslint --quietacross all touched files -> 0 errorssearch-tools-extension-api.test.js,search-tools/,i18n-lens-audit.test.js,run-panel/,workbench/,orchestrator/lens/,memory-graph/,sd-workbench-lens.test.js) -> 111 / 111 suites passed (1103 tests)cd docs && npx vitepress build-> passed cleanly390x844mobile and1280x800desktop viewports in both light and dark themes