Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): recover remote delegated launches after source restart #30249

OpenLenoridev(GitHub profile, opens in a new tab)wants to merge 48 commits intomain fromrefs/pull/30249/headopened View on GitHub

Showing 46 changed files with 50 additions and 5 deletions (loading 43).

x
0 of 46 viewed, 46 left
37 additions and 0 deletionsapps/mobile/src/features/threads/subagent-card-presentation.test.tsModified
View file
@@ -1,6 +1,7 @@
import * as DateTime from "effect/DateTime";
import { describe, expect, it } from "vite-plus/test";
import { subagentCardElapsed } from "./subagent-card-presentation";
+import { resolveSubagentRowPresentation, subagentThreadTarget } from "./threadAgentsPresentation";
​
describe("subagent card", () => {
const start = DateTime.makeUnsafe("2026-09-21T12:00:00Z");
@@ -8,6 +9,42 @@
const later = DateTime.makeUnsafe("2026-09-21T12:02:00Z");
const done = { status: "completed" as const, startedAt: start, completedAt: end };
​
+ it("keeps a pending remote launch visible without opening a nonexistent thread", () => {
+ const pending = {
+ title: null,
+ prompt: "Audit the timestamps",
+ status: "running" as const,
+ result: null,
+ childThreadId: null,
+ remoteChild: { environmentId: "environment-box" as never, label: "Box" },
+ };
+ expect(resolveSubagentRowPresentation(pending, true)).toMatchObject({
+ runsOn: "Box",
+ statusLabel: "Launching",
+ canOpenThread: false,
+ });
+ expect(
+ subagentThreadTarget(
+ pending,
+ "environment-here" as never,