Stop plan loops after child success; harden stream UX.

Prefer DONE + runtime solidify when the child already returned a value, compact parent observations, drop the SSE 8MiB raw-buffer abort, and drip-stream the view panel via POST /api/run.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-10 17:25:24 +08:00
1 parent 2a9fceb51c
commit 7e3b193d49
7 files changed
+868 -172

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ pub struct FileViewModel {
pub input_prompts: Vec<String>,
/// Live view: program uses `input` but no stdin yet — execution deferred until form submit.
pub awaiting_input: bool,
/// Live view: stdin present — skip blocking page-load run; client auto-starts Stream SSE.
pub auto_stream: bool,
/// SVG plots from math lib (embedded in Execution).
pub plots: Vec<String>,
}