Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): pending requests wait until you stop typing #17637

Mergedmaria-rcksmerged 2 commits intomain fromrefs/pull/17637/headmerged by maria-rcks View on GitHub

Showing 5 changed files with 138 additions and 6 deletions (loading 3).

x
0 of 5 viewed, 5 left
49 additions and 6 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1,4 +1,5 @@
import { formatProviderSkillDisplayName } from "@t3tools/shared/inlineSkills";
+import { useComposerTypingGuard } from "./useComposerTypingGuard";
import { DESKTOP_PASTE_AS_TEXT_EVENT } from "../../lib/desktopPasteAsText";
import { runtimeModeConfig, runtimeModeOptions as runtimeModes } from "./runtimeModeConfig";
import { isLocalEnvironmentDisabled } from "../../localEnvironment";
@@ -1485,6 +1486,7 @@
addTerminalContext: (selection: TerminalContextSelection) => void;
/** Get the current prompt/effort/model state for use in send. */
getSendContext: () => {
+ answeringPendingUserInput: boolean;
prompt: string;
images: ComposerImageAttachment[];
files: ComposerFileAttachment[];
@@ -1737,12 +1739,12 @@
sendDisabledReason: externalSendDisabledReason,
isPreparingWorktree,
environmentUnavailable,
- activePendingApproval,
+ activePendingApproval: incomingPendingApproval,
pendingApprovals,
- pendingUserInputs,
- activePendingProgress,
+ pendingUserInputs: incomingPendingUserInputs,
+ activePendingProgress: incomingPendingProgress,
activePendingResolvedAnswers,
- activePendingIsResponding,
+ activePendingIsResponding: incomingPendingIsResponding,
activePendingDraftAnswers,