✨ feat(needs-you): refuse a blocked wrap-up with no question

Merged
AT
16d ago
+102-4

Slice: athya-hq/athya_mono#3431 (W-47, approved by Alok's šŸ‘ on its Proposal, 2026-11-10 03:05 UTC).

What changes

The needs-you plugin's tool.call hook refuses a mcp__ccd_turn__wrap_up call with blocked: true whose ask is missing, empty or blank. It returns { deny } before the call runs, and the model reads:

needs-you: this turn waits on the person (blocked: true), but the wrap-up has no ask, so the band above the prompt shows nothing and the person cannot see that this chat needs them. Call wrap_up again, keeping blocked: true, with ask (the one question, in a sentence) and actions (reply buttons that answer it). If the turn does not wait on the person, leave blocked out instead.

Every other wrap_up runs as before. A band line's text is now the trimmed ask. Plugin version 0.1.0 → 0.1.1, so installed copies pick it up. The README says what is and is not caught.

Why

On 2026-11-10 the W-30.4 session (athya-hq/athya_mono#3406) ended a blocked turn with only recap and blocked: true and asked its question in chat. The band only adds a line for a non-empty ask, so it stayed empty. Page: https://claude.ai/artifact/LEXkymWHsQ98XngpV4TZen

Evidence

claude plugin validate packages/needs-you: passed (only the existing icon warning). claude plugin test packages/needs-you: 10 pass, 0 fail, including three new tests:

  • blocked with no ask (missing, '', ' '): refused, the engine's tool never runs, the band stays the engine's
  • blocked with an ask: runs, the band shows ā— Token saved as NPM_TOKEN? with its Done button
  • neither blocked nor ask: runs, no band line; ask without blocked keeps the existing test

Not caught, by design: a waiting turn that sets neither blocked nor ask and asks only in its closing message.

šŸ¤– Generated with Claude Code


Summary by cubic

Refuses a wrap_up called with blocked: true and a missing or blank ask, so a blocked turn can no longer leave the needs-you band empty above the prompt.

  • The denial returns before the call runs and tells the model to retry with the question and reply buttons, or to leave blocked out if the turn does not wait.
  • The band now shows the trimmed ask; the plugin bumps to 0.1.1 and the README documents the boundary.
  • Not caught by design: a waiting turn that sets neither blocked nor ask and asks only in its closing message.
  • Adds three hook tests covering refused, accepted, and neither-blocked-nor-asked wrap-ups.