Skip to content

Fixed MCP config not working on Windows due to quote stripping (#13) (#17) - #32

Merged
oleg68 merged 4 commits into
nbplugins:release/0.20from
oleg68:bugfix/mcp-config-win/0.20
Apr 13, 2026
Merged

oleg68 merged 4 commits into
nbplugins:release/0.20from
oleg68:bugfix/mcp-config-win/0.20

Conversation

@oleg68

@oleg68 oleg68 commented Apr 13, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves: #13

Write --mcp-config JSON to a temp file instead of passing inline JSON,
avoiding Windows CreateProcess quote-stripping. The temp file is deleted
when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly()
instead of stop(), so settings.local.json and the temp MCP config file
are preserved until the error panel is dismissed (stopProcess() on panel
close triggers full file cleanup).

Co-authored-by: Oleg Samarin osamarin@openintegration.inc
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

oleg68 and others added 4 commits April 13, 2026 09:59
…gins#13) (nbplugins#17)

Resolves: nbplugins#13

Write --mcp-config JSON to a temp file instead of passing inline JSON,
avoiding Windows CreateProcess quote-stripping. The temp file is deleted
when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly()
instead of stop(), so settings.local.json and the temp MCP config file
are preserved until the error panel is dismissed (stopProcess() on panel
close triggers full file cleanup).

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
… timeout (nbplugins#11)

Watchdog fires in the existing 500 ms pollScreenState() timer: if no PTY
bytes arrive within the configured timeout after launch, the process is
stopped and the error panel is shown with the elapsed-time message.

- ClaudeCodePreferences: KEY_HANG_TIMEOUT_SECONDS (default 60,
0=disabled)
- ClaudeCodeOptionsPanel: hang timeout spinner on General tab (0–3600 s)
- ClaudeSessionController: processStartedAt / firstOutputReceived
fields, hang check in pollScreenState(), handleHang() +
setHangCallback()
- ClaudeSessionTab: wires
controller.setHangCallback(this::showStartError)
- ClaudeSessionControllerTest: 4 new tests for hang-detection logic

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68 oleg68 changed the title Bugfix/mcp config win/0.20 Fixed MCP config not working on Windows due to quote stripping (#13) (#17) Apr 13, 2026
@oleg68
oleg68 merged commit 5f4ecf5 into nbplugins:release/0.20 Apr 13, 2026
4 checks passed
@oleg68
oleg68 deleted the bugfix/mcp-config-win/0.20 branch April 13, 2026 18:18
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.

1 participant