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

+5 -5
View File
@@ -48,7 +48,7 @@
"api_key_env": "",
"user_agent": "",
"timeout": 1200,
"stream": false,
"stream": true,
"idle_warn": 60,
"idle_timeout": 180,
"context_window": 0,
@@ -58,10 +58,10 @@
"warn_fill_ratio": 0.7,
"max_output": 0.85,
"chars_per_token": 4.0,
"temperature": 0.7,
"top_p": 0.85,
"presence_penalty": 1.5,
"frequency_penalty": 0.2,
"temperature": 1,
"top_p": 0.95,
"presence_penalty": 0,
"frequency_penalty": 1,
"max_attempts": 3,
"elicitation": {
"_comment": "Ask the product owner implementation questions before the body is written: which service/account, how to connect, where the credential comes from, what success looks like. Every front end defers questions to the questions panel and the single-slot writer waits up to wait_timeout seconds. Questions never ask for operational data values (collected at first fire) or config-vs-input cadence (the config step owns that).",