Play rounds end in present.v1 body instead of creation HITL.

Narrator uses capability-probed structured delivery and falls back to shell body on failure; play UI hides worker questions and keeps thinking on process rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-02 01:07:43 +08:00
co-authored by Cursor
parent f37388761b
commit 92b2d88738
11 changed files with 828 additions and 327 deletions
+14 -2
View File
@@ -851,7 +851,8 @@ export class SessionManager {
kind !== "approve_step" &&
kind !== "revision" &&
kind !== "next_intent" &&
kind !== "pick_creation_step"
kind !== "pick_creation_step" &&
kind !== "worker_questions"
) {
return;
}
@@ -1875,12 +1876,23 @@ export class SessionManager {
this.captureCheckpoint(managed),
);
const usage = managed.trackingRef.current.pendingUsage;
const thinking = managed.trackingRef.current.pendingReasoning;
const sessionId = managed.trackingRef.current.sessionId;
const liveThinking = sessionId
? this.workerLive.get(sessionId)?.thinking?.trim()
: "";
managed.trackingRef.current.pendingUsage = undefined;
const pendingReasoning = managed.trackingRef.current.pendingReasoning;
managed.trackingRef.current.pendingReasoning = undefined;
const classified =
text.trim().length > 0 ? classifyAgentMessage(text) : null;
const thinking =
pendingReasoning ||
(classified?.kind === "worker_output" ||
classified?.kind === "worker_questions"
? liveThinking
: "") ||
undefined;
const pendingTrace = managed.trackingRef.current.pendingContextTrace;
let contextTrace: LlmContextTrace | undefined;
if (