Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions apps/web/src/components/ChatView.browser-harness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import {
import { closeConnectComputerDialog } from "./settings/connections/JoinComputerDialog";
import { closeProjectSetupDialog } from "./ProjectSetupDialog";
import { closeThreadMoveDialog } from "./ThreadMoveDialog";
import { closeMoveThreadsDialog } from "./MoveThreadsDialog";
import { useComposerDraftStore, DraftId } from "../composerDraftStore";
import { connectEnvironmentBrowserHost } from "./browser/previewAutomationHost";
import { closeThreadBrowser, useBrowserPageWatchers } from "./browser/BrowserHostLayer";
Expand Down Expand Up @@ -884,6 +885,14 @@ function toShellThread(thread: OrchestrationReadModel["threads"][number]) {
doneOverride: thread.doneOverride,
lastSeenAt: thread.lastSeenAt,
session: thread.session,
// A child thread's family, as the server's shell stream carries it: the
// app knows a thread's parent from the first snapshot, not only once a
// later detail stream reports it.
parentThreadId: thread.parentThreadId,
parentTurnId: thread.parentTurnId,
attachedToParent: thread.attachedToParent,
handedBackAt: thread.handedBackAt,
handedBackTurnId: thread.handedBackTurnId,
latestUserMessageAt:
thread.messages.findLast((message) => message.role === "user")?.createdAt ?? null,
hasPendingApprovals: false,
Expand Down Expand Up @@ -3431,6 +3440,7 @@ export function registerChatViewSuiteHooks(): void {
__resetComputerLinksForTests();
closeConnectComputerDialog();
closeThreadMoveDialog();
closeMoveThreadsDialog();
__resetThreadMovesForTests();
__resetMoveBatchProgressForTests();
closeProjectSetupDialog();
Expand Down
Loading