Repository navigation
sessions: add an isolated experimental mobile web workbench - #345368
Merged
Osvaldo Ortega (osortega) merged 19 commits intoNov 10, 2026
Merged
Conversation
Keep the existing workbench presentation by default while allowing isolated entries to adapt session headers, pickers, chat edits and layout. Preserve provider-owned repository authentication and scoped model configuration. Co-authored-by: Copilot <[email protected]>
Compose the mobile entry from shared services without adding it to production entry points or resource inventories. Adapt phone sheets, host selection, chat edits and the shared composer to current chat-scoped configuration APIs, preserving enterprise checks and provider-advertised agent identities. Co-authored-by: Copilot <[email protected]>
Restore required shared composer, policy continuation, artifact, and MCP OAuth registrations. Reuse provider-aware custom agent normalization across both pickers, suppress stale background notifications after permission requests, and handle rejected pull-to-refresh operations. Co-authored-by: Copilot <[email protected]>
Use required entry-selected repository, list and edit presentations. Keep input sizing in component options and clipboard behavior in entry registrations, preserving ordinary UI and async lifetimes. Co-authored-by: Copilot <[email protected]>
Use focused entry-owned presentations, component input options, and dedicated clipboard registration. Preserve automation prompt metrics and keep normal and mobile implementations isolated. Co-authored-by: Copilot <[email protected]>
Keep the tested mobile source unchanged and add a regression check for clipboard registration after restoration. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Bring in current main, including the sticky request bubble test fix from #345320. Preserve both presentation and pinned canvas services. Co-authored-by: Copilot <[email protected]>
Retain per-page stylesheet discovery using the dependency-free upstream collector. Co-authored-by: Copilot <[email protected]>
Normalize new-group and rename results at the shared list boundary, with coverage for whitespace and disposed lists. Register the default chat edit presentation in fixture services and support its editor-open requests. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Track newly created Quick Input widgets by identity instead of assuming the shared test document is empty. Seed four unrelated hidden widgets to cover full-suite execution without weakening the no-fallback assertion. Co-authored-by: Copilot <[email protected]>
Use DOM events with local touch coordinates instead of native Touch constructors, which WebKit rejects. Preserve both touchend and touchcancel rejection and indicator-reset assertions. Co-authored-by: Copilot <[email protected]>
Merge main at 498770f. Preserve reactive chat font sizing and live height calculation while honoring explicit presentation metrics, with regression coverage for mobile overrides. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Base automatically changed from
osortega/agents/mobile-stack/01-presentation
to
main
November 3, 2026 05:03
Adapt the mobile entry to the shared Sessions extraction and scoped session hosts. Preserve entry-owned presentation, restore required startup services, and keep draft configuration tied to its originating input. Co-authored-by: Copilot <[email protected]>
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The mobile input service can return an unvalidated value after asynchronous validation, while picker updates, session-replacement notifications, and context-menu action routing also have unresolved defects.
5 open issues
Return the validated input value after async validation · New Replace picker items in place to refresh open sheets · New Retarget draft tracking when the committed session replaces it · New Allocate unique action IDs across recursive submenu traversal · New Use the base codicon size for the drawer host glyph · New
What changed in this PR
Adds a local-only experimental mobile Agents workbench on top of the presentation-service prerequisite in #345367. It reuses shared Sessions behavior while selecting phone-specific UI at startup; production packaging and deployment remain out of scope.
Changes:
- Introduces isolated mobile entry points, service registrations, and a local
--mobilelauncher option. - Adds phone-oriented configuration sheets, host selection, session navigation, edit review, and notifications.
- Separates desktop-only contributions and adds focused presentation, lifecycle, and isolation tests.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/test/browser/mobile/mobilePickerSheet.test.ts |
Tests asynchronous selection and focus preservation. |
src/vs/workbench/contrib/sessions/providers/copilotChatSessions/test/browser/permissionPicker.test.ts |
Adapts picker tests to injected presentation services. |
src/vs/workbench/contrib/sessions/providers/copilotChatSessions/browser/permissionPicker.ts |
Allows asynchronous sandbox updates. |
src/vs/workbench/contrib/sessions/providers/copilotChatSessions/browser/mobilePermissionPicker.ts |
Routes permissions through unified configuration sheets. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/mobile/mobileChatInputConfigPicker.ts |
Registers session-scoped model selection. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/mobile/mobileAgentHostModePicker.ts |
Integrates unified sheets and guards repeated opening. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/agentHostSessionConfigPicker.ts |
Connects permission controls to phone presentation. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/agentHostPermissionPickerDelegate.ts |
Returns sandbox configuration completion. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/agentHostModePicker.ts |
Adds a replaceable picker presenter. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/agentHostAgentSelection.ts |
Extracts shared agent identity and selection helpers. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/agentHostAgentPicker.ts |
Reuses shared agent-selection helpers. |
src/vs/workbench/contrib/sessions/browser/menus.ts |
Defines mobile host-selection menu locations. |
src/vs/sessions/test/web.test.terminal.ts |
Isolates desktop mock terminal registration. |
src/vs/sessions/test/web.test.factory.ts |
Accepts a workbench factory for testing. |
src/vs/sessions/test/sessions.web.test.internal.ts |
Loads desktop mock terminal support explicitly. |
src/vs/sessions/test/sessions.web.mobile.test.internal.ts |
Adds a mobile mock-services entry. |
src/vs/sessions/test/browser/workbenchFactory.test.ts |
Tests fixed mobile workbench selection. |
src/vs/sessions/test/browser/mobilePullToRefresh.test.ts |
Tests refresh failure handling and indicator reset. |
src/vs/sessions/sessions.core.web.main.ts |
Supplies browser service bindings for mobile composition. |
src/vs/sessions/sessions.common.main.ts |
Loads desktop chat contributions explicitly. |
src/vs/sessions/services/sessions/browser/sessionsServices.registration.ts |
Separates default presentations from shared registrations. |
src/vs/sessions/services/sessions/browser/sessionsCoreServices.registration.ts |
Registers shared Sessions services independently. |
src/vs/sessions/MOBILE.md |
Documents mobile ownership, isolation, and local launch. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/mobileAgentHostFilterService.test.ts |
Tests mobile host defaults and explicit selections. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/connectionDiagnosticsReport.test.ts |
Tests mobile diagnostics navigation and focus restoration. |
src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/connectionDiagnostics.fixture.ts |
Adds an experimental mobile host-picker fixture. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileTunnelConnection.ts |
Coordinates shared authentication and tunnel connection services. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostPlaceChipViewItem.ts |
Adds new-session host selection. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostFilter.contribution.ts |
Registers mobile host controls and filtering. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostDrawerHeaderViewItem.ts |
Displays host selection in the sessions drawer. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileAgentHostFilterService.ts |
Adds mobile-specific host ranking and labels. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostPlaceChip.css |
Styles the new-session host row. |
src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostDrawerHeader.css |
Styles drawer host controls and status. |
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostChatInputPickersScope.test.ts |
Loads picker registrations through contribution modules. |
src/vs/sessions/contrib/providers/agentHost/browser/mobile/experimentalMobileChatInputActionViewItem.ts |
Adds a compact model-label configuration trigger. |
src/vs/sessions/contrib/mobile/test/browser/mobileQuickInputService.test.ts |
Tests picker cancellation and delayed validation dismissal. |
src/vs/sessions/contrib/mobile/test/browser/mobileNullAgentHostTerminalService.test.ts |
Tests unavailable terminal state. |
src/vs/sessions/contrib/mobile/test/browser/mobileConfigurationDefaults.test.ts |
Tests mobile defaults and explicit user overrides. |
src/vs/sessions/contrib/mobile/test/browser/mobileComposerPresentation.test.ts |
Tests composer visibility, touch targets, and layout. |
src/vs/sessions/contrib/mobile/test/browser/mobileChatEditRow.test.ts |
Tests edit snapshots, counts, and resource disposal. |
src/vs/sessions/contrib/mobile/test/browser/mobileBackgroundNotifier.test.ts |
Tests notification ownership and asynchronous permission handling. |
src/vs/sessions/contrib/mobile/test/browser/mobileActionWidgetService.test.ts |
Tests in-place filtering and focus. |
src/vs/sessions/contrib/mobile/browser/mobileSessionToolbar.ts |
Composes menu-backed mobile headers. |
src/vs/sessions/contrib/mobile/browser/mobileSessionsListPresentation.ts |
Adds prompted naming, drawer headers, and refresh gestures. |
src/vs/sessions/contrib/mobile/browser/mobileRepositoryPicker.ts |
Adds cancellable repository search sheets. |
src/vs/sessions/contrib/mobile/browser/mobileNullChatWindowService.ts |
Disables separate chat windows on mobile. |
src/vs/sessions/contrib/mobile/browser/mobileNullAquariumService.ts |
Omits the desktop aquarium presentation. |
src/vs/sessions/contrib/mobile/browser/mobileNullAgentHostTerminalService.ts |
Disables interactive terminals while retaining output streams. |
src/vs/sessions/contrib/mobile/browser/mobileKeybindingService.ts |
Hides shortcut hints without disabling keybindings. |
src/vs/sessions/contrib/mobile/browser/mobileContextMenuService.ts |
Presents context menus as flattened action sheets. |
src/vs/sessions/contrib/mobile/browser/mobileConfigurationDefaults.ts |
Defines mobile-entry configuration defaults. |
src/vs/sessions/contrib/mobile/browser/mobileClipboardImageContext.ts |
Registers clipboard reads triggered by selection. |
src/vs/sessions/contrib/mobile/browser/mobileChatViewFactory.ts |
Supplies mobile composer metrics and header composition. |
src/vs/sessions/contrib/mobile/browser/mobileChatEditRow.ts |
Renders edit summaries linked to mobile diffs. |
src/vs/sessions/contrib/mobile/browser/mobileChatEditPresenter.ts |
Routes chat edits to mobile diff overlays. |
src/vs/sessions/contrib/mobile/browser/mobileBackgroundNotifier.ts |
Adds background session notifications. |
src/vs/sessions/contrib/mobile/browser/mobile.contribution.ts |
Registers mobile presentations, defaults, and styles. |
src/vs/sessions/contrib/mobile/browser/media/mobileQuickInput.css |
Styles mobile input sheets. |
src/vs/sessions/contrib/layout/browser/sessions.mobile.layout.contribution.ts |
Installs the mobile layout controller. |
src/vs/sessions/contrib/chat/test/browser/openSessionLinkOpener.test.ts |
Tests navigation without separate chat windows. |
src/vs/sessions/contrib/chat/browser/chat.desktop.contribution.ts |
Isolates desktop task, terminal, and pet contributions. |
src/vs/sessions/contrib/chat/browser/chat.contribution.ts |
Removes desktop-only contribution registrations. |
src/vs/sessions/browser/mobile/mobileWorkbench.ts |
Defines the fixed-phone workbench and factory. |
src/vs/sessions/browser/mobile/mobilePullToRefresh.ts |
Implements pull-to-refresh feedback and error handling. |
src/vs/sessions/browser/mobile/media/mobilePullToRefresh.css |
Styles the refresh indicator and live region. |
src/vs/sessions/browser/mobile/experimentalMobileTitlebarPart.ts |
Adds mobile titles and account-sheet focus handling. |
src/vs/sessions/agents.web.mobile.main.internal.ts |
Exposes the mobile embedder entry. |
src/vs/platform/agentHost/test/browser/agentHostSandboxToggle.test.ts |
Tests propagation of asynchronous sandbox writes. |
src/vs/platform/agentHost/browser/agentHostSandboxToggle.ts |
Returns sandbox update promises to presenters. |
scripts/code-sessions-web.js |
Adds mobile launch selection and ordered CSS loading. |
eslint.config.js |
Defines import boundaries for mobile and core entries. |
build/lib/stylelint/vscode-known-variables.json |
Registers mobile CSS custom properties. |
Review effort: Balanced
Address naming feedback on #345368 while preserving ordinary entry isolation. Co-authored-by: Copilot <[email protected]>
Keep open pickers synchronized with current items and accept the submitted, validated input. Track replacement sessions, disambiguate flattened actions, align the host icon, and restore the permission-picker fixture's scoped host.\n\nAddress review feedback on #345368 with focused regression tests. Co-authored-by: Copilot <[email protected]>
Unblock PR #345368 CI after main advanced. Preserve both the mobile agent-selection helper and the upstream product-service import. Co-authored-by: Copilot <[email protected]>
Osvaldo Ortega (osortega)
marked this pull request as ready for review
November 10, 2026 23:30
Osvaldo Ortega (osortega)
enabled auto-merge (squash)
November 10, 2026 23:30
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 10, 2026
Justin Chen (justschen)
approved these changes
Nov 10, 2026
Justin Chen (justschen)
left a comment
Collaborator
There was a problem hiding this comment.
10k lines POG!!!!!!
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Sandeep Somavarapu (@sandy081)Matched files:
Ladislau Szomoru (@lszomoru)Matched files:
|
Osvaldo Ortega (osortega)
deleted the
osortega/agents/mobile-stack/02-workbench
branch
November 10, 2026 23:38
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.



Scope - experimental mobile workbench, local only
The shared presentation prerequisite (#345367) has merged, and this draft targets
main. This is the source/UI slice of #340360, not its build or hosting proposal.contribution list, instead of loading the full workbench and hiding parts.
and presentation adapters. Keep provider/authentication/session behavior shared.
sizing and new-session chrome come from the mobile view factory, while the
clipboard context item reads only after the user selects it.
without bypassing existing confirmations, policies or scoped model stores.
editor/Agents/native entry graphs, with dependency-isolation tests.
--mobileto the local Sessions source launcher. Mock services remain aseparate local option.
This PR does not add a production build target, uploader, release selector,
hostname or deployment. #345369 owns mobile build-target selection; #345370 owns
publication. The local
--mobilelauncher flag does not register a productionbuild target.
Validation
Current head after main merge (
ac4644f)GitHub could not start pull-request CI on
1b98ff2because newermainchangesintroduced an import conflict. Merged main
e8ce6ecwithout rewriting history;the only manual resolution retains both the mobile agent-selection helper and
the upstream product-service import.
The committed and tested tree is
10f247d892cb30ff4cf625d3135bdd520c8174a5.npm run transpile-client: passed.npm run typecheck-client: passed.npm run valid-layers-check: passed.node --experimental-strip-types --test build/lib/test/sessionsPresentationDependencies.test.ts:30 passed.
composer and titlebar: 480 passed (160 per engine).
hook also checked all 673 hygiene-eligible files among the 811 index versions.
GitHub now reports the PR as mergeable. Both
Component Fixtures
and Code OSS
passed on this head.
previously failing mobile-permission fixtures are present and render correctly
in Light; their PNG hashes and actual screenshots were checked.
its first new-head run, without timeout changes or a retry.
c1205ab, whose parents includepushed head
ac4644fand newer mainaadc4c6; it is not an older baseline.Review and CI fixes (
1b98ff2)validation messages.
payload, footer actions and requested focus.
with the same ID; retire old notifications and pending work.
fixtures that failed screenshot CI.
The committed tree matches the tested tree
ebd26a40ee41de9faf6279383f4f009ef8623cce.npm run transpile-client: passed.npm run typecheck-client: passed.node --experimental-strip-types --test build/lib/test/sessionsPresentationDependencies.test.ts:30 passed.
hook also checked all 12 index versions successfully.
76 passed (38 per browser).
npm run test-browser-no-install -- \ --run src/vs/sessions/contrib/mobile/test/browser/mobileActionWidgetService.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobileBackgroundNotifier.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobileContextMenuService.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobileQuickInputService.test.ts \ --run src/vs/workbench/contrib/sessions/test/browser/mobile/mobilePickerSheet.test.ts \ --browser webkit --browser firefox # 76 passed.Negative control: with only the old production implementations restored, all
10 new behavioral regression cases failed, while the other 28 cases passed.
After restoring the fixes and transpiling again, all 38 Chromium cases passed.
Two fresh independent reviews found no blocking issues in this fix set.
Screenshot verification is now covered by the successful CI run above. Local
fixture rendering was blocked by existing tooling: Vite rejected built-in theme JSONC; Rspack
dependencies were absent, and downloading the repository-pinned package manager
failed with
ENOTCONN. No broken screenshots or baseline hashes were accepted.The earlier Linux desktop smoke timeout also occurs on independent #347474;
no unrelated desktop code or timeout changes were added to hide it.
Earlier naming review (2026-11-10)
Agents.dependent symbols, imports and tests. The presenter retains a distinct
registration ID from the regular responsive presenter.
composer modules. A temporary import into the ordinary web entry caused the
guard to reject both modules; removing that import restored the passing test.
Validation used matching source trees in the PR and prepared validation checkout:
npm run transpile-client: passed.npm run typecheck-client: passed.npm run valid-layers-check: passed.node --check scripts/code-sessions-web.js: passed.node --check eslint.config.js: passed.node scripts/code-sessions-web.js --mobile --mock --help: passed without starting a server.TMPDIR=/private/tmp node --test build/lib/test/sessionsPresentationDependencies.test.ts: 30 passed.npm run test-browser-no-install -- \ --run src/vs/sessions/test/browser/mobileTitlebarPart.test.ts \ --run src/vs/sessions/contrib/providers/agentHost/test/browser/mobileChatPhoneInputPresenter.test.ts \ --browser chromium # 72 passed.Both independent reviewers found no blocking issues in this cleanup.
No application or real-provider end-to-end flow was launched for this pass.
The earlier sections below record historical validation snapshots and filenames.
Presentation-boundary refinement
npm run typecheck-client: passed.npm run valid-layers-check: passed.npm run transpile-client: passed.node --test build/lib/test/sessionsPresentationDependencies.test.ts:25 passed. Tests traverse ordinary editor/Agents/native entry graphs and
resource copying, as well as the mobile entry's required registrations.
npm run -s precommit: passed through the normal commit hook(53 applicable source files, with follow-up merge hooks also enabled).
1,266 passed; 4 pending.
Exact refinement browser command
npm run test-browser-no-install -- \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatEditPresentation.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/actions/chatContext.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/input/chatInputPart.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatPhoneInputPresenter.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatWidget.test.ts \ --run src/vs/sessions/services/presentation/test/browser/sessionsListPresentation.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobileRepositoryPicker.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobilePresentation.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobileChatEditRow.test.ts \ --run src/vs/sessions/contrib/providers/agentHost/test/browser/experimentalMobileChatPhoneInputPresenter.test.ts \ --run src/vs/sessions/contrib/chat/test/browser/chatView.test.ts \ --run src/vs/sessions/contrib/chat/test/browser/sharedChatInputComposer.test.ts \ --run src/vs/sessions/contrib/chat/test/browser/newChatInSessionWidget.test.ts \ --run src/vs/sessions/contrib/chat/test/browser/newChatWidget.test.ts \ --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts \ --run src/vs/sessions/contrib/providers/copilotChatSessions/test/browser/copilotChatSessionsProvider.test.ts \ --run src/vs/sessions/test/browser/mobileDiffView.test.ts \ --browser chromium --reporter dot # 1,370 passed; 4 pendingThese checks do not prove signed-in real-phone behavior. This remains a draft;
no production build has been published and no domain has been enabled.
Review follow-up also preserves the mobile metrics for automation prompts,
which create their input outside a chat view, and restores the clipboard
registration's original startup phase:
npm run test-browser-no-install -- \ --run src/vs/sessions/contrib/automations/test/browser/automationDialog.test.ts \ --run src/vs/sessions/contrib/mobile/test/browser/mobilePresentation.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/actions/chatContext.test.ts \ --run src/vs/workbench/contrib/chat/test/browser/widget/chatEditPresentation.test.ts \ --browser chromium --reporter dot # 233 passed.The final entry-ownership refinement and both review follow-ups were independently
reviewed, with no remaining significant issues. History-preserving merges update
the shared prerequisite without changing the tested mobile production source.
Original split
Initial split validation on Node 24.22.1:
npm run typecheck-client: passed.npm run valid-layers-check: passed.npm run transpile-client: passed.node --test build/lib/test/sessionsPresentationDependencies.test.ts: 16 passed.node --check scripts/code-sessions-web.js: passed.node scripts/code-sessions-web.js --help: passed; mobile option listed withoutstarting a server.
node build/hygiene.tsand the normal commit hook: passed.below.
Exact initial browser runner command and run-list
The temporary run-list contained the following source paths, one per line:
node test/unit/browser/index.js --browser chromium \ --runList .mobile-stack-work/pr2-tests.list --reporter dot # 477 passed; the temporary run-list was removed after validation.Review fixes
Independent review findings are fixed in
0efef233965:service registrations, and the shared composer's attachment/control actions.
remains selected across host/client URI forms.
permission; dispose notifications with their owner.
an unhandled rejection. Do not introduce a desktop editor fallback.
Both original reviewers rechecked their findings and confirmed them resolved.
Additional validation on the corrected source:
ESLint and normal commit hygiene also passed.
No application was launched during this split. Real phone interaction, signed-in
provider flows and final end-to-end startup remain required before activation.