Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(chat): surface pending subagent questions on parents #16634

Mergedmaria-rcksmerged 6 commits intomain fromrefs/pull/16634/headmerged by maria-rcks View on GitHub

Showing 7 changed files with 50 additions and 4 deletions (loading 4).

x
0 of 7 viewed, 7 left
23 additions and 1 deletionapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -1,5 +1,5 @@
import { useAtomValue } from "@effect/atom-react";
-import { useThreadReportedModelSelection } from "../../state/entities";
+import { useChildThreadInputs, useThreadReportedModelSelection } from "../../state/entities";
import { UsageLimitRecoveryCard } from "./UsageLimitRecoveryCard";
import { useNavigation } from "@react-navigation/native";
import type { WorktreeSetupCardProps } from "./worktree-setup-card";
@@ -391,6 +391,10 @@
const navigationHeaderHeight = useContext(HeaderHeightContext) || insets.top + 44;
const agentLabel = `${props.selectedThread.modelSelection.instanceId} agent`;
const selectedThreadKey = scopedThreadKey(props.environmentId, props.selectedThread.id);
+ const childThreadInputs = useChildThreadInputs({
+ environmentId: props.environmentId,
+ threadId: props.selectedThread.id,
+ });
const composerError = useAtomValue(threadComposerErrorsAtom)[selectedThreadKey]?.message ?? null;
const queuedCount = useThreadQueuedCount({
environmentId: props.environmentId,
@@ -498,6 +502,24 @@
if (threadSyncLabel !== null) {
return { kind: "syncing", label: threadSyncLabel };
+ const childInput = childThreadInputs[0];
+ if (childInput && contentPresentationKind === "ready") {
+ return {
+ kind: "child-input",
+ label:
+ childThreadInputs.length === 1
+ ? "Subagent needs input"