From cca5a3a1a4c6db90e4c5e2e95772845c1d5a251d Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 9 Apr 2026 00:53:19 +0200 Subject: [PATCH] fix(coding-agent): hide Earendil startup notice --- packages/coding-agent/CHANGELOG.md | 4 ++++ .../src/modes/interactive/interactive-mode.ts | 23 +++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index ac8de9c9..3e769e82 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Changed + +- Changed the Earendil announcement from an automatic startup notice to the hidden `/dementedelves` slash command. + ## [0.66.0] - 2026-04-08 ### New Features diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index e46a192a..69d53712 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -437,24 +437,12 @@ export class InteractiveMode { } } - private shouldShowEarendilAnnouncement(): boolean { - const now = new Date(); - return now.getFullYear() === 2026 && now.getMonth() === 3 && (now.getDate() === 8 || now.getDate() === 9); - } - private showStartupNoticesIfNeeded(): void { if (this.startupNoticesShown) { return; } this.startupNoticesShown = true; - if (this.shouldShowEarendilAnnouncement()) { - if (this.chatContainer.children.length > 0) { - this.chatContainer.addChild(new Spacer(1)); - } - this.chatContainer.addChild(new EarendilAnnouncementComponent()); - } - if (!this.changelogMarkdown) { return; } @@ -2233,6 +2221,11 @@ export class InteractiveMode { this.editor.setText(""); return; } + if (text === "/dementedelves") { + this.handleDementedDelves(); + this.editor.setText(""); + return; + } if (text === "/resume") { this.showSessionSelector(); this.editor.setText(""); @@ -4608,6 +4601,12 @@ export class InteractiveMode { this.ui.requestRender(); } + private handleDementedDelves(): void { + this.chatContainer.addChild(new Spacer(1)); + this.chatContainer.addChild(new EarendilAnnouncementComponent()); + this.ui.requestRender(); + } + private handleDaxnuts(): void { this.chatContainer.addChild(new Spacer(1)); this.chatContainer.addChild(new DaxnutsComponent(this.ui));