diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-28 13:36:51 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-28 13:36:51 -0400 |
| commit | 91405050fcce6424e90b520df67256c59e357915 (patch) | |
| tree | ffc046b09cb59d7b618e24eda047f6b1c1bd59a3 /modules/test-runner.el | |
| parent | e4166e0d8bbc9ed75d7ed01e9e8447401ea771c1 (diff) | |
| download | dotemacs-91405050fcce6424e90b520df67256c59e357915.tar.gz dotemacs-91405050fcce6424e90b520df67256c59e357915.zip | |
fix(ai-term): summon restores the agent's last fullscreen state
Summoning the agent (M-SPC) into a single-window frame docked it at the default fraction even when it was last fullscreen, because the size-memory model only captured split geometry at toggle-off and a sole window has no dock size to record. A window-configuration-change-hook tracker now records whether the displayed agent fills its frame (cj/--ai-term-last-fullscreen), and display-saved restores it in place when that flag and a single-window frame both hold.
The tracker records only that flag, not dock geometry: re-capturing the dock size on every window change fed a capture/replay loop that drifted the dock height a couple rows per cycle. The restore guard uses (one-window-p t) so an active minibuffer (a picker prompt mid-summon) isn't counted as a second window, which otherwise misfired the restore into a dock and cascaded.
Diffstat (limited to 'modules/test-runner.el')
0 files changed, 0 insertions, 0 deletions
