()
| 327 | } |
| 328 | |
| 329 | async function handleRefreshDiagnostics() { |
| 330 | setIsLoadingDiagnostics(true); |
| 331 | try { |
| 332 | const report = await api<DiagnosticsReport>('/api/diagnostics'); |
| 333 | setDiagnosticsReport(report); |
| 334 | } catch (error) { |
| 335 | setErrorMessage(error instanceof Error ? error.message : String(error)); |
| 336 | } finally { |
| 337 | setIsLoadingDiagnostics(false); |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | async function handleRenameSession(sessionId: string, newName: string) { |
| 342 | const trimmed = newName.trim(); |