feat(coding-agent): add daxnuts easter egg

This commit is contained in:
Mario Zechner 2026-01-30 03:24:51 +01:00
parent 355bc5adc3
commit 0e2f90b734
3 changed files with 180 additions and 0 deletions

View file

@ -80,6 +80,7 @@ import { BranchSummaryMessageComponent } from "./components/branch-summary-messa
import { CompactionSummaryMessageComponent } from "./components/compaction-summary-message.js";
import { CustomEditor } from "./components/custom-editor.js";
import { CustomMessageComponent } from "./components/custom-message.js";
import { DaxnutsComponent } from "./components/daxnuts.js";
import { DynamicBorder } from "./components/dynamic-border.js";
import { ExtensionEditorComponent } from "./components/extension-editor.js";
import { ExtensionInputComponent } from "./components/extension-input.js";
@ -3098,6 +3099,7 @@ export class InteractiveMode {
this.footer.invalidate();
this.updateEditorBorderColor();
this.showStatus(`Model: ${model.id}`);
this.checkDaxnutsEasterEgg(model);
} catch (error) {
this.showError(error instanceof Error ? error.message : String(error));
}
@ -3169,6 +3171,7 @@ export class InteractiveMode {
this.updateEditorBorderColor();
done();
this.showStatus(`Model: ${model.id}`);
this.checkDaxnutsEasterEgg(model);
} catch (error) {
done();
this.showError(error instanceof Error ? error.message : String(error));
@ -4119,6 +4122,18 @@ export class InteractiveMode {
this.ui.requestRender();
}
private handleDaxnuts(): void {
this.chatContainer.addChild(new Spacer(1));
this.chatContainer.addChild(new DaxnutsComponent(this.ui));
this.ui.requestRender();
}
private checkDaxnutsEasterEgg(model: { provider: string; id: string }): void {
if (model.provider === "opencode" && model.id.toLowerCase().includes("kimi-k2.5")) {
this.handleDaxnuts();
}
}
private async handleBashCommand(command: string, excludeFromContext = false): Promise<void> {
const extensionRunner = this.session.extensionRunner;