fix: error state resettable via mic click, debug logging, pipeline traceback

This commit is contained in:
2026-04-01 12:41:45 +02:00
parent 6574481647
commit 6e317a9c67
4 changed files with 20 additions and 3 deletions
+6
View File
@@ -1,7 +1,11 @@
import logging
import os
import tempfile
import traceback
from api.state import state, Status
logger = logging.getLogger(__name__)
from config import load as load_config
from transcription import engine as transcription_engine
from llm import OllamaClient
@@ -59,6 +63,8 @@ async def run_pipeline():
await state.set_status(Status.IDLE)
except Exception as e:
tb = traceback.format_exc()
logger.error("Pipeline error:\n%s", tb)
state.last_error = str(e)
await state.set_status(Status.ERROR)
await broadcast({"event": "error", "message": str(e)})