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
TypeScript: remove getState() and public ConnectionState
.NET removed `CopilotClient.State` and `ConnectionState` in commit
b00fd8c (Phase 4d/4e). Python matched this in PR #1376. TypeScript was
the last SDK still exposing both — drop them for cross-SDK consistency.
- `CopilotClient.getState(): ConnectionState` removed.
- Public `ConnectionState` type alias removed from `types.ts` and the
index re-exports.
- The private `state` field on `CopilotClient` stays (still used by
start/stop to gate behavior); its type is now an inline union
declaration instead of the exported alias.
- Unit test for unexpected child-process death now reads the private
`state` field via `(client as any).state` since the behaviour being
tested (state transition on async disconnect) is genuinely internal.
- E2E `client.getState() === "..."` assertions are dropped — they were
pure tautologies once `start()` returned without throwing.
- `nodejs/README.md` no longer documents `getState()`.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments