()
| 78 | } |
| 79 | |
| 80 | async function close(): Promise<void> { |
| 81 | const current = terminal.value; |
| 82 | if (!current) return; |
| 83 | readOnly.value = true; |
| 84 | try { |
| 85 | ensureConnection()?.terminalClose(current.sessionId, current.id); |
| 86 | await getKimiWebApi().closeTerminal(current.sessionId, current.id); |
| 87 | } catch (error_) { |
| 88 | error.value = error_ instanceof Error ? error_.message : String(error_); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | function restart(): void { |
| 93 | const current = terminal.value; |
nothing calls this directly
no test coverage detected