- Added memory-anchor filter to left-panel.tsx - Removed issues.jsonl fallback in read-issues.ts (Dolt-only) - Frontend still shows stale data despite these changes - Root cause NOT identified - see NEXT_SESSION_PROMPT.md for details
4.3 KiB
4.3 KiB
Next Session: Investigate Frontend/Dolt Data Mismatch
Critical Unresolved Issue
The frontend is showing STALE data that doesn't match Dolt. We could NOT figure out the root cause.
Symptoms:
- bb-u6f.7 shows as OPEN in frontend left sidebar, but is CLOSED in Dolt
- beadboard-2e6 and beadboard-6cc (brainstorming epics) don't appear in frontend, but exist in Dolt as OPEN
- Memory-anchor epics ARE correctly filtered out (this works)
- Frontend loads without Dolt connection errors
What We Verified:
- Dolt IS running (bd dolt status shows PID 77304, port 3307)
- Dolt has CORRECT data (direct MySQL queries confirmed bb-u6f.7=status:closed, beadboard-2e6=status:open)
- issues.jsonl has WRONG data (bb-u6f.7=status:open, issue_type=task - both wrong!)
- No errors in console or Dolt logs
What We Tried (ALL FAILED):
- Added memory-anchor filter to left-panel.tsx line 73 - worked for filtering memory, but didn't fix stale data
- Removed issues.jsonl fallback in read-issues.ts - didn't change anything
- Cleared .next cache and restarted dev server - didn't change anything
- Restarted Dolt server - didn't change anything
- Multiple browser hard refreshes - didn't change anything
What I Thought Was The Cause (WRONG):
Dolt server not running- it WAS runningFrontend falling back to issues.jsonl- removed fallback, same resultNext.js build cache- cleared, same resultLeftPanel filter hiding epics- verified filter logic is correctDolt connection failing silently- but no error means Dolt IS connecting
Files Modified This Session:
src/components/shared/left-panel.tsx- added memory-anchor filter (line 73)src/lib/read-issues.ts- removed issues.jsonl fallback (Dolt-only now)
Files To Read To Understand What Happened:
src/lib/read-issues.ts- Dolt-only read pathsrc/lib/read-issues-dolt.ts- Dolt query logicsrc/lib/aggregate-read.ts- calls readIssuesFromDisksrc/app/page.tsx- SSR entry pointsrc/components/shared/left-panel.tsx- epic display logic.beads/dolt-server.log- connection logs (no errors found)
Key Questions For Next Session:
- Why does the frontend show different data than Dolt when Dolt is clearly accessible?
- Is there another caching layer we're missing?
- Is there something in the Next.js SSR that's caching data?
- Could there be a second Dolt instance or database being read?
What Was Accomplished This Session:
Completed Earlier:
- Fixed BlockedTriageModal CSS theme variables
- Fixed agent names displaying as bead IDs (extract human-readable names)
- Fixed blocked count to include derived blockers
- Created memory node beadboard-6iq (Extract human-readable names)
- Closed old bb-* epics (they were from old architecture)
- Created beadboard-1bg epic for skill v4 rewrite (closed - all tasks done)
- Created beadboard-n1h epic for quality gates
- Created beadboard-jq5 epic for project scope UI (closed)
- Created beadboard-2e6 epic for UX critique brainstorming
Memory Nodes Created:
- beadboard-6iq - [MEMORY][UI][HARD] Extract human-readable names from raw data fields
- beadboard-dc0 - [MEMORY][ARCH][SOFT] Skill structure pattern
Skills Used This Session:
systematic-debugging- followed the debugging process but couldn't find root causebeadboard-driver- used bd commands throughoutverification-before-completion- ran gates before closing beads
Ready Work (from bd ready):
beadboard-n1h.1- Unit Tests: Core Librariesbeadboard-n1h.2- API Integration Testsbeadboard-2e6- [BRAINSTORM] UX Continuity and Critique (needs brainstorming skill)- Other quality/testing tasks
Non-Negotiable Context:
- Run
bdcommands fromcodex/beadboarddirectory bdis source of truth - no direct JSONL writes- Evidence before assertions - always cite command output
- Read hard memory first:
bd show beadboard-116 beadboard-60a beadboard-zas
First 10 Minutes:
cd /mnt/c/Users/Zenchant/codex/beadboard
# 1) Read hard memory
bd show beadboard-116 beadboard-60a beadboard-zas beadboard-6fv
# 2) Check current state
bd query "status=closed" --sort closed --reverse --limit 10
bd ready
# 3) Check Dolt status
bd dolt status
# 4) Verify data consistency
# Compare Dolt vs frontend for a known-closed epic
bd show bb-u6f.7
# Then check what frontend shows