Skip to content

fix: allow empty array for rainbow reset in buddy_style - #119

Open
yehuosi wants to merge 1 commit into
ramarivera:mainfrom
yehuosi:fix/rainbow-reset-empty-array
Open

fix: allow empty array for rainbow reset in buddy_style#119
yehuosi wants to merge 1 commit into
ramarivera:mainfrom
yehuosi:fix/rainbow-reset-empty-array

Conversation

@yehuosi

@yehuosi yehuosi commented May 9, 2026

Copy link
Copy Markdown

The /buddy rainbow reset command passes [] to buddy_style, but the Zod schema had .min(1) which rejected empty arrays at validation time — the handler never ran. The fix is .min(0). The handler at line 494 already correctly treats [] as a reset signal.

The Zod schema had .min(1) which rejected [] at validation time,
preventing /buddy rainbow reset from working. The handler already
correctly treats empty array as a reset signal (line 494). Lowering
the minimum to 0 lets the reset path reach the handler.

Also updates the tool description to document [] as the reset value.
@ramarivera

Copy link
Copy Markdown
Owner

Hey @yehuosi — thanks for this fix! The only thing blocking it from getting CI + review is the DCO check: the commit(s) are missing a Signed-off-by line.

Quick fix from your branch:

git commit --amend -s --no-edit   # single commit
# or, for multiple commits:
git rebase --signoff origin/main
git push --force-with-lease

Once DCO goes green we can run CI and get this reviewed — it's a small, wanted change.

🤖 Created with the help of AI (Claude Fable 5).

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.

2 participants