GeezerVison is showing github.com — chore(server): trim background-work coverage to the service tests · pingdotgg/t3code@23e418c
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: docs/orchestration-v2/orchestrator-mcp-server.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -430,10 +430,10 @@ wakes early only when it has a pending request or fails after snoozing. Complete | 430 | 430 | runs, background wakes, and delegated completions keep it snoozed. | 431 | 431 |
| 432 | 432 | They also report `blockedOnThreadWait` and `pendingBackgroundTasks`, the shell | 433 | | -fields behind the sidebar's Waiting label, so an agent can tell a `completed` | 434 | | -thread that still waits on background work from one that is done. A subagent or | 435 | | -`background_task` holds the thread. A command or monitor holds it only with | 436 | | -`awaited: true`, since agents often leave a dev server running. | | 433 | +fields behind the sidebar's Waiting label, so an agent can see what a thread | | 434 | +still waits on after its run completed. A subagent or `background_task` holds | | 435 | +the thread. A command or monitor holds it only with `awaited: true`, since agents | | 436 | +often leave a dev server running. | 437 | 437 |
| 438 | 438 | ### `t3_thread_update` | 439 | 439 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/contracts/src/orchestratorMcp.test.ts -45Lines changed: 0 additions & 45 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,57 +4,12 @@ import * as Schema from "effect/Schema"; | 4 | 4 | import { | 5 | 5 | OrchestratorMcpDelegateTaskInput, | 6 | 6 | OrchestratorMcpDelegateTaskResult, | 7 | | - OrchestratorMcpThreadDetail, | 8 | | - OrchestratorMcpThreadListItem, | 9 | 7 | } from "./orchestratorMcp.ts"; | 10 | 8 |
| 11 | 9 | const decodeDelegateTaskInput = Schema.decodeUnknownSync(OrchestratorMcpDelegateTaskInput); | 12 | 10 | const decodeDelegateTaskResult = Schema.decodeUnknownSync(OrchestratorMcpDelegateTaskResult); | 13 | | -const decodeThreadListItem = Schema.decodeUnknownSync(OrchestratorMcpThreadListItem); | 14 | | -const decodeThreadDetail = Schema.decodeUnknownSync(OrchestratorMcpThreadDetail); | 15 | 11 |
| 16 | 12 | describe("orchestrator MCP contracts", () => { | 17 | | - it("decodes thread results from a linked environment that predates background work", () => { | 18 | | - const listItem = { | 19 | | - threadId: "thread-1", | 20 | | - projectId: "project-1", | 21 | | - title: "Fix the build", | 22 | | - createdBy: "user", | 23 | | - creationSource: "web", | 24 | | - status: "completed", | 25 | | - latestRunId: null, | 26 | | - providerInstanceId: "codex", | 27 | | - model: "gpt-5.4", | 28 | | - runtimeMode: "full-access", | 29 | | - interactionMode: "default", | 30 | | - linkedPullRequest: null, | 31 | | - settled: false, | 32 | | - settledAt: null, | 33 | | - snoozed: false, | 34 | | - snoozedUntil: null, | 35 | | - parentThreadId: null, | 36 | | - relationshipToParent: null, | 37 | | - itemCount: 0, | 38 | | - createdAt: "2026-01-01T00:00:00.000Z", | 39 | | - updatedAt: "2026-01-01T00:00:00.000Z", | 40 | | - }; | 41 | | - const detail = { | 42 | | - ...listItem, | 43 | | - activeRunId: null, | 44 | | - titleRegeneration: null, | 45 | | - branch: null, | 46 | | - worktreePath: null, | 47 | | - runCount: 0, | 48 | | - pendingRequestCount: 0, | 49 | | - archived: false, | 50 | | - }; | 51 | | - | 52 | | - for (const decoded of [decodeThreadListItem(listItem), decodeThreadDetail(detail)]) { | 53 | | - expect(decoded.blockedOnThreadWait).toBeUndefined(); | 54 | | - expect(decoded.pendingBackgroundTasks).toBeUndefined(); | 55 | | - } | 56 | | - }); | 57 | | - | 58 | 13 | it("decodes cross-provider delegated task requests and durable results", () => { | 59 | 14 | const request = decodeDelegateTaskInput({ | 60 | 15 | task: "Inspect the workspace and report the result.", | |
|