[GH-ISSUE #5960] Only the first skill check in a turn shows its dice card #3302

Closed
opened 2026-10-21 06:01:48 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5960

Originally assigned to: @SpicyMarinara on GitHub.

The server honestly rolls every skill check in a turn — resolveSkillCheckTagsInContent walks all of them in reading order and splices each result back into the content. But only the first one ever gets the animated card:

// packages/client/src/components/game/GameSurface.tsx:4934-4937
if (tags.skillChecks.length > 0) {
  const sc = tags.skillChecks[0]!;
  if (sc.resolvedResult) {
    setPendingSkillCheck(sc.resolvedResult);

backed by a single useState slot and a single render site.

So a turn with a Stealth check and a Perception check shows one card. Both results are real, both reach the model, and both appear as lines in the narration log — but what the player watches is one roll, which reads as the engine having skipped the other. The more checks a turn carries, the more it looks like the engine only half-works.

A queue or a small stack of cards would fix it; the log side already handles N correctly, so this is the overlay only.

Related but distinct: #5956 is the same shape of bug on the tool-called dice path (last roll wins on the durable record). This one is first-wins on a transient overlay and loses no data. They'd sit naturally in the same pass, and #5959 would want whatever presenter comes out of it.

Originally created by @kolacheee on GitHub (Sep 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5960 Originally assigned to: @SpicyMarinara on GitHub. The server honestly rolls **every** skill check in a turn — `resolveSkillCheckTagsInContent` walks all of them in reading order and splices each result back into the content. But only the first one ever gets the animated card: ```ts // packages/client/src/components/game/GameSurface.tsx:4934-4937 if (tags.skillChecks.length > 0) { const sc = tags.skillChecks[0]!; if (sc.resolvedResult) { setPendingSkillCheck(sc.resolvedResult); ``` backed by a single `useState` slot and a single render site. So a turn with a Stealth check and a Perception check shows one card. Both results are real, both reach the model, and both appear as lines in the narration log — but what the player *watches* is one roll, which reads as the engine having skipped the other. The more checks a turn carries, the more it looks like the engine only half-works. A queue or a small stack of cards would fix it; the log side already handles N correctly, so this is the overlay only. Related but distinct: #5956 is the same *shape* of bug on the tool-called dice path (last roll wins on the durable record). This one is first-wins on a transient overlay and loses no data. They'd sit naturally in the same pass, and #5959 would want whatever presenter comes out of it.
bsakaguchi 2026-10-21 06:01:48 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Sep 8, 2026):

Implementation is owned by @SpicyMarinara with Codex in draft #5979, as part of the authorized issue sweep. The work reuses the shared dice parser, existing cards, and per-swipe metadata.

<!-- gh-comment-id:5592957974 --> @SpicyMarinara commented on GitHub (Sep 8, 2026): Implementation is owned by @SpicyMarinara with Codex in draft #5979, as part of the authorized issue sweep. The work reuses the shared dice parser, existing cards, and per-swipe metadata.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3302
No description provided.