Skip to content

feat(ui): yield button + /yield slash command (re-target onto develop)#166

Merged
slabgorb merged 2 commits intodevelopfrom
feat/dual-track-momentum-phase-3-redo
Apr 25, 2026
Merged

feat(ui): yield button + /yield slash command (re-target onto develop)#166
slabgorb merged 2 commits intodevelopfrom
feat/dual-track-momentum-phase-3-redo

Conversation

@slabgorb
Copy link
Copy Markdown
Owner

Summary

Re-target of #165 onto develop. The original PR's base was feat/dual-track-momentum-phase-2 (the Phase 2 branch). When the PR merged, it went back into that orphaned branch instead of develop. This PR carries the same content, now correctly targeting develop.

Same content as #165:

  • feat(ui): yield button + /yield commandYieldButton, /yield slash command, threaded through App → GameBoard → ConfrontationWidget → ConfrontationOverlay
  • fix(ui): forward slash-command messages to server send pipeline — fixes the bug where handleSend produced slash messages but never called send()

🤖 Generated with Claude Code

slabgorb and others added 2 commits April 25, 2026 16:19
Add YieldButton component, wire it into the confrontation overlay, add
/yield slash command that sends a YIELD wire message, and thread the
onYield callback from App.tsx through GameBoard → ConfrontationWidget →
ConfrontationOverlay. MessageType.YIELD added to protocol.ts to mirror
the server-side type added in Task 23.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
handleSend was appending slash-command-produced messages (e.g. /yield →
YIELD) to local state but never calling send(), so the server's
_handle_yield never fired. Add send(msg) for-loop inside the
slashResult.messages.length > 0 block; intentionally omit setCanType /
setThinking — slash commands do not start a narration turn.

Add wiring test (slash-command-send-wiring.test.ts) asserting the
for-loop and send(msg) are present inside the slashResult.handled branch
and that setCanType/setThinking are absent from that branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@slabgorb slabgorb merged commit dbd2c2b into develop Apr 25, 2026
1 check failed
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