The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 13:30 UTC
fix(web,mobile): /btw and /side drafts show the send arrow while a turn runs (#36932)
Julius Marminge committed
Nov 14, 2026 at 14:33 UTC
2dd810d0f609415a205af637f9e6983dfb5785b1
3 files changed
+17
-3
apps/mobile/src/features/threads/ThreadComposer.tsx
+7
-1
@@ -30,6 +30,7 @@ import {
30
hasProviderUsageLimits,
31
isUsageLimitsCommand,
32
} from "@t3tools/shared/usageLimits";
33
+import { parseSideChatCommand } from "@t3tools/shared/composerTrigger";
34
import { StackActions, useFocusEffect, useNavigation } from "@react-navigation/native";
35
import type { ReactNode } from "react";
36
import { useEffect, useEffectEvent, useRef, useState, type RefObject } from "react";
@@ -236,6 +237,8 @@ export interface ThreadComposerProps {
237
readonly serverConfig: T3ServerConfig | null;
238
readonly queueCount: number;
239
readonly activeThreadBusy: boolean;
240
+ /** Sending declines a pending approval and redirects the agent, so `/side` is plain text. */
241
+ readonly redirectsApproval: boolean;
242
readonly canStopThread: boolean;
243
readonly environmentId: EnvironmentId;
244
readonly projectCwd: string | null;
@@ -499,7 +502,10 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
502
});
503
const sendPresentation = resolveComposerSendPresentation({
504
editingQueuedMessage: queuedEdit !== null,
502
- running: props.activeThreadBusy,
505
+ // A side-chat command starts a side chat; it never queues or steers the running turn.
506
+ running:
507
+ props.activeThreadBusy &&
508
+ (props.redirectsApproval || parseSideChatCommand(draftMessage) === null),
509
canSteer: props.canSteerActiveTurn,
510
followUpBehavior: props.followUpBehavior,
511
deliveryDeferred:
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+4
@@ -1890,6 +1890,10 @@ function ThreadDetailBody(
1890
serverConfig={props.serverConfig}
1891
queueCount={props.selectedThreadQueueCount}
1892
activeThreadBusy={props.activeThreadBusy}
1893
+ redirectsApproval={
1894
+ props.activePendingApprovals.length > 0 &&
1895
+ props.activePendingUserInput === null
1896
+ }
1897
canStopThread={props.canStopThread}
1898
environmentId={props.environmentId}
1899
projectCwd={props.threadCwd ?? props.projectWorkspaceRoot}
apps/web/src/components/chat/ChatComposer.tsx
+6
-2
@@ -53,7 +53,7 @@ import * as Schema from "effect/Schema";
53
import { formatComposerModelMention } from "@t3tools/client-runtime/composer-model-mentions";
54
import { isPasteAsTextShortcut } from "@t3tools/client-runtime/text-paste";
55
import { scopedThreadKey, scopeThreadRef } from "@t3tools/client-runtime/environment";
56
-import { serializeComposerFileLink } from "@t3tools/shared/composerTrigger";
56
+import { parseSideChatCommand, serializeComposerFileLink } from "@t3tools/shared/composerTrigger";
57
import { type FolderDropTarget, folderDropTarget, resolveDroppedFolderPath } from "./folderDrop";
58
import { splitTransferredFiles } from "./workspaceFileDrop";
59
import { createModelSelection, normalizeModelSlug } from "@t3tools/shared/model";
@@ -3731,7 +3731,11 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
3731
compact={isComposerPrimaryActionsCompact}
3732
canOperateThread={canOperateThread}
3733
pendingAction={pendingPrimaryAction}
3734
- isRunning={phase === "running" || phase === "connecting"}
3734
+ // A side-chat command starts a side chat; it never queues or steers the turn.
3735
+ isRunning={
3736
+ (phase === "running" || phase === "connecting") &&
3737
+ !(props.sideChatAvailable === true && parseSideChatCommand(prompt) !== null)
3738
+ }
3739
canInterrupt={canInterrupt}
3740
runId={activeThread?.runtime?.activeRunId ?? null}
3741
followUpBehavior={followUpBehavior}