aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 13:36:51 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 13:36:51 -0400
commitfbc7c266229d5d376131520b6e1f52cca034df9c (patch)
treec0b048fcc1ab41c20b7db28c84860950baff438b /scripts/theme-studio
parent9a44daa89265b11af0adb2596468953fbc379400 (diff)
downloaddotemacs-fbc7c266229d5d376131520b6e1f52cca034df9c.tar.gz
dotemacs-fbc7c266229d5d376131520b6e1f52cca034df9c.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 'scripts/theme-studio')
0 files changed, 0 insertions, 0 deletions