fix(coding-agent): hide Earendil startup notice

This commit is contained in:
Mario Zechner
2026-04-09 00:53:19 +02:00
parent a99aee3360
commit cca5a3a1a4
2 changed files with 15 additions and 12 deletions

View File

@@ -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

View File

@@ -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));