Skip to content

Claude/debug ai worker refactor 7qc pd#1111

Merged
braedonsaunders merged 2 commits into
mainfrom
claude/debug-ai-worker-refactor-7qcPd
Jan 29, 2026
Merged

Claude/debug ai worker refactor 7qc pd#1111
braedonsaunders merged 2 commits into
mainfrom
claude/debug-ai-worker-refactor-7qcPd

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

No description provided.

Adds console logging at key points to diagnose why entities created
in the worker aren't appearing in the renderer:

- GameWorker: Enable DEBUG flag for render state logging
- RenderStateAdapter: Log first 10 updateFromRenderState calls
- UnitRenderer: Log entity count and world class name
- BuildingRenderer: Log entity count and world class name

This will help identify whether:
1. Render state is being sent from worker
2. RenderStateAdapter is receiving updates
3. Renderers are reading from correct world provider

https://claude.ai/code/session_01V4RhCiDvDJ7FmwSPYT74Y7
Logs which worldProvider class is being passed to renderers:
- "RenderStateWorldAdapter" = correct (worker mode)
- "World" = wrong (reading from empty game.world)

https://claude.ai/code/session_01V4RhCiDvDJ7FmwSPYT74Y7
@braedonsaunders braedonsaunders merged commit e3917f6 into main Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants