fix(coding-agent): hide Earendil startup notice
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Changed the Earendil announcement from an automatic startup notice to the hidden `/dementedelves` slash command.
|
||||||
|
|
||||||
## [0.66.0] - 2026-04-08
|
## [0.66.0] - 2026-04-08
|
||||||
|
|
||||||
### New Features
|
### 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 {
|
private showStartupNoticesIfNeeded(): void {
|
||||||
if (this.startupNoticesShown) {
|
if (this.startupNoticesShown) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.startupNoticesShown = true;
|
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) {
|
if (!this.changelogMarkdown) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2233,6 +2221,11 @@ export class InteractiveMode {
|
|||||||
this.editor.setText("");
|
this.editor.setText("");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (text === "/dementedelves") {
|
||||||
|
this.handleDementedDelves();
|
||||||
|
this.editor.setText("");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (text === "/resume") {
|
if (text === "/resume") {
|
||||||
this.showSessionSelector();
|
this.showSessionSelector();
|
||||||
this.editor.setText("");
|
this.editor.setText("");
|
||||||
@@ -4608,6 +4601,12 @@ export class InteractiveMode {
|
|||||||
this.ui.requestRender();
|
this.ui.requestRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private handleDementedDelves(): void {
|
||||||
|
this.chatContainer.addChild(new Spacer(1));
|
||||||
|
this.chatContainer.addChild(new EarendilAnnouncementComponent());
|
||||||
|
this.ui.requestRender();
|
||||||
|
}
|
||||||
|
|
||||||
private handleDaxnuts(): void {
|
private handleDaxnuts(): void {
|
||||||
this.chatContainer.addChild(new Spacer(1));
|
this.chatContainer.addChild(new Spacer(1));
|
||||||
this.chatContainer.addChild(new DaxnutsComponent(this.ui));
|
this.chatContainer.addChild(new DaxnutsComponent(this.ui));
|
||||||
|
|||||||
Reference in New Issue
Block a user