Skip to content

progress: /chat als 202 + status-endpoint (poll/SSE) voor echte agent-stappen in de UI #85

Closed

Description

@Atrium0804

Part of #78

Probleem

De gebruiker krijgt pas feedback als het héle antwoord klaar is (60-180s+). De Mistral-history is wél pollable: entries hebben timestamps en tonen per beurt de handoffs en tool-calls (zie scripts/trace_conversation.py).

Gewenst

  • /chat draait de Mistral-call in een background job (vereist het non-blocking ticket) en returnt 202 + job-id; de frontend pollt /chat/status/<job> (of SSE) en toont in de typing-bubble de echte stappen: "router kiest onderwerp…" → "knwu-agent zoekt in de reglementen…" → "controleer online…" → antwoord.
  • Status deriveerbaar uit de Mistral conversation-history (entries) of uit eigen job-state — kies de simpelste die betrouwbaar is.

Acceptatiecriteria

  • Non-blocking /chat is geland (blocker).
  • Status-endpoint met fase + tests in app/tests/test_app.py.
  • UI toont de stappen in de bestaande typing-bubble; DOM-test ervoor.
  • Terugval: bij wegvallen van de status blijven de staged-tijdmeldingen (ander ticket) werken.

Context

Onderdeel van de diagnose in #78 (2026-11-13).

Activity

  1. added
    ready-for-agent
    on Nov 13, 2026
  2. Atrium0804 commented on Nov 13, 2026

    @Atrium0804
    OwnerAuthor

    Implemented in commits 3f567c5 (#81-84) and 049878b (#85); #80 was al geland in feb92a6. Alle tests groen (274 Python + 42 JS DOM).

  3. added a commit that references this issue on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions