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:
1 parent
87438c881a
commit
927f66b696
5 files changed
+93
-4
No files matched your search
@@ -273,13 +273,15 @@ def test_answer_without_pending_returns_error_json(tmp_path):
|
||||
|
||||
def test_status_includes_pending(tmp_path):
|
||||
scheduler = build_scheduler(tmp_path)
|
||||
scheduler._run_skill(need_input_skill([]), Request("track my package"))
|
||||
request = Request("track my package")
|
||||
scheduler._run_skill(need_input_skill([]), request)
|
||||
server = Server(scheduler)
|
||||
try:
|
||||
status, payload = server.get("/api/status")
|
||||
assert status == 200
|
||||
assert payload["pending"]["skill"] == "track.manual"
|
||||
assert payload["pending"]["question"] == "What's the tracking number?"
|
||||
assert payload["pending"]["run_id"] == request.id
|
||||
finally:
|
||||
server.close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user