You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove autoRestart feature across all SDKs
The autoRestart option never worked correctly. This removes it from:
- Node.js: types, client options, reconnect logic
- Python: types, client options
- Go: types, client options, struct field
- .NET: types, clone copy, tests
- Docs: setup, troubleshooting, READMEs
- Agent config: docs-maintenance validation lists
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Mark client as disconnected on connection close/error
Instead of leaving onClose/onError as no-ops (which would leave the
client in a stale 'connected' state), transition to 'disconnected'
so callers fail fast or can re-start cleanly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix numbered list after removing auto-restart step
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Transition to disconnected state on unexpected process/connection death
All SDKs now properly transition their connection state to 'disconnected'
when the child process exits unexpectedly or the TCP connection drops:
- Node.js: onClose/onError handlers in attachConnectionHandlers()
- Go: onClose callback fired from readLoop() on unexpected exit
- Python: on_close callback fired from _read_loop() on unexpected exit
- .NET: rpc.Completion continuation sets _disconnected flag
Includes unit tests for all four SDKs verifying the state transition.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove .NET disconnection test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Re-add autoRestart as deprecated no-op to avoid source-breaking change
Mark the option as obsolete/deprecated in Go, .NET, and TypeScript so
existing consumers continue to compile without changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix go fmt alignment in Client struct
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Go onClose deadlock by running state update in goroutine
The onClose callback acquires startStopMux, but Stop/ForceStop already
hold that lock while waiting for readLoop to finish via wg.Wait().
Running the state update in a goroutine allows readLoop to complete,
breaking the circular wait.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
-`UseStdio` (bool): Use stdio transport instead of TCP (default: true)
139
139
-`LogLevel` (string): Log level (default: "info")
140
140
-`AutoStart` (\*bool): Auto-start server on first use (default: true). Use `Bool(false)` to disable.
141
-
-`AutoRestart` (\*bool): Auto-restart on crash (default: true). Use `Bool(false)` to disable.
142
141
-`Env` ([]string): Environment variables for CLI process (default: inherits from current process)
143
142
-`GitHubToken` (string): GitHub token for authentication. When provided, takes priority over other auth methods.
144
143
-`UseLoggedInUser` (\*bool): Whether to use logged-in user for authentication (default: true, but false when `GitHubToken` is provided). Cannot be used with `CLIUrl`.
0 commit comments