Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(clients): background work says what it is and which subagent finished #13949

Mergedjuliusmarmingemerged 2 commits intot3code/codex-turn-mapping fromrefs/pull/13949/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 36 additions and 0 deletions (loading 6).

x
0 of 9 viewed, 9 left
14 additions and 0 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -29,6 +29,7 @@
type CodexArtifactTemplate,
} from "@t3tools/client-runtime/codex-artifact-templates";
import type { ThreadUserInputQuestion } from "@t3tools/client-runtime/state/thread-requests";
+import { presentPendingBackgroundWork } from "@t3tools/client-runtime/state/thread-execution";
import { resolveSubagentPillSegment } from "@t3tools/client-runtime/state/thread-subagents";
import {
formatModelSelectionEffort,
@@ -428,6 +429,10 @@
// One floating pill above the composer: it reads the connection phase while
// disconnected, the sync state while messages load, then the working timer
// once the feed is settled.
+ // The shell's roster is the server's post-settlement view of what still runs.
+ const pendingBackgroundWork = presentPendingBackgroundWork(
+ props.selectedThread.pendingBackgroundTasks,
+ );
const floatingStatus = ((): FloatingWorkingStatus | null => {
const connectionStatus = connectionFloatingStatus({
connectionError: props.connectionError,
@@ -461,6 +466,15 @@
if (props.activeWorkStartedAt !== null && contentPresentationKind === "ready") {
return { kind: "working", startedAt: props.activeWorkStartedAt };
+ if (pendingBackgroundWork !== null && contentPresentationKind === "ready") {
+ return {
+ kind: "waiting",
+ label: pendingBackgroundWork.title,
+ accessibilityLabel: `${pendingBackgroundWork.title}: ${pendingBackgroundWork.items