Files
cline-multi-mirror/src/core/controller/state/updateTerminalConnectionTimeout.ts
T
Bee 06e0973c04 Apply biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports (#5545)
* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports

* Apply new rules with format

* remove unused currentReplaceContent

* update nextTerminalId

* fix all format issues

* update biome config

* add back applyContextOptimizations and killAllChromeBrowsers
2025-08-19 11:57:50 -07:00

18 lines
643 B
TypeScript

import { UpdateTerminalConnectionTimeoutRequest, UpdateTerminalConnectionTimeoutResponse } from "@shared/proto/cline/state"
import { Controller } from "../index"
export async function updateTerminalConnectionTimeout(
controller: Controller,
request: UpdateTerminalConnectionTimeoutRequest,
): Promise<UpdateTerminalConnectionTimeoutResponse> {
const timeoutMs = request.timeoutMs
// Update the terminal connection timeout setting in the state
controller.cacheService.setGlobalState("shellIntegrationTimeout", timeoutMs || 4000)
// Broadcast state update to all webviews
await controller.postStateToWebview()
return { timeoutMs }
}