Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server,web): Stop on a running turn no longer cancels background work #16852

Closednkoynov(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/16852/headopened View on GitHub

Showing 26 changed files with 13 additions and 0 deletions (loading 25).

x
0 of 26 viewed, 26 left
13 additions and 0 deletionsapps/server/scripts/record-claude-agent-sdk-replay-fixture.tsModified
View file
@@ -69,6 +69,7 @@
import { CLAUDE_NESTED_SUBAGENT_MODEL_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_nested_subagent_model/input.ts";
import { CLAUDE_MCP_TOOL_PRESENTATION_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_mcp_tool_presentation/input.ts";
import { CLAUDE_BACKGROUND_TASK_INTERRUPT_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_task_interrupt/input.ts";
+import { CLAUDE_BACKGROUND_TASK_STOP_TURN_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_task_stop_turn/input.ts";
import { CLAUDE_BACKGROUND_WAKE_BEFORE_QUEUED_PROMPT_LAUNCH_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_wake_before_queued_prompt/input.ts";
import {
CLAUDE_BACKGROUND_TASK_WAKE_FOLLOW_UP_PROMPT,
@@ -237,6 +238,15 @@
interruptAfter: "tool_use",
interruptAfterToolUses: 2,
+ claude_background_task_stop_turn: {
+ prompts: [CLAUDE_BACKGROUND_TASK_STOP_TURN_PROMPT],
+ defaultTranscriptFile: "fixtures/claude_background_task_stop_turn/claude_transcript.ndjson",
+ queryMode: "interrupt",
+ enableTools: true,
+ interruptAfter: "tool_use",
+ interruptAfterToolUses: 2,
+ keepProcessForWakes: 1,
+ },
claude_nested_background_subagent_wake: {
prompts: [CLAUDE_NESTED_BACKGROUND_SUBAGENT_WAKE_PROMPT],
defaultTranscriptFile:
@@ -564,6 +574,9 @@
...("interruptAfterToolUses" in recording
? { interruptAfterToolUses: recording.interruptAfterToolUses }
: {}),