Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): open a delegated child's approval on the environment it runs in #28592

Mergedrobrab2000(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/28592/headmerged by maria-rcks View on GitHub

Showing 3 changed files with 17 additions and 8 deletions.

x
0 of 3 viewed, 3 left
1 addition and 1 deletionapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -731,7 +731,7 @@
accessibilityLabel: `Open ${childInput.hasPendingApprovals ? "approval" : "question"} from ${childInput.title}`,
onPress: () => {
Keyboard.dismiss();
- openLinkedThread({ environmentId: props.environmentId, threadId: childInput.id });
+ openLinkedThread({ environmentId: childInput.environmentId, threadId: childInput.id });
5 additions and 3 deletionsapps/web/src/components/chat/ThreadActivityBanners.tsxModified
View file
@@ -1,4 +1,5 @@
import type {
+ EnvironmentId,
OrchestrationV2PendingBackgroundTask,
OrchestrationV2ProviderGoal,
ThreadId,
@@ -34,7 +35,8 @@
export function childInputNowItem(input: {
readonly childThreadInputs: ReadonlyArray<EnvironmentThreadShell>;
readonly parentAwaitingUser: boolean;
- readonly onOpenThread: (threadId: ThreadId) => void;
+ // A task delegated to a linked environment lives there, not where the parent runs.
+ readonly onOpenThread: (threadId: ThreadId, environmentId: EnvironmentId) => void;
}): (ThreadNowItem & { readonly waitingLabel: string }) | null {
const { childThreadInputs, onOpenThread } = input;
const first = childThreadInputs[0];