Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration): queue follow-ups sent while a thread compacts #20184

Mergedmaria-rcksmerged 4 commits intomain fromrefs/pull/20184/headmerged by maria-rcks View on GitHub

Showing 11 changed files with 67 additions and 2 deletions (loading 8).

x
0 of 11 viewed, 11 left
2 additions and 1 deletionapps/mobile/src/state/use-thread-composer-state.tsModified
View file
@@ -307,7 +307,6 @@
? EMPTY_QUEUE_WORKFLOW_ATOM
: environmentThreadDetails.queueWorkflowAtom(selectedThreadDetailRef),
- const canSteerActiveTurn = queueWorkflow?.canPromoteToSteer === true;
const queuedRunEdit = useQueuedRunEdit(selectedThreadKey);
const composerDraftKey =
selectedThreadKey === null
@@ -394,6 +393,8 @@
selectedThreadRuntime,
selectedThreadVisibleTurnItems,
]);
+ // A compacting turn cannot take steering input, so follow-ups queue meanwhile.
+ const canSteerActiveTurn = queueWorkflow?.canPromoteToSteer === true && !isCompacting;
​
const runlessWorkStartedAt = useMemo(
() =>
37 additions and 1 deletionapps/server/src/orchestration-v2/CommandPolicy.test.tsModified
View file
@@ -1,6 +1,7 @@
import { assert, it } from "@effect/vitest";
import {
CommandId,
+ MessageId,
type OrchestrationV2ProviderCapabilities,
type OrchestrationV2ThreadProjection,
ProviderInstanceId,