Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): Working holds only background work the agent waits on #22055

ClosedLovelyCodeMonkey(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/22055/headopened View on GitHub

Showing 26 changed files with 48 additions and 5 deletions (loading 23).

x
0 of 26 viewed, 26 left
6 additions and 5 deletionsapps/mobile/src/features/threads/threadListV2.test.tsModified
View file
@@ -101,11 +101,12 @@
});
​
it.each([
- { kind: "command", status: "ready" },
- { kind: "monitor", status: "waiting" },
+ { roster: "dev server", task: { kind: "command" }, status: "ready" },
+ { roster: "dev server watchdog", task: { kind: "monitor" }, status: "ready" },
+ { roster: "awaited command", task: { kind: "command", awaited: true }, status: "waiting" },
] as const)(
- "presents an unseen completion with a $kind roster as $status",
- ({ kind, status }) => {
+ "presents an unseen completion with a $roster roster as $status",
+ ({ task, status }) => {
const thread = presentThreadShell(
environmentId,
makeRawThreadShell({
@@ -113,7 +114,7 @@
status: "completed",
latestRunCompletedAt: DateTime.makeUnsafe(NOW),
lastVisitedAt: DateTime.makeUnsafe("2026-06-01T23:59:00.000Z"),
- pendingBackgroundTasks: [{ taskId: "background-work", kind }],
+ pendingBackgroundTasks: [{ taskId: "background-work", ...task }],
}),
​
21 additions and 0 deletionsapps/server/src/mcp/toolkits/orchestrator/handlers.tsModified
View file