(sessionId: string | null)
| 489 | } |
| 490 | |
| 491 | async function handleSelectSession(sessionId: string | null) { |
| 492 | try { |
| 493 | await api('/api/sessions/select', { |
| 494 | method: 'POST', |
| 495 | body: { sessionId }, |
| 496 | }); |
| 497 | } catch (error) { |
| 498 | setErrorMessage(error instanceof Error ? error.message : String(error)); |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | async function handleShutdownGateway() { |
| 503 | try { |