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
@@ -48,6 +48,7 @@ html, body {
|
||||
|
||||
.inputbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 10px 16px;
|
||||
background: var(--panel-2);
|
||||
@@ -56,6 +57,19 @@ html, body {
|
||||
|
||||
.inputbar form { display: flex; flex: 1; gap: 8px; }
|
||||
|
||||
#answer-feedback {
|
||||
flex: 1 1 100%;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
color: var(--ok);
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#answer-feedback.feedback-error { color: var(--fail); border-color: var(--fail); }
|
||||
#answer-feedback.feedback-awaiting { color: var(--warn); border-color: var(--warn); }
|
||||
|
||||
#query-input {
|
||||
flex: 1;
|
||||
background: var(--bg);
|
||||
@@ -346,6 +360,17 @@ pre.json {
|
||||
.stat-grid .stat { background: var(--panel-2); border-radius: 4px; padding: 4px 6px; }
|
||||
.stat-grid .stat .v { font-weight: 700; }
|
||||
|
||||
.pending-line {
|
||||
margin: 8px 0 4px;
|
||||
padding: 6px 8px;
|
||||
background: var(--panel-2);
|
||||
border-radius: 4px;
|
||||
border-left: 3px solid var(--warn);
|
||||
color: var(--warn);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* ---------- scrubber ---------- */
|
||||
|
||||
.scrub-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
|
||||
|
||||
Reference in new issue
Block a user