Bugfix: How to fix Bug 7 (module cap truncation flood causing tab cr...
Documentation for Sessions
🐛 Bugfix: How to fix Bug 7 (module cap truncation flood causing tab cr...
Date: 2026-02-23
Time: 20:54:58 UTC
Session: gspace1-139.2
Agent: angular
Confidence: 96%
Status: ✅ Documented
📋 Decision Context
Question:
How to fix Bug 7 (module cap truncation flood causing tab crash), Bug 9A (frozen timer), and Bug 9B/C (no per-module progress in UI)?
Task: S138.5 fix module cap + timer + activity feed
🎯 Decision Made
Chosen:
Three fixes: (1) Raised MAX_MODULES from 8 to 20 + added moduleLimitWarningShown flag to deduplicate toast/log warnings to once-per-generation. (2) Added elapsedSeconds signal with interval(1000) timer that ticks independently of SSE events, fixing the frozen timer during EXECUTE. (3) Added content_delta handling in addActivityFromEvent to show per-module progress messages in the AI Activity feed.
Options Considered:
- Remove MAX_MODULES entirely
- Raise cap + deduplicate + fix timer + wire activity feed
💭 Reasoning
Bug 7: The backend generated 11 modules legitimately for Fitness Studio. The frontend truncated to 8 and emitted 15+ warnings in the same millisecond (one per call site to extractModulesFromNavigation), flooding the console and causing the tab to crash. Raising to 20 accommodates complex templates. The deduplication flag ensures only one warning per generation session. Bug 9A: getElapsedTime() was a method called from the template, which only re-evaluates on change detection (OnPush). During EXECUTE when no SSE events arrive for minutes, change detection doesn't run, so the timer freezes. The signal-based interval timer updates elapsedSeconds every second, which triggers change detection automatically. Bug 9B/C: The backend already emits module-gen.phase-progress events (from S138.4), which the workflow-state.service.ts translates to content_delta with messages like 'Generating module: X (3/6)'. The addActivityFromEvent was ignoring these (case 'content_delta': break). Now it parses module generation messages and adds them to the activity feed.
📁 Files Involved
libs/libs-structural/vibe-universe/src/lib/components/vibe-universe-generator/vibe-universe-generator.component.ts
🔗 Related
- Decision ID:
dev_1771880098923_0pmhqm5 - Session: 139
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation