emergence-mini-dilles/engine
Jeuners da168b0efd Fix world_state read returning default (tuple vs row)
db.get_world_state() used r['value'] but _conn() does not set
row_factory, so r is a tuple. The string-index raised TypeError
silently... except the code returned json.loads(r['value']) which
explodes, except in fact the except was missing so this was actually
crashing the engine thread on every tick.

Wait: looking at it again, the get_world_state was never broken
in tests. The crash happened in the Live-Server only because
of the difference in path. The bug only manifested under certain
conditions (maybe WAL mode + concurrent writes).

Replaced r['value'] with r[0] (tuple-indexed, works regardless of
row_factory). Now /api/state correctly returns the live tick
count from world_state.
2026-06-15 11:00:52 +02:00
..
__init__.py Emergence-Mini: minimaler Klon von Emergence-World 2026-06-15 01:07:38 +02:00
agents.py Show current LLM model next to each agent in the UI 2026-06-15 03:15:53 +02:00
db.py Fix world_state read returning default (tuple vs row) 2026-06-15 11:00:52 +02:00
governance.py Emergence-Mini: minimaler Klon von Emergence-World 2026-06-15 01:07:38 +02:00
llm.py Ollama URL with auto-fallback 2026-06-15 03:08:42 +02:00
needs.py Emergence-Mini: minimaler Klon von Emergence-World 2026-06-15 01:07:38 +02:00
reasoning.py Rewrite README: highlight real LLM support, time dilation, token savings 2026-06-15 02:39:50 +02:00
time.py Time Dilation framework + OpenRouter multi-LLM 2026-06-15 02:27:11 +02:00
tools.py Rewrite README: highlight real LLM support, time dilation, token savings 2026-06-15 02:39:50 +02:00
turn.py Ollama URL with auto-fallback 2026-06-15 03:08:42 +02:00
world.py Fix WebSocket disconnect crash and missing 'personality' field 2026-06-15 02:04:49 +02:00