fix(web): fail-fast when invoke lock is busy; document single-interp limit

Long sse-live chats held INVOKE_LOCK indefinitely and starved short routes
(UI freeze). Timed try-lock returns interpreter busy → HTTP 503; ADR 0008
records that HTTP is multi-goroutine while Marqdo evaluation stays single-flight.
Also lands plan/delta streaming and soft map guards used by qdagent chat.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-10-26 13:27:53 +08:00
1 parent b792f44556
commit 1b11fe063a
11 files changed
+838 -163

No files matched your search

+5 -2
View File
@@ -326,8 +326,11 @@ pub fn apply_patch_blocks(
};
match apply_patch_blocks_inner(ctx, path, text) {
Ok(n) => Ok(n),
// soft only swallows unique-FIND miss — never parse / multi-match / whole-file.
Err(e) if soft && e.contains("FIND not found") => Ok(Value::Int(0)),
// soft swallows unique-FIND miss and empty FIND (model protocol mistakes).
// Never softens parse / multi-match / whole-file rewrite.
Err(e) if soft && (e.contains("FIND not found") || e.contains("empty FIND")) => {
Ok(Value::Int(0))
}
Err(e) => Err(e),
}
}