[Low] [Bug] [Spire] Activity log flooded with duplicate messages after Spire exit #369

Closed
opened 2026-06-10 19:30:27 +02:00 by Anexim · 2 comments
Owner

Severity: Low
Type: Bug
Store: useUIStore / combatStore.ts

Steps to reproduce:

  1. Enter Spire Mode via Debug tab
  2. Fight a few rooms
  3. Descend and Exit Spire
  4. Observe the activity log

Expected:

  • Clean activity log with a single "Exited the Spire" message

Actual:

  • The activity log shows many duplicate "[floor_transition]" messages after exiting:
    • "Descent complete — Exit Spire is now available" repeated ~8 times
    • "Room 1 passed" repeated ~8 times
    • "Exited the Spire" and "🚪 Exited the Spire." shown multiple times
  • These appear to be residual log entries from the descent process that weren't cleared

Likely cause:

  • The descent logic processes multiple rooms/floors and logs each transition, but the log entries accumulate instead of being deduplicated or cleared on exit
  • May be related to the tick pipeline processing descent actions across multiple ticks without clearing the transition log
**Severity:** Low **Type:** Bug **Store:** `useUIStore` / `combatStore.ts` **Steps to reproduce:** 1. Enter Spire Mode via Debug tab 2. Fight a few rooms 3. Descend and Exit Spire 4. Observe the activity log **Expected:** - Clean activity log with a single "Exited the Spire" message **Actual:** - The activity log shows many duplicate "[floor_transition]" messages after exiting: - "Descent complete — Exit Spire is now available" repeated ~8 times - "Room 1 passed" repeated ~8 times - "Exited the Spire" and "🚪 Exited the Spire." shown multiple times - These appear to be residual log entries from the descent process that weren't cleared **Likely cause:** - The descent logic processes multiple rooms/floors and logs each transition, but the log entries accumulate instead of being deduplicated or cleared on exit - May be related to the tick pipeline processing descent actions across multiple ticks without clearing the transition log
Anexim added the ai:todo label 2026-06-10 19:30:27 +02:00
n8n-gitea was assigned by Anexim 2026-06-10 19:30:27 +02:00
Anexim added ai:in-progress and removed ai:todo labels 2026-06-11 12:03:28 +02:00
Author
Owner

Starting investigation of duplicate activity log messages after Spire exit. Reading relevant source files.

Starting investigation of duplicate activity log messages after Spire exit. Reading relevant source files.
Anexim added ai:done and removed ai:in-progress labels 2026-06-11 12:11:05 +02:00
Author
Owner

Fix applied. Two root causes identified and fixed:

  1. combat-descent-actions.tsonEnterRoomDescend duplicate log: When descending through already-cleared rooms, onEnterRoomDescend logged "Floor X Room Y is clear — moving on" and then called advanceRoomOrFloor, which also logs "Room X passed". Removed the redundant log from onEnterRoomDescend.

  2. SpireCombatPage.tsx — duplicate exit message: handleExitSpire called exitSpireMode() (which logs "Exited the Spire") and then also logged "🚪 Exited the Spire." — removed the duplicate addActivityLog call from the component.

All 1158 tests pass.

**Fix applied.** Two root causes identified and fixed: 1. **`combat-descent-actions.ts` — `onEnterRoomDescend` duplicate log:** When descending through already-cleared rooms, `onEnterRoomDescend` logged "Floor X Room Y is clear — moving on" and then called `advanceRoomOrFloor`, which also logs "Room X passed". Removed the redundant log from `onEnterRoomDescend`. 2. **`SpireCombatPage.tsx` — duplicate exit message:** `handleExitSpire` called `exitSpireMode()` (which logs "Exited the Spire") and then also logged "🚪 Exited the Spire." — removed the duplicate `addActivityLog` call from the component. All 1158 tests pass.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#369