dashboard: show answer feedback and auto-select the resumed run

The answer flow ran the whole resume + LLM assessment synchronously before
the frontend cleared the input or flashed anything, so a slow answer looked
like a no-op. Make it optimistic: clear input, disable the button, and show
an in-flight 'answering…' state immediately; then persist a consumed-feedback
line (with a hint when the skill re-asks the same question) and auto-select
the run in the timeline so the answered/assessed/needs_input events are
visible. build_status now carries the pending run_id to drive that selection.
This commit is contained in:
Denton Social committed 2026-09-25 12:10:40 -05:00
1 parent 87438c881a
commit 927f66b696
5 files changed
+93 -4

No files matched your search

+5 -1
View File
@@ -100,7 +100,11 @@ def build_status(scheduler: Scheduler) -> dict:
else None
)
pending = (
{"skill": scheduler.pending.skill.name, "question": scheduler.pending.question}
{
"skill": scheduler.pending.skill.name,
"question": scheduler.pending.question,
"run_id": scheduler.pending.request.id,
}
if scheduler.pending
else None
)