Skip to content

Fix Kira crashing at start: perfsweep exports an empty commands list - #160

Merged
ludovic111 merged 1 commit into
mainfrom
fix-perfsweep-commands
Nov 12, 2026
Merged

ludovic111 merged 1 commit into
mainfrom
fix-perfsweep-commands

Conversation

@ludovic111

Copy link
Copy Markdown
Collaborator

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Kira has been crashing at start since #159 deployed (16:27Z): bot.js builds the slash commands with FEATURES.flatMap((f) => f.commands), and perfsweep.js exported no commands, so commands.map((c) => c.toJSON()) threw on clientReady.

  • perfsweep.js exports commands = [].
  • A test reads FEATURES from bot.js and checks that every feature exports a commands array. It fails without the fix.

node --test test/perfsweep.test.js: 2 pass.

🤖 Generated with Claude Code

bot.js maps every feature's commands; perfsweep (#159) had none, so commands.map
hit undefined.toJSON() on clientReady and Kira crashed since 16:27Z. A test now checks
every feature bot.js loads exports a commands array.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ludovic111
ludovic111 merged commit 740c5b3 into main Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant