The best way to control Claude Code, Codex and more from any computer or phone
fix(web): Reconnect on a switched-off environment switches it back on (#24691)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Jackson Miller committed
Oct 30, 2026 at 17:07 UTC
e5871b6719636d914910ce2b891bd072738455a4
1 file changed
+5
-1
apps/web/src/components/chat/useSystemComposerBanners.tsx
+5
-1
@@ -84,7 +84,11 @@ export function useSystemComposerBanners(input: SystemComposerBannersInput) {
84
ENVIRONMENT_RECONNECT_WARNING_GRACE_MS,
85
);
86
const handleReconnectActiveEnvironment = async (environmentId: EnvironmentId) => {
87
- const result = await retryEnvironment(environmentId);
87
+ // A retry does nothing while the environment is switched off.
88
+ const result =
89
+ activeEnvironment?.entry.enabled === false
90
+ ? await setEnvironmentEnabled({ environmentId, enabled: true })
91
+ : await retryEnvironment(environmentId);
92
if (result._tag === "Failure" && !isAtomCommandInterrupted(result)) {
93
const error = squashAtomCommandFailure(result);
94
toastManager.add(