[GH-ISSUE #2143] [Issue]: Game mode — combat-init debug logging lost (EncounterInitRequest dropped debugMode) #1054

Closed
opened 2026-10-21 05:25:53 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor (developer diagnostic). debugMode was removed from EncounterInitRequest, so enabling Debug Mode no longer logs the generated combat-init request/response. Player-invisible, but it makes diagnosing bad combat generation harder.

Expected behavior

As in main: with Debug Mode on, the combat-encounter-init path logs the generated request/response ([debug/game/combat:init]).

Actual behavior

The contract field debugMode?: boolean is gone from EncounterInitRequest, and the refactor encounter-init service performs no equivalent logging; the global debugMode flag (threaded elsewhere) cannot reach combat-init.

Steps to reproduce

  1. Enable Debug Mode in settings.
  2. Trigger a game-mode combat encounter.
  3. Refactor: no combat:init request/response trace is logged. Main: the trace appears.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/shared/src/types/combat-encounter.ts:199-200 (debugMode?: boolean), consumed at encounter.routes.ts:530-532.
  • refactor: src/engine/contracts/types/combat-encounter.ts has no debugMode; encounter-service.ts:60-79 has no debug logging.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2143 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor (developer diagnostic).** `debugMode` was removed from `EncounterInitRequest`, so enabling Debug Mode no longer logs the generated combat-init request/response. Player-invisible, but it makes diagnosing bad combat generation harder. ## Expected behavior As in main: with Debug Mode on, the combat-encounter-init path logs the generated request/response (`[debug/game/combat:init]`). ## Actual behavior The contract field `debugMode?: boolean` is gone from `EncounterInitRequest`, and the refactor encounter-init service performs no equivalent logging; the global `debugMode` flag (threaded elsewhere) cannot reach combat-init. ## Steps to reproduce 1. Enable Debug Mode in settings. 2. Trigger a game-mode combat encounter. 3. Refactor: no combat:init request/response trace is logged. Main: the trace appears. ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/shared/src/types/combat-encounter.ts:199-200` (`debugMode?: boolean`), consumed at `encounter.routes.ts:530-532`. - refactor: `src/engine/contracts/types/combat-encounter.ts` has no `debugMode`; `encounter-service.ts:60-79` has no debug logging.
bsakaguchi 2026-10-21 05:25:53 +07:00
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#1054
No description provided.