Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(remote): stop button gives immediate feedback and prevents stuck thinking on remote server #8619

ClosedImBIOS(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/8619/headopened View on GitHub

Showing 20 changed files with 14 additions and 3 deletions (loading 17).

x
0 of 20 viewed, 20 left
4 additions and 1 deletionapps/mobile/src/features/threads/PendingUserInputCard.tsxModified
View file
@@ -36,6 +36,8 @@
readonly onToggleCollapsed: () => void;
/** Renders a stop control on the collapsed bar, which replaces the composer. */
readonly onStopThread?: () => void;
+ /** Optimistic Stop feedback while the interrupt settles (#8618). */
+ readonly isStoppingThread?: boolean;
/**
* 0 collapsed → 1 expanded. Slides the iOS overlay card down behind the
* collapsed bar (inside a clipping window) on the UI thread; the host
@@ -187,10 +189,11 @@
</Pressable>
{props.onStopThread ? (
<ControlPill
- accessibilityLabel="Stop"
+ accessibilityLabel={props.isStoppingThread ? "Stopping" : "Stop"}
icon="stop.fill"
variant="danger"
className="h-9 w-9"
+ disabled={props.isStoppingThread}
onPress={props.onStopThread}
) : null}
6 additions and 2 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -124,6 +124,8 @@
readonly onNativePasteImages: (uris: ReadonlyArray<string>) => Promise<void>;
readonly onRemoveDraftImage: (imageId: string) => void;