* WIP: Changes before auto-review fixes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add custom title support for terminal panes
Users can set a custom title on individual terminal panes via the
right-click context menu ("Set Title...") or by clicking an existing
title. Titles display as a minimal floating label at the top of each
pane with inline editing (Enter to save, Escape to cancel). An X
button on hover removes the title.
Titles persist across restarts via titlesByLeafId in
TerminalLayoutSnapshot, piggybacking on the existing session:set flow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address review findings for pane title feature
- Guard rename input against double-submit on Enter/Escape + blur race
- Memoize persistLayoutSnapshot with useCallback to prevent keyboard
listener re-registration on every render
- Eagerly update paneTitlesRef in onPaneClosed so persistLayoutSnapshot
sees correct data before React flushes state
- Document portal rendering's implicit dependency on paneTitles state
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: write pane titles in shutdown snapshot even when buffers are empty
captureBuffers had an early return when no terminal scrollback content
existed, which skipped writing titlesByLeafId to the layout snapshot.
This caused titles to be lost on restart for fresh or cleared panes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove design doc from PR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>