(sessionId: string, title: string)
| 503 | }, |
| 504 | |
| 505 | setSessionTitle(sessionId: string, title: string): void { |
| 506 | const info = sessionDisplayInfo.get(sessionId) |
| 507 | if (!info) return |
| 508 | info.title = title |
| 509 | // Guard against reconnecting/failed — renderStatusLine clears then returns |
| 510 | // early for those states, which would erase the spinner/error. |
| 511 | if (currentState === 'reconnecting' || currentState === 'failed') return |
| 512 | if (sessionMax === 1) { |
| 513 | // Single-session: show title in the main status line too. |
| 514 | currentState = 'titled' |
| 515 | currentStateText = truncatePrompt(title, 40) |
| 516 | } |
| 517 | renderStatusLine() |
| 518 | }, |
| 519 | |
| 520 | removeSession(sessionId: string): void { |
| 521 | sessionDisplayInfo.delete(sessionId) |
nothing calls this directly
no test coverage detected