Skip to content

docs: fix visual companion launch for Claude Code on Windows#768

Closed
lucasyhzhu-debug wants to merge 1 commit intoobra:mainfrom
lucasyhzhu-debug:fix/windows-visual-server-docs
Closed

docs: fix visual companion launch for Claude Code on Windows#768
lucasyhzhu-debug wants to merge 1 commit intoobra:mainfrom
lucasyhzhu-debug:fix/windows-visual-server-docs

Conversation

@lucasyhzhu-debug
Copy link

Summary

  • Split the "Claude Code" platform section into macOS/Linux and Windows variants
  • Documents that run_in_background: true is required on the Bash tool call for Windows, since the script's auto-detected foreground mode blocks the tool call otherwise
  • Merged the standalone "Windows (Git Bash / CMD / PowerShell)" section into the new "Claude Code (Windows)" section — the auto-detection handles the switch, so separate sections were redundant
  • Updated "Finding connection info" paragraph for the run_in_background pattern

Context

The script already auto-detects Windows (via OSTYPE/MSYSTEM) and forces --foreground mode — that part works. But foreground mode means the Bash tool call in Claude Code blocks forever (or until timeout), because node server.js never returns. The missing documentation was: use run_in_background: true on the Bash tool so the Claude Code harness manages the process lifecycle across turns.

Fixes #767

Test plan

  • Verified on Windows 11 + Claude Code + Git Bash
  • macOS/Linux path unchanged (default nohup/disown still works)

🤖 Generated with Claude Code

…dows

The existing Windows section documented the auto-detection (OSTYPE/MSYSTEM)
that forces foreground mode, but missed a critical detail: foreground mode
blocks the Bash tool call in Claude Code, causing it to hang until timeout.

The fix is to set `run_in_background: true` on the Bash tool call so the
Claude Code harness (not the shell) manages the process lifecycle.

Changes:
- Split "Claude Code" section into macOS/Linux and Windows variants
- Windows variant documents `run_in_background: true` requirement
- Merged the standalone "Windows" section into "Claude Code (Windows)"
  since the auto-detection handles the foreground switch
- Updated "Finding connection info" for the run_in_background pattern

Fixes obra#767

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@obra
Copy link
Owner

obra commented Mar 17, 2026

Thanks @lucasyhzhu-debug! This is already covered on the dev branch — commit f34ee47 made the same changes (split Claude Code into macOS/Linux and Windows sections, document run_in_background: true for Windows). Closing as already addressed.

@obra obra closed this Mar 17, 2026
vladivis pushed a commit to vladivis/superpowers that referenced this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual brainstorming server dies on Windows — nohup/disown doesn't survive shell exit

2 participants