claude-code - 💡(How to fix) Fix Preview panel renders blank on open — fixes only after window minimize/restore

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…

When opening the preview panel in Claude Code, the left portion of the panel stays black/empty, and the content (in this case, FastAPI Swagger UI at /docs) only appears in the right portion of the split view.

The issue resolves itself after minimizing and restoring the Claude Code window.

Root Cause

Root Cause (suspected)

RAW_BUFFERClick to expand / collapse

Description

When opening the preview panel in Claude Code, the left portion of the panel stays black/empty, and the content (in this case, FastAPI Swagger UI at /docs) only appears in the right portion of the split view.

The issue resolves itself after minimizing and restoring the Claude Code window.

Steps to Reproduce

  1. Start a local FastAPI server (e.g. on port 8010)
  2. Configure .claude/launch.json with "url": "http://localhost:8010/docs"
  3. Call preview_start to open the preview panel
  4. Observe the preview panel — left side is black, content is clipped to the right

Expected Behavior

Preview panel renders the full content correctly on first open.

Actual Behavior

Left side of the preview panel is black. Content is partially visible on the right. After minimizing and restoring the Claude Code window, the panel renders correctly.

Root Cause (suspected)

The preview iframe likely does not receive a resize event when the panel is first opened. Minimizing/restoring the window triggers a resize event, which causes the iframe content to reflow and render correctly.

Environment

  • OS: macOS (Darwin 25.3.0)
  • App: Claude Code desktop
  • Server: FastAPI with Swagger UI (/docs)

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING