Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): provider subagent threads never show a composer #13727

Mergedjuliusmarmingemerged 1 commit intot3code/codex-turn-mapping fromrefs/pull/13727/headmerged by juliusmarminge View on GitHub

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

x
0 of 7 viewed, 7 left
6 additions and 2 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -363,6 +363,8 @@
});
const agentsSegment = resolveSubagentPillSegment(turnSubagents);
const composerEditorRef = useRef<ComposerEditorHandle>(null);
+ // A provider-native subagent shows status instead of a composer.
+ const isProviderSubagent = isProviderNativeSubagentThread(props.selectedThread.source);
// Entering edit mode from the queue sheet should land in a ready composer,
// not require a second tap on a composer already holding the message.
const editingRunId = props.queuedRunEdit?.runId ?? null;
@@ -1042,7 +1044,9 @@
setupWorkingStartedAt={props.setupWorkingStartedAt}
queuedMessages={props.queuedMessages}
dispatchingMessageId={props.dispatchingMessageId}
- onEditPendingMessage={handleEditPendingMessage}
+ // A native subagent has no composer to edit a pending message in;
+ // Cancel on the edit banner would discard it.
+ onEditPendingMessage={isProviderSubagent ? null : handleEditPendingMessage}
contentPresentation={props.contentPresentation}
agentLabel={agentLabel}
threadTitle={props.selectedThread.title}
@@ -1230,7 +1234,7 @@
: undefined
- {isProviderNativeSubagentThread(props.selectedThread.source) ? (
+ {isProviderSubagent ? (
<View
className="self-center px-3 pt-1.5"