fix(coding-agent): hide Earendil startup notice
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user