[GH-ISSUE #2282] [Issue]: Sequential individual-mode group chat only replies as one character per send instead of all characters taking turns #1120

Closed
opened 2026-10-21 05:27:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2282

Originally assigned to: @Romuromylus on GitHub.

Summary

In a sequential, individual-mode roleplay group chat, the refactor replies as only the next character in rotation on a single send. Main has every active character reply automatically on one send.

Expected behavior

With group response order set to sequential, one send should produce a reply from each active character in turn, feeding each back into context, matching main.

Actual behavior

The refactor returns a single turn id (next-in-rotation) and reports total: 1, so the client auto-advance check never re-triggers. Users must manually trigger each remaining character one send at a time. Smart-order and mention-based multi-turn are unaffected.

Steps to reproduce

  1. Create an individual-mode group chat with 3+ active characters and set response order to sequential.
  2. Send one message.
  3. Observe only one character replies (refactor); on main all active characters reply in turn.

Impact area

  • Roleplay mode
  • React-free engine behavior, contracts, agents, or capability ports
  • Runtime systems: generation, world-state, visuals, tracker, or haptics

Regression notes

Worked on main. Main sets respondingCharIds to all active characters for sequential order (packages/server/src/routes/generate.routes.ts:7217-7218, generate-route-utils.ts:248-262) and loops one reply per character feeding runningMessages (generate.routes.ts:8198-8242). The refactor's resolveIndividualGroupTurnIds returns sequential ? [sequential] : [] from a single next-in-rotation id (src/engine/generation/start-generation.ts:1457-1458,1151-1157), runIndividualGroupTurnLoop iterates only turnIds.length (=1) emitting total: 1 (:1468-1472), so the client check groupTurnIndex + 1 < groupTurnTotal is false (use-generate.ts:1504). The smart branch still uses multi-selection (start-generation.ts:1450-1456).

Environment

  • Branch or commit: refactor @ 5ddb9840 (compared against main @ b4ab97f)
  • Run mode: Tauri desktop
  • OS + version: Windows 11
  • Node + pnpm versions: not relevant (static source comparison)
  • Rust version, if relevant: not relevant (static source comparison)
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: see body

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2282 Originally assigned to: @Romuromylus on GitHub. ## Summary In a sequential, individual-mode roleplay group chat, the refactor replies as only the next character in rotation on a single send. Main has every active character reply automatically on one send. ## Expected behavior With group response order set to sequential, one send should produce a reply from each active character in turn, feeding each back into context, matching main. ## Actual behavior The refactor returns a single turn id (next-in-rotation) and reports total: 1, so the client auto-advance check never re-triggers. Users must manually trigger each remaining character one send at a time. Smart-order and mention-based multi-turn are unaffected. ## Steps to reproduce 1. Create an individual-mode group chat with 3+ active characters and set response order to sequential. 2. Send one message. 3. Observe only one character replies (refactor); on main all active characters reply in turn. ## Impact area - [x] Roleplay mode - [x] React-free engine behavior, contracts, agents, or capability ports - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics ## Regression notes Worked on main. Main sets respondingCharIds to all active characters for sequential order (`packages/server/src/routes/generate.routes.ts:7217-7218`, `generate-route-utils.ts:248-262`) and loops one reply per character feeding runningMessages (`generate.routes.ts:8198-8242`). The refactor's `resolveIndividualGroupTurnIds` returns `sequential ? [sequential] : []` from a single next-in-rotation id (`src/engine/generation/start-generation.ts:1457-1458,1151-1157`), `runIndividualGroupTurnLoop` iterates only `turnIds.length` (=1) emitting total: 1 (`:1468-1472`), so the client check `groupTurnIndex + 1 < groupTurnTotal` is false (`use-generate.ts:1504`). The smart branch still uses multi-selection (`start-generation.ts:1450-1456`). ## Environment - Branch or commit: refactor @ 5ddb9840 (compared against main @ b4ab97f) - Run mode: Tauri desktop - OS + version: Windows 11 - Node + pnpm versions: not relevant (static source comparison) - Rust version, if relevant: not relevant (static source comparison) - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: see body ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:27:15 +07:00
Author
Owner

@Romuromylus commented on GitHub (Jun 6, 2026):

Fixed by #2394, merged into refactor.

<!-- gh-comment-id:4637903063 --> @Romuromylus commented on GitHub (Jun 6, 2026): Fixed by #2394, merged into `refactor`.
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#1120
No description provided.