Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Stop always completes, and an agent that ignores it can be force stopped #27252

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/27252/headmerged by juliusmarminge View on GitHub

Showing 37 changed files with 109 additions and 1 deletion (loading 34).

x
0 of 37 viewed, 37 left
76 additions and 0 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -46,6 +46,7 @@
ScopedThreadRef,
ServerConfig as T3ServerConfig,
UsageLimitsReport,
+ RunId,
} from "@t3tools/contracts";
import {
appendCodexArtifactTemplateUsePrompt,
@@ -156,8 +157,10 @@
import { appAtomRegistry } from "../../state/atom-registry";
import { threadStreamHaptics } from "./threadStreamHaptics";
import { useAtomCommand } from "../../state/use-atom-command";
+import { orchestrationEnvironment } from "../../state/orchestration";
import { useDelayedStatus } from "../../lib/useDelayedStatus";
import type { PendingUserInputDraftAnswer } from "@t3tools/client-runtime/state/pending-user-input";
+import type { RunStopPresentation } from "@t3tools/client-runtime/state/thread-execution";
import type {
PendingApproval,
PendingUserInput,
@@ -339,6 +342,9 @@
​
// Past the composer's 180 ms height animation.
const COMPOSER_HEIGHT_SETTLE_MS = 220;
+const NO_RUN_STOP_ATOM = Atom.make<RunStopPresentation | null>(null).pipe(
+ Atom.withLabel("mobile-thread-run-stop:empty"),
+);
​
// Anchors, the submitted message, follow state and pending scrolls belong to