From 175a137d006a498ba5e1b0541b4fed79ef00738c Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 12 Jan 2026 14:26:22 +0100 Subject: [PATCH] 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 --- packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/src/modes/interactive/interactive-mode.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 628232cb..a2c01480 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -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. diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index d40697fc..dc4019bf 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -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);