Skip to content

Commit d9273c7

Browse files
Remove dead auto_restart field from SubprocessConfig
This field was defined but never read anywhere in client.py. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2e424ac commit d9273c7

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

python/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ CopilotClient(
125125
- `use_stdio` (bool): Use stdio transport instead of TCP (default: True)
126126
- `port` (int): Server port for TCP mode (default: 0 for random)
127127
- `log_level` (str): Log level (default: "info")
128-
- `auto_restart` (bool): Auto-restart on crash (default: True)
129128
- `env` (dict | None): Environment variables for the CLI process
130129
- `github_token` (str | None): GitHub token for authentication. When provided, takes priority over other auth methods.
131130
- `use_logged_in_user` (bool | None): Whether to use logged-in user for authentication (default: True, but False when `github_token` is provided).

python/copilot/types.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class SelectionAttachment(TypedDict):
7272
# Configuration for CopilotClient connection modes
7373

7474

75-
7675
@dataclass
7776
class SubprocessConfig:
7877
"""Config for spawning a local Copilot CLI subprocess.
@@ -109,9 +108,6 @@ class SubprocessConfig:
109108
log_level: LogLevel = "info"
110109
"""Log level for the CLI process."""
111110

112-
auto_restart: bool = True
113-
"""Auto-restart the CLI server if it crashes."""
114-
115111
env: dict[str, str] | None = None
116112
"""Environment variables for the CLI process. ``None`` inherits the current env."""
117113

0 commit comments

Comments
 (0)