Skip to content

Improve browser experience in Agents app#312420

Merged
kycutler merged 2 commits intomainfrom
kycutler/agentsbrowser
Apr 24, 2026
Merged

Improve browser experience in Agents app#312420
kycutler merged 2 commits intomainfrom
kycutler/agentsbrowser

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

  • Open localhost links by default
  • Disable agentic tools (for now)
  • Persist pages when switching between sessions
    • Pages are destroyed when closed by the user, or the session is archived / deleted

Copilot AI review requested due to automatic review settings April 24, 2026 19:32
@kycutler kycutler self-assigned this Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the Integrated Browser experience in the Agents (sessions) app by changing defaults for link/tool behavior and adding session-aware browser tab persistence so pages survive session switches but are still destroyed on explicit close/archive/delete.

Changes:

  • Default Agents configuration to open localhost links in the Integrated Browser and disable agentic browser tools.
  • Add session-scoped browser editor lifecycle management to keep browser inputs/models alive across session switches, but force-dispose them when a session is archived/removed.
  • Adjust browser editor/model handling and layout timing to better support reusing existing models and avoid transient zero-size layout.
Show a summary per file
File Description
src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts Forces browser editor disposal from the tab quick pick close actions to bypass the new veto mechanism.
src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts Reuses an existing input model when present; adds layout retries when container bounds are temporarily 0x0.
src/vs/workbench/contrib/browserView/common/browserEditorInput.ts Introduces a vetoable pre-dispose event and a dispose(force?) override to support session swap persistence.
src/vs/sessions/sessions.common.main.ts Wires the new sessions browser view contribution into the Agents app entrypoint.
src/vs/sessions/contrib/configuration/browser/configuration.contribution.ts Sets Agents defaults for localhost link opening and disables browser chat tools.
src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts Adds a sessions workbench contribution to track browser editors per session and veto disposal during swaps.
src/vs/sessions/contrib/browserView/browser/sessionBrowserView.contribution.ts Registers the session browser view controller contribution.
src/vs/platform/browserView/electron-main/browserView.ts Moves initial BrowserView bounds offscreen and adjusts child view insertion.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 3

Comment thread src/vs/workbench/contrib/browserView/common/browserEditorInput.ts
Comment thread src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts
Comment thread src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts
@kycutler kycutler marked this pull request as ready for review April 24, 2026 19:44
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering Bot commented Apr 24, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jruales

Matched files:

  • src/vs/platform/browserView/electron-main/browserView.ts
  • src/vs/workbench/contrib/browserView/common/browserEditorInput.ts
  • src/vs/workbench/contrib/browserView/electron-browser/browserEditor.ts
  • src/vs/workbench/contrib/browserView/electron-browser/features/browserTabManagementFeatures.ts

@kycutler kycutler enabled auto-merge (squash) April 24, 2026 19:53
@kycutler kycutler merged commit faf8592 into main Apr 24, 2026
26 checks passed
@kycutler kycutler deleted the kycutler/agentsbrowser branch April 24, 2026 20:05
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants