diff --git a/tui/src/app.test.ts b/tui/src/app.test.ts index 8a17d602d..fcebb8019 100644 --- a/tui/src/app.test.ts +++ b/tui/src/app.test.ts @@ -1946,6 +1946,10 @@ describe("NanobotTui in a Herdr pane", () => { action: "Approval required", }) + setup.resize(42, 6) + await setup.renderOnce() + expect(setup.captureCharFrame()).toContain("› Ship the Herdr integration") + app.accept({ event: "user_message", chat_id: "chat", diff --git a/tui/src/app.ts b/tui/src/app.ts index 3b9532bb1..906867abb 100644 --- a/tui/src/app.ts +++ b/tui/src/app.ts @@ -1534,7 +1534,9 @@ export class NanobotTui { if (this.host.hosted) { this.titleText.maxWidth = Math.max(8, this.renderer.width - 4) this.titleText.content = this.currentTask ? `› ${this.currentTask}` : "" - this.title.visible = Boolean(this.currentTask) && this.renderer.height >= 8 + // In a hosted pane this is the resume anchor, not decorative chrome. + // Keep it visible even when Herdr temporarily makes the pane very short. + this.title.visible = Boolean(this.currentTask) this.syncHostMetadata() return }