[Desktop, Code tab, Windows] Preview servers stop after 30 min idle; add a setting to turn it off

Status Open
Maintainer reply None cached
Activity 0 comments · opened Oct 14, 2026

Summary

On Windows, preview servers started from the Code tab are stopped after 30 minutes of idle time. There is no setting to turn this off, so a server started with preview_start cannot stay up.

Evidence

  • %LOCALAPPDATA%\Claude\logs\main.log logs [WarmLifecycle:preview] Starting idle timeout ...: 1800s.
  • After 30 idle minutes it logs [WarmLifecycle:preview] Idle timeout reached, disconnecting ..., followed by [Preview] Stopped servers for worktree. Examples: 2026-10-09 16:27:24, 2026-10-09 21:34:11, 2026-10-10 01:26:27.
  • The stopped server then shows as "was stopped by the app" in preview_list.

Request

Add a setting (Settings → Claude Code, or a launch.json option) to turn the preview idle timeout off, so preview servers run until the user stops them. A configurable timeout value would also work.

Related

  • #92610: browser/preview pane is torn down after 30 min hidden; asks for the timeout to be configurable.
  • #100975: browser pane tabs close after 30 min of not viewing; no way to turn it off.

Environment

Windows 11 Pro (10.0.26300)

View original on GitHub ↗