Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep send reachable while a turn is running on mobile #4781

MergedAMohamedAakhil(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/4781/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 69 additions and 6 deletions.

x
0 of 3 viewed, 3 left
3 additions and 0 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -407,6 +407,7 @@
isEnvironmentUnavailable: boolean;
hasSendableContent: boolean;
preserveComposerFocusOnPointerDown?: boolean;
+ showSendWhileRunning?: boolean;
onPreviousPendingQuestion: () => void;
onInterrupt: () => void;
onImplementPlanInNewThread: () => void;
@@ -435,6 +436,7 @@
isPreparingWorktree={props.isPreparingWorktree}
hasSendableContent={props.hasSendableContent}
preserveComposerFocusOnPointerDown={props.preserveComposerFocusOnPointerDown ?? false}
+ showSendWhileRunning={props.showSendWhileRunning ?? false}
onPreviousPendingQuestion={props.onPreviousPendingQuestion}
onInterrupt={props.onInterrupt}
onImplementPlanInNewThread={props.onImplementPlanInNewThread}
@@ -3166,6 +3168,7 @@
isPreparingWorktree={isPreparingWorktree}
hasSendableContent={composerSendState.hasSendableContent}
preserveComposerFocusOnPointerDown={isMobileViewport}
+ showSendWhileRunning={isMobileViewport}
onPreviousPendingQuestion={onPreviousActivePendingUserInputQuestion}
onInterrupt={handleInterruptPrimaryAction}
onImplementPlanInNewThread={handleImplementPlanInNewThreadPrimaryAction}
45 additions and 0 deletionsapps/web/src/components/chat/ComposerPrimaryActions.test.tsrenamed toapps/web/src/components/chat/ComposerPrimaryActions.test.tsxRenamed
View file