Fix missing spacer between assistant message and text editor

Initialize widgetContainer with default spacer during init() instead of
only when extension widgets change.

fixes #655
This commit is contained in:
Mario Zechner 2026-01-12 14:26:22 +01:00
parent 6730b4fa59
commit 175a137d00
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@
### Fixed
- Missing spacer between assistant message and text editor ([#655](https://github.com/badlogic/pi-mono/issues/655))
- Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/badlogic/pi-mono/pull/633) by [@aos](https://github.com/aos))
- Custom footer extensions now see model changes: `ctx.model` is now a getter that returns the current model instead of a snapshot from when the context was created ([#634](https://github.com/badlogic/pi-mono/pull/634) by [@ogulcancelik](https://github.com/ogulcancelik))
- Footer git branch not updating after external branch switches. Git uses atomic writes (temp file + rename), which changes the inode and breaks `fs.watch` on the file. Now watches the directory instead.

View file

@ -456,6 +456,7 @@ export class InteractiveMode {
this.ui.addChild(this.pendingMessagesContainer);
this.ui.addChild(this.statusContainer);
this.ui.addChild(this.widgetContainer);
this.renderWidgets(); // Initialize with default spacer
this.ui.addChild(this.editorContainer);
this.ui.addChild(this.footer);
this.ui.setFocus(this.editor);