Files
cleveragents-core/features
hamza.khyari 08e12f9cce fix(tui): address CoreRasurae review — worker error handling and test gaps
Fix 1 (HIGH): _on_llm_done now checks worker.error via _format_worker_outcome()
  so UI never freezes silently when the worker thread fails unexpectedly.

Fix 2 (MEDIUM): _run_llm_dispatch catches SessionNotFoundError and DatabaseError
  with user-friendly messages instead of falling through to generic [Error].

Fix 3 (MEDIUM): BDD step_facade_received_request now asserts against
  context._submitted_text (set in step_submit_text) instead of the
  hardcoded literal "hello there".

Fix 4 (MEDIUM): Robot integration cmd_dispatch_message now verifies
  assistant_msg contains _STUB_TEXT, not just len > 0.

Fix 5 (LOW): Extract _format_worker_outcome() as a testable module-level
  function; add 4 new BDD scenarios covering SessionNotFoundError,
  DatabaseError, worker error surfacing, and worker success pass-through
  (12 scenarios total).

Refs: #11230
2026-05-20 13:44:44 +00:00
..