claude-code - 💡(How to fix) Fix Feature request: Isolated preview tabs per session [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49477Fetched 2026-04-17 08:40:03
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Root Cause

Multi-session is a core feature of Claude Code Desktop — working on different parts of an app in parallel is one of the biggest productivity gains. But the shared preview pane breaks this workflow entirely, forcing users to fall back to external browser tabs (e.g. Claude in Chrome) instead of the built-in preview.

RAW_BUFFERClick to expand / collapse

Problem

When running multiple Claude Code Desktop sessions on the same project, all sessions share a single preview pane. Navigating in one session (e.g. going to /pulse) immediately affects what the other sessions see, making the preview unusable in multi-session workflows.

Expected behavior

Each session should get its own isolated, dedicated preview webview. They can share the same underlying dev server — autoPort in launch.json already handles port assignment nicely. The issue is purely that the preview view itself is shared, so one session's navigation stomps on the others.

Why this matters

Multi-session is a core feature of Claude Code Desktop — working on different parts of an app in parallel is one of the biggest productivity gains. But the shared preview pane breaks this workflow entirely, forcing users to fall back to external browser tabs (e.g. Claude in Chrome) instead of the built-in preview.

Suggested solution

  • Scope the preview webview instance to the calling session
  • Each session owns its own isolated browser view
  • The underlying dev server can be shared or separate — that's already configurable via autoPort: true

Environment

  • Claude Code Desktop on Windows (latest version)
  • Multiple concurrent sessions on the same project

extent analysis

TL;DR

The most likely fix is to scope the preview webview instance to the calling session, ensuring each session has its own isolated browser view.

Guidance

  • Investigate how the preview webview is currently instantiated and shared across sessions to identify the root cause of the sharing issue.
  • Consider implementing a session-specific identifier or token to isolate the preview webview instance for each session.
  • Review the launch.json configuration, particularly the autoPort setting, to understand how it handles port assignment and if it can be leveraged to support isolated preview views.
  • Explore the possibility of using a separate browser view or iframe for each session, while still sharing the underlying dev server.

Example

No specific code snippet can be provided without more context, but the solution might involve creating a new browser view instance for each session, similar to:

// Pseudo-code example, actual implementation may vary
const sessionWebView = createBrowserView(sessionId);

Notes

The exact implementation details will depend on the underlying architecture of Claude Code Desktop and how the preview webview is currently integrated. This solution assumes that the dev server can be shared across sessions without issues.

Recommendation

Apply a workaround by scoping the preview webview instance to the calling session, as this directly addresses the reported issue and aligns with the suggested solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Each session should get its own isolated, dedicated preview webview. They can share the same underlying dev server — autoPort in launch.json already handles port assignment nicely. The issue is purely that the preview view itself is shared, so one session's navigation stomps on the others.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Feature request: Isolated preview tabs per session [1 comments, 2 participants]