Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): settle stuck starting runs and offer Stop #14088

Closedmacodev00(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/14088/headopened View on GitHub

Showing 4 changed files with 139 additions and 8 deletions (loading 1).

x
0 of 4 viewed, 4 left
26 additions and 5 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -84,6 +84,7 @@
deriveComposerSendState,
getAntigravitySendBlockReason,
readFileAsDataUrl,
+ canInterruptThreadSession,
resolveComposerInteractionMode,
resolveComposerProviderSelection,
threadShellHasStarted,
@@ -1184,7 +1185,13 @@
-const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryActions(props: {
+/**
+ * Context meter and primary composer controls.
+ *
+ * Forwards interrupt eligibility so Stop is offered while a session is still
+ * starting, not only after the turn is running.
+ */
+function ComposerFooterPrimaryActions(props: {
compact: boolean;
activeContextWindow: ContextWindowSnapshot | null;
reserveContextWindowMeter: boolean;
@@ -1198,6 +1205,7 @@
isComplete: boolean;
} | null;
isRunning: boolean;
+ canInterrupt: boolean;