@devries-cameron20 / t3code Mirror · read-only / commits / 6f6c6c14b7
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 14:30 UTC

refactor(web): drop the unreachable paint-only thread timeline path (#25787)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 26, 2026 at 23:04 UTC 6f6c6c14b76e72d7abd43b8e6ebffff17eadc89e
6 files changed +62 -190
apps/web/src/components/ChatView.logic.test.ts
+4 -6
@@ -45,7 +45,6 @@ import {
45 rememberReadyThreadTimeline,
46 resetHeldThreadTimeline,
47 resolveThreadSwitchTimeline,
48 - threadKeysShareEnvironment,
48 timelineHasEphemeralPreviewUrls,
49 createLocalDispatchSnapshot,
50 deriveCommittedServerUserMessageIds,
@@ -371,19 +370,18 @@ describe("resolveThreadSwitchTimeline", () => {
370 activeThreadKey: "env-1:thread-a",
371 nextEntries: [],
372 }),
374 - ).toEqual({ entries: ["a1", "a2"], displayThreadKey: "env-1:thread-a" });
373 + ).toEqual(["a1", "a2"]);
374 });
375
377 - it("does not hold another environment's timeline across a jump", () => {
378 - expect(threadKeysShareEnvironment("env-1:thread-a", "env-2:thread-b")).toBe(false);
376 + it("does not paint the last-viewed thread for a destination with nothing remembered", () => {
377 + rememberReadyThreadTimeline(held);
378 expect(
379 resolveThreadSwitchTimeline({
380 loading: true,
381 activeThreadKey: "env-2:thread-b",
382 nextEntries: [],
384 - lastReady: held,
383 }),
386 - ).toEqual({ entries: [], displayThreadKey: "env-2:thread-b" });
384 + ).toEqual([]);
385 });
386
387 it("does not remember a timeline that still has handoff blob previews", () => {
apps/web/src/components/ChatView.logic.ts
+4 -42
@@ -46,7 +46,6 @@ import {
46 } from "@t3tools/contracts";
47 import { worktreeSetupAgentStarted } from "@t3tools/client-runtime/worktree-setup";
48 import * as DateTime from "effect/DateTime";
49 -import { parseScopedThreadKey } from "@t3tools/client-runtime/environment";
49 import { resolveAssetUrl } from "@t3tools/client-runtime/state/assets";
50 import {
51 squashAtomCommandFailure,
@@ -346,15 +345,12 @@ export function resolveDraftHeroState(input: {
345 export type HeldThreadTimeline<T extends readonly unknown[]> = {
346 threadKey: string | null;
347 entries: T;
349 - markdownCwd?: string | null;
350 - workspaceRoot?: string | null;
348 };
349
350 const MAX_REMEMBERED_THREAD_TIMELINES = 16;
351
352 let rememberedThreadTimelines = new Map<string, HeldThreadTimeline<readonly unknown[]>>();
353 let rememberedThreadTimelineOrder: string[] = [];
357 -let lastReadyThreadKey: string | null = null;
354
355 function rememberThreadTimelineEntries(held: HeldThreadTimeline<readonly unknown[]>): void {
356 if (held.threadKey === null) {
@@ -371,7 +367,6 @@ function rememberThreadTimelineEntries(held: HeldThreadTimeline<readonly unknown
367 rememberedThreadTimelines.delete(evicted);
368 }
369 }
374 - lastReadyThreadKey = held.threadKey;
370 }
371
372 export function rememberReadyThreadTimeline<T extends readonly unknown[]>(
@@ -392,41 +387,9 @@ export function peekRememberedThreadTimeline<T extends readonly unknown[]>(
387 return (rememberedThreadTimelines.get(threadKey)?.entries as T | undefined) ?? null;
388 }
389
395 -export function peekHeldThreadTimeline<
396 - T extends readonly unknown[],
397 ->(): HeldThreadTimeline<T> | null {
398 - if (lastReadyThreadKey === null) {
399 - return null;
400 - }
401 - const held = rememberedThreadTimelines.get(lastReadyThreadKey);
402 - if (held === undefined || held.entries.length === 0) {
403 - return null;
404 - }
405 - return held as HeldThreadTimeline<T>;
406 -}
407 -
390 export function resetHeldThreadTimeline(): void {
391 rememberedThreadTimelines = new Map();
392 rememberedThreadTimelineOrder = [];
411 - lastReadyThreadKey = null;
412 -}
413 -
414 -export function threadKeysShareEnvironment(left: string | null, right: string | null): boolean {
415 - if (left === null || right === null) {
416 - return false;
417 - }
418 - const leftRef = parseScopedThreadKey(left);
419 - const rightRef = parseScopedThreadKey(right);
420 - return leftRef !== null && rightRef !== null && leftRef.environmentId === rightRef.environmentId;
421 -}
422 -
423 -export function isPaintOnlyThreadTimeline(
424 - displayThreadKey: string | null,
425 - activeThreadKey: string | null,
426 -): boolean {
427 - return (
428 - displayThreadKey !== null && activeThreadKey !== null && displayThreadKey !== activeThreadKey
429 - );
393 }
394
395 export function resolveThreadSwitchTimeline<T extends readonly unknown[]>(input: {
@@ -434,19 +397,18 @@ export function resolveThreadSwitchTimeline<T extends readonly unknown[]>(input:
397 activeThreadKey: string | null;
398 nextEntries: T;
399 rememberedForActive?: T | null;
437 - lastReady?: HeldThreadTimeline<T> | null;
438 -}): { entries: T; displayThreadKey: string | null } {
400 +}): T {
401 if (input.nextEntries.length > 0) {
440 - return { entries: input.nextEntries, displayThreadKey: input.activeThreadKey };
402 + return input.nextEntries;
403 }
404
405 const rememberedForActive =
406 input.rememberedForActive ?? peekRememberedThreadTimeline<T>(input.activeThreadKey);
407 if (input.loading && rememberedForActive !== null && rememberedForActive.length > 0) {
446 - return { entries: rememberedForActive, displayThreadKey: input.activeThreadKey };
408 + return rememberedForActive;
409 }
410
449 - return { entries: input.nextEntries, displayThreadKey: input.activeThreadKey };
411 + return input.nextEntries;
412 }
413
414 export function startNewThreadForProject(
apps/web/src/components/ChatView.tsx
+47 -122
@@ -32,14 +32,7 @@ import { THREAD_FIND_BAR_RESERVED_HEIGHT } from "./chat/ThreadFindBar";
32 import { usageLimitRecoveryBannerItem } from "./chat/UsageLimitRecoveryBanner";
33 import { resolveDraftHeroState } from "./ChatView.logic";
34 import { useQueuedRunEdit } from "./chat/useQueuedRunEdit";
35 -import {
36 - isPaintOnlyThreadTimeline,
37 - peekHeldThreadTimeline,
38 - peekRememberedThreadTimeline,
39 - resolveThreadSwitchTimeline,
40 - recallCheckoutIsRepo,
41 - rememberCheckoutIsRepo,
42 -} from "./ChatView.logic";
35 +import { recallCheckoutIsRepo, rememberCheckoutIsRepo } from "./ChatView.logic";
36 import { useLogicalProjectEnvironments } from "../hooks/useLogicalProjectEnvironments";
37 import { useStableCallback } from "../hooks/useStableCallback";
38 import { useProjectScriptEditing } from "./chat/useProjectScriptEditing";
@@ -74,7 +67,6 @@ import {
67 type ServerProvider,
68 type ScopedThreadRef,
69 type ThreadId,
77 - type RunId,
70 ProviderInteractionMode,
71 resolveIdleCompaction,
72 RuntimeMode,
@@ -405,11 +397,6 @@ type ChatViewProps =
397 draftId: DraftId;
398 };
399
408 -const EMPTY_HELD_TURN_DIFF_SUMMARIES: readonly never[] = [];
409 -const noopHeldTurnDiff = (_turnId: RunId, _filePath?: string) => {};
410 -const noopHeldRevert = (_targetTurnCount: number) => {};
411 -const noopHeldAttachment = (_attachment: ChatFileAttachment) => {};
412 -
400 export default function ChatView(props: ChatViewProps) {
401 const {
402 environmentId,
@@ -1469,17 +1456,7 @@ export default function ChatView(props: ChatViewProps) {
1456 entry.kind === "message" ? [entry.message] : [],
1457 );
1458 const timelineEmpty = timelineEntries.length === 0 && !hasStreamedTimelineRows;
1472 - const displayedTimeline = resolveThreadSwitchTimeline({
1473 - loading: timelineEmpty && threadSyncPhase !== null,
1474 - activeThreadKey,
1475 - nextEntries: timelineEntries,
1476 - rememberedForActive: peekRememberedThreadTimeline<typeof timelineEntries>(activeThreadKey),
1477 - });
1478 - const displayedTimelineKey = displayedTimeline.displayThreadKey ?? routeThreadKey;
1479 - const paintOnlyDisplayedTimeline = isPaintOnlyThreadTimeline(
1480 - displayedTimeline.displayThreadKey,
1481 - activeThreadKey,
1482 - );
1459 + const displayedTimelineKey = activeThreadKey ?? routeThreadKey;
1460 const displayedThreadRef = parseScopedThreadKey(displayedTimelineKey);
1461 const {
1462 worktreeSetup,
@@ -1624,9 +1601,6 @@ export default function ChatView(props: ChatViewProps) {
1601 const activeProjectCwd = activeProject?.workspaceRoot ?? null;
1602 const activeThreadWorktreePath = activeThread?.worktreePath ?? null;
1603 const activeWorkspaceRoot = activeThreadWorktreePath ?? activeProjectCwd ?? undefined;
1627 - const heldPaintContext = paintOnlyDisplayedTimeline
1628 - ? peekHeldThreadTimeline<typeof timelineEntries>()
1629 - : null;
1604 const activeTerminalLaunchContext =
1605 terminalUiLaunchContext?.threadId === activeThreadId ? terminalUiLaunchContext : null;
1606 const liveIsGitRepo = gitStatusQuery.data?.isRepo;
@@ -2590,8 +2564,7 @@ export default function ChatView(props: ChatViewProps) {
2564 const timelineSkills = activeProviderStatus
2565 ? resolveProviderSkillsForCwd(activeProviderStatus, gitCwd)
2566 : EMPTY_PROVIDER_SKILLS;
2593 - const threadFindEnabled =
2594 - isServerThread && serverConfig?.threadFind === true && !paintOnlyDisplayedTimeline;
2567 + const threadFindEnabled = isServerThread && serverConfig?.threadFind === true;
2568 const isThreadFindActive = useThreadFindOpen(activeThreadRef, threadFindEnabled);
2569
2570 useChatShortcuts({
@@ -2669,7 +2642,6 @@ export default function ChatView(props: ChatViewProps) {
2642 serverProjection,
2643 activeThread,
2644 timelineMessages,
2672 - paintOnlyDisplayedTimeline,
2645 phase,
2646 isConnecting,
2647 isSendBusy,
@@ -3249,126 +3221,79 @@ export default function ChatView(props: ChatViewProps) {
3221 activeThreadKey={activeThreadKey}
3222 syncing={threadSyncPhase !== null}
3223 detailLoading={threadDetailLoading}
3252 - readyMarkdownCwd={gitCwd}
3253 - readyWorkspaceRoot={activeWorkspaceRoot ?? null}
3254 - citationRequest={paintOnlyDisplayedTimeline ? null : citationRequest}
3224 + citationRequest={citationRequest}
3225 citationHistory={citationHistory}
3256 - {...(!paintOnlyDisplayedTimeline
3257 - ? {
3258 - onCiteAssistantText: citeAssistantTextStable,
3259 - ...(activeProject ? { onRunShellCommand: runShellCommandStable } : {}),
3260 - }
3261 - : {})}
3262 - isWorking={!paintOnlyDisplayedTimeline && isWorking}
3226 + onCiteAssistantText={citeAssistantTextStable}
3227 + {...(activeProject ? { onRunShellCommand: runShellCommandStable } : {})}
3228 + isWorking={isWorking}
3229 runlessWorkActive={runlessWorkStartedAt !== null}
3264 - activeTurnInProgress={
3265 - !paintOnlyDisplayedTimeline && (isWorking || !latestRunSettled)
3266 - }
3267 - isCompacting={!paintOnlyDisplayedTimeline && isCompacting}
3230 + activeTurnInProgress={isWorking || !latestRunSettled}
3231 + isCompacting={isCompacting}
3232 awaitingUser={
3269 - paintOnlyDisplayedTimeline
3270 - ? null
3271 - : activePendingApproval !== null
3272 - ? "approval"
3273 - : activePendingUserInput !== null ||
3274 - // A secret request has no runtime request; the shell carries it.
3275 - activeThreadShell?.hasPendingUserInput === true
3276 - ? "input"
3277 - : null
3233 + activePendingApproval !== null
3234 + ? "approval"
3235 + : activePendingUserInput !== null ||
3236 + // A secret request has no runtime request; the shell carries it.
3237 + activeThreadShell?.hasPendingUserInput === true
3238 + ? "input"
3239 + : null
3240 }
3241 awaitingRequestId={
3280 - paintOnlyDisplayedTimeline
3281 - ? null
3282 - : (activePendingApproval?.requestId ??
3283 - activePendingUserInput?.requestId ??
3284 - null)
3242 + activePendingApproval?.requestId ?? activePendingUserInput?.requestId ?? null
3243 }
3286 - activeTurnStartedAt={paintOnlyDisplayedTimeline ? null : activeWorkStartedAt}
3287 - worktreeSetup={paintOnlyDisplayedTimeline ? null : worktreeSetup}
3244 + activeTurnStartedAt={activeWorkStartedAt}
3245 + worktreeSetup={worktreeSetup}
3246 onCancelWorktreeSetup={onCancelWorktreeSetupStable}
3289 - {...(paintOnlyDisplayedTimeline
3290 - ? {}
3291 - : {
3292 - retryableWorkspacePreparationRunIds,
3293 - onRetryWorkspacePreparation: onRetryWorkspacePreparationStable,
3294 - })}
3247 + retryableWorkspacePreparationRunIds={retryableWorkspacePreparationRunIds}
3248 + onRetryWorkspacePreparation={onRetryWorkspacePreparationStable}
3249 {...(draftId
3250 ? { onWorktreeSetupWorkLocally: onWorktreeSetupWorkLocallyStable }
3251 : {})}
3252 {...(onOpenWorktreeSetupTerminal ? { onOpenWorktreeSetupTerminal } : {})}
3299 - isPreparingWorktree={!paintOnlyDisplayedTimeline && isPreparingWorktree}
3300 - footer={paintOnlyDisplayedTimeline ? null : timelineFooter}
3253 + isPreparingWorktree={isPreparingWorktree}
3254 + footer={timelineFooter}
3255 listRef={legendListRef}
3302 - runs={paintOnlyDisplayedTimeline ? [] : (serverProjection?.runs ?? [])}
3303 - latestRun={paintOnlyDisplayedTimeline ? null : activeActivityRun}
3304 - announcedRun={
3305 - paintOnlyDisplayedTimeline
3306 - ? null
3307 - : announcedRun(activeActivityRun, serverProjection?.runs ?? [])
3308 - }
3309 - detailBehindShell={
3310 - !paintOnlyDisplayedTimeline &&
3311 - isDetailBehindShell(activeLatestRun, activeThreadShell?.latestRun ?? null)
3312 - }
3313 - runningRunId={paintOnlyDisplayedTimeline ? null : activeRunningTurnId}
3314 - turnDiffSummaries={
3315 - paintOnlyDisplayedTimeline ? EMPTY_HELD_TURN_DIFF_SUMMARIES : turnDiffSummaries
3316 - }
3256 + runs={serverProjection?.runs ?? []}
3257 + latestRun={activeActivityRun}
3258 + announcedRun={announcedRun(activeActivityRun, serverProjection?.runs ?? [])}
3259 + detailBehindShell={isDetailBehindShell(
3260 + activeLatestRun,
3261 + activeThreadShell?.latestRun ?? null,
3262 + )}
3263 + runningRunId={activeRunningTurnId}
3264 + turnDiffSummaries={turnDiffSummaries}
3265 activeThreadEnvironmentId={
3266 displayedThreadRef?.environmentId ?? activeThread.environmentId
3267 }
3268 routeThreadKey={displayedTimelineKey}
3269 displayThreadKey={displayedTimelineKey}
3322 - paintOnly={paintOnlyDisplayedTimeline}
3270 announceTurnStatus={!isProviderSubagent}
3324 - onOpenTurnDiff={
3325 - paintOnlyDisplayedTimeline ? noopHeldTurnDiff : onOpenTurnDiffStable
3326 - }
3271 + onOpenTurnDiff={onOpenTurnDiffStable}
3272 onOpenThread={onOpenRelatedThreadStable}
3328 - parentThreadLink={paintOnlyDisplayedTimeline ? null : parentThreadLink}
3329 - workflowOpening={paintOnlyDisplayedTimeline ? null : workflowOpening}
3330 - onForkFromRun={paintOnlyDisplayedTimeline ? async () => {} : onForkFromRunStable}
3273 + parentThreadLink={parentThreadLink}
3274 + workflowOpening={workflowOpening}
3275 + onForkFromRun={onForkFromRunStable}
3276 onRollbackCheckpoint={onTimelineRollbackCheckpointStable}
3332 - supportsConversationRollback={
3333 - !paintOnlyDisplayedTimeline && supportsConversationRollback
3334 - }
3277 + supportsConversationRollback={supportsConversationRollback}
3278 threadStartCheckpointReady={threadStartCheckpointReady}
3279 availableRevertTurnCounts={availableRevertTurnCounts}
3337 - onRevertToTurnCount={
3338 - paintOnlyDisplayedTimeline ? noopHeldRevert : onRevertTimelineTurnStable
3339 - }
3340 - {...(!paintOnlyDisplayedTimeline
3341 - ? {
3342 - onUseArtifactTemplate: insertArtifactTemplateStable,
3343 - onSendAppMessage: sendAppMessageStable,
3344 - }
3345 - : {})}
3280 + onRevertToTurnCount={onRevertTimelineTurnStable}
3281 + onUseArtifactTemplate={insertArtifactTemplateStable}
3282 + onSendAppMessage={sendAppMessageStable}
3283 isRevertingCheckpoint={isRevertingCheckpoint}
3284 onImageExpand={onExpandTimelineImageStable}
3348 - onFileOpen={
3349 - paintOnlyDisplayedTimeline ? noopHeldAttachment : openFileAttachmentStable
3350 - }
3351 - onFileDownload={
3352 - paintOnlyDisplayedTimeline ? noopHeldAttachment : downloadFileAttachmentStable
3353 - }
3354 - markdownCwd={
3355 - paintOnlyDisplayedTimeline
3356 - ? (heldPaintContext?.markdownCwd ?? undefined)
3357 - : (gitCwd ?? undefined)
3358 - }
3285 + onFileOpen={openFileAttachmentStable}
3286 + onFileDownload={downloadFileAttachmentStable}
3287 + markdownCwd={gitCwd ?? undefined}
3288 resolvedTheme={resolvedTheme}
3289 timestampFormat={timestampFormat}
3361 - workspaceRoot={
3362 - paintOnlyDisplayedTimeline
3363 - ? (heldPaintContext?.workspaceRoot ?? undefined)
3364 - : activeWorkspaceRoot
3365 - }
3290 + workspaceRoot={activeWorkspaceRoot}
3291 skills={timelineSkills}
3367 - anchorMessageId={paintOnlyDisplayedTimeline ? null : timelineAnchorMessageId}
3292 + anchorMessageId={timelineAnchorMessageId}
3293 onAnchorReady={onTimelineAnchorReadyStable}
3294 onAnchorSizeChanged={onTimelineAnchorSizeChangedStable}
3295 contentInsetEndAdjustment={composerTimelineInset}
3371 - liveFollowEnabled={!paintOnlyDisplayedTimeline && timelineLiveFollowEnabled}
3296 + liveFollowEnabled={timelineLiveFollowEnabled}
3297 onIsAtEndChange={onIsAtEndChangeStable}
3298 onContentOverflowChange={setTimelineOverflows}
3299 onToolOutputCollapsedAtEnd={onToolOutputCollapsedAtEndStable}
@@ -3377,7 +3302,7 @@ export default function ChatView(props: ChatViewProps) {
3302 hideEmptyPlaceholder={isDraftHeroState || threadDetailLoading}
3303 emptyPlaceholderInset={composerReservedHeight}
3304 topFadeEnabled={!hasTimelineTopBanner}
3380 - {...(paintOnlyDisplayedTimeline || threadHistoryControls === undefined
3305 + {...(threadHistoryControls === undefined
3306 ? {}
3307 : { historyControls: threadHistoryControls })}
3308 />
apps/web/src/components/chat/MessagesTimeline.tsx
+2 -4
@@ -231,7 +231,6 @@ interface MessagesTimelineProps {
231 turnDiffSummaries: ReadonlyArray<TurnDiffSummary>;
232 routeThreadKey: string;
233 displayThreadKey?: string;
234 - paintOnly?: boolean;
234 /** Off where another region already speaks the thread's status, like a subagent's bar. */
235 announceTurnStatus?: boolean;
236 onOpenTurnDiff?: (runId: RunId, filePath?: string) => void;
@@ -339,7 +338,6 @@ const ConversationTimeline = memo(function ConversationTimeline({
338 turnDiffSummaries,
339 routeThreadKey,
340 displayThreadKey,
342 - paintOnly = false,
341 announceTurnStatus = true,
342 onOpenTurnDiff,
343 onOpenThread,
@@ -906,7 +904,7 @@ const ConversationTimeline = memo(function ConversationTimeline({
904 if (restoringThreadPosition || state?.data !== rows) return;
905 const isAtEnd = resolveTimelineIsAtEnd(state);
906 const position = state.data.length ? resolveWorkGroupScrollAnchor(state) : undefined;
909 - if (position && isAtEnd !== undefined && !paintOnly) {
907 + if (position && isAtEnd !== undefined) {
908 const index = state.indexByKey(position.rowId);
909 const row = index === undefined ? undefined : state.elementAtIndex(index);
910 const element = listRef.current?.getScrollableNode();
@@ -1075,7 +1073,7 @@ const ConversationTimeline = memo(function ConversationTimeline({
1073 // starts from a baseline instead of a fresh, silent region.
1074 const activityAnnouncer = (
1075 <ThreadActivityAnnouncer
1078 - threadKey={paintOnly || !announceTurnStatus ? null : listIdentityKey}
1076 + threadKey={announceTurnStatus ? listIdentityKey : null}
1077 status={awaitingUser ?? (isWorking ? "working" : "idle")}
1078 requestId={awaitingRequestId}
1079 runId={announcedRun?.runId ?? null}
apps/web/src/components/chat/ThreadTimeline.tsx
+4 -13
@@ -23,8 +23,6 @@ export function ThreadTimeline({
23 activeThreadKey,
24 syncing,
25 detailLoading,
26 - readyMarkdownCwd,
27 - readyWorkspaceRoot,
26 ...timelineProps
27 }: Omit<ComponentProps<typeof MessagesTimeline>, "timelineEntries"> & {
28 /** Null until the thread's detail may load; see resolveThreadDetailRef. */
@@ -35,8 +33,6 @@ export function ThreadTimeline({
33 activeThreadKey: string | null;
34 syncing: boolean;
35 detailLoading: boolean;
38 - readyMarkdownCwd: string | null;
39 - readyWorkspaceRoot: string | null;
36 }) {
37 const visibleTurnItems = useThreadVisibleTurnItems(threadDetailRef);
38 const serverEntries = useIncrementalTimelineEntries(activeThreadKey, {
@@ -44,7 +40,7 @@ export function ThreadTimeline({
40 visibleTurnItems,
41 });
42 const entries = draftEntries ?? serverEntries;
47 - const displayed = resolveThreadSwitchTimeline({
43 + const displayedEntries = resolveThreadSwitchTimeline({
44 loading: entries.length === 0 && syncing,
45 activeThreadKey,
46 nextEntries: entries,
@@ -54,12 +50,7 @@ export function ThreadTimeline({
50 if (detailLoading || entries.length === 0 || timelineHasEphemeralPreviewUrls(entries)) {
51 return;
52 }
57 - rememberReadyThreadTimeline({
58 - threadKey: activeThreadKey,
59 - entries,
60 - markdownCwd: readyMarkdownCwd,
61 - workspaceRoot: readyWorkspaceRoot,
62 - });
63 - }, [activeThreadKey, detailLoading, entries, readyMarkdownCwd, readyWorkspaceRoot]);
64 - return <MessagesTimeline {...timelineProps} timelineEntries={displayed.entries} />;
53 + rememberReadyThreadTimeline({ threadKey: activeThreadKey, entries });
54 + }, [activeThreadKey, detailLoading, entries]);
55 + return <MessagesTimeline {...timelineProps} timelineEntries={displayedEntries} />;
56 }
apps/web/src/components/chat/useTimelineRewind.ts
+1 -3
@@ -41,7 +41,6 @@ interface TimelineRewindInput {
41 readonly serverProjection: ThreadStructure | null;
42 readonly activeThread: EnvironmentThreadShell | undefined;
43 readonly timelineMessages: ReadonlyArray<ChatMessage>;
44 - readonly paintOnlyDisplayedTimeline: boolean;
44 readonly phase: SessionPhase;
45 readonly isConnecting: boolean;
46 readonly isSendBusy: boolean;
@@ -68,7 +67,6 @@ export function useTimelineRewind(input: TimelineRewindInput) {
67 serverProjection,
68 activeThread,
69 timelineMessages,
71 - paintOnlyDisplayedTimeline,
70 phase,
71 isConnecting,
72 isSendBusy,
@@ -270,7 +268,7 @@ export function useTimelineRewind(input: TimelineRewindInput) {
268 readonly checkpointId: string;
269 readonly scopeId: string;
270 }) => {
273 - if (!paintOnlyDisplayedTimeline) void onRollbackCheckpoint(input);
271 + void onRollbackCheckpoint(input);
272 };
273 const onTimelineRollbackCheckpointStable = useStableCallback(onTimelineRollbackCheckpoint);
274 const onRevertTimelineTurn = (targetTurnCount: number, messageId: MessageId) => {