@devries-cameron20 / t3code Mirror · read-only / commits / 3445b0b400
Fork 0

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, 22:15 UTC

fix(web): terminal output no longer edits a hidden question draft (#24773)

Julius Marminge committed Nov 11, 2026 at 15:32 UTC 3445b0b400d2a5928bd2c20271856830800dd13a
1 file changed +11 -2
apps/web/src/components/chat/ChatComposer.tsx
+11 -2
@@ -3033,7 +3033,17 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
3033 );
3034 },
3035 addTerminalContext: (selection: TerminalContextSelection) => {
3036 - if (!activeThread || isChoiceOnlyPendingQuestion || isLiteralPendingAnswer) return;
3036 + if (!activeThread) return;
3037 + // Answers are plain text, so a terminal excerpt cannot ride along with one. Writing it
3038 + // to the thread draft instead would hide it until the question closes.
3039 + if (activePendingProgress) {
3040 + toastManager.add({
3041 + type: "info",
3042 + title: "Terminal output can't be added to a question answer.",
3043 + description: "Answer or dismiss the question first, then add it to chat.",
3044 + });
3045 + return;
3046 + }
3047 const snapshot = readComposerSnapshotStable();
3048 const context = {
3049 id: randomUUID(),
@@ -3134,7 +3144,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
3144 focusComposer,
3145 environmentId,
3146 primaryEnvironmentId,
3137 - isChoiceOnlyPendingQuestion,
3147 isLiteralPendingAnswer,
3148 pendingUserInputs.length,
3149 projectSelectionRequired,