diff options
| author | Shreya Keshive <[email protected]> | 2025-08-15 00:22:32 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-15 00:22:32 +0000 |
| commit | a84f749310556d85c85ccd56f2bc7f3481d90ce4 (patch) | |
| tree | b47d0cf07a3be0c80bd12cf4e1fe61293cbbc689 /packages/cli/src/ui/commands/ideCommand.ts | |
| parent | db347eeee88a7610372915c94b1ab5616aa9ce3d (diff) | |
Show /ide enable & /ide disable commands based on connection status (#6248)
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/commands/ideCommand.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/ideCommand.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/commands/ideCommand.ts b/packages/cli/src/ui/commands/ideCommand.ts index b7cbea3d..ffc9df40 100644 --- a/packages/cli/src/ui/commands/ideCommand.ts +++ b/packages/cli/src/ui/commands/ideCommand.ts @@ -237,8 +237,8 @@ export const ideCommand = (config: Config | null): SlashCommand | null => { }, }; - const ideModeEnabled = config.getIdeMode(); - if (ideModeEnabled) { + const connectionStatus = ideClient.getConnectionStatus().status; + if (connectionStatus === IDEConnectionStatus.Connected) { ideSlashCommand.subCommands = [ disableCommand, statusCommand, |
