dashboard: show a pending submit while its run spins up; retune codegen defaults

Submitting from the dashboard cleared the input and then showed nothing until
the next poll, so a slow submit looked like a no-op. POST /api/submit now
returns the new request_id alongside status/detail (Scheduler.submit_request),
and the front end keeps a `pendingSubmit` entry: it immediately renders a
synthetic "submitted" node plus an in-flight spinner, then swaps to the real
run once its trace row appears (matching by request_id) and clears the pending
state. A run that has landed but has no decisions yet also gets the spinner
instead of an empty flow. Adds a test asserting the returned request_id matches
a trace run.

Also flip config.example.json codegen defaults to stream:true and
temperature 1 / top_p 0.95 / presence_penalty 0 / frequency_penalty 1.
This commit is contained in:
gabby committed 2026-10-01 20:35:38 +00:00
1 parent da53e1eefc
commit 8751e7c08e
5 files changed
+113 -8

No files matched your search

+25
View File
@@ -317,6 +317,31 @@ select {
50% { opacity: 0.35; }
}
/* ---------- pending submit ---------- */
.node.pending-indicator {
display: flex;
align-items: center;
gap: 8px;
width: auto;
color: var(--warn);
font-size: 12px;
border-style: dashed;
cursor: default;
}
.node.pending-indicator:hover { border-color: var(--line); }
.pending-indicator .spinner {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--warn);
animation: writing-pulse 1.2s ease-in-out infinite;
}
.node.event-node.pending-request { border-left: 3px solid var(--accent); }
/* ---------- inspector / tree / status ---------- */
.right { border-right: none; }