GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Rework message metadata, timestamps, and tool work log rows by juliusmarminge · Pull Request #3022 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Jun 9, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Ports the messages-timeline part of #2451 by @sandersonstabo, rebased onto current main.

Message metadata

  • User bubble: timestamp + copy/revert move out of the bubble into a hover-revealed metadata row beneath it; ghost button styling
  • Assistant messages: only the terminal message of a turn shows metadata (ghost copy + timestamp); the live ticking timer is replaced by a static relative timestamp once complete
  • Timestamps are chat-style relative ("12s ago" … "a day ago") with the absolute time in a tooltip; tabular-nums everywhere a timer counts
  • The completion divider reads "Worked for 3m 11s" as plain text instead of the pill

Tool work log

  • Work-log card gets the textarea-style surface, a sentence-case "N tool calls" header, and chevron expand/collapse controls
  • Collapsed view shows only the most recent entry (MAX_VISIBLE_WORK_LOG_ENTRIES 6 → 1) — per Theo's "tool calls should be uninteresting" feedback on Polish chat UI and provider prompts #2451
  • Empty/neutral entries are hidden; rows get success/failure/neutral status indicators with tooltips, derived from provider lifecycle status plus error-shaped output heuristics
  • Rows with details expand inline to show the full command/output
  • Deviation from the original PR: the success check is muted rather than primary blue (Theo: "the bright blue check makes me feel like I need to click")

Not ported (per discussion in #2451): the LLM-generated tool-call summaries and the backend turn-lifecycle changes.

Part of splitting #2451 into reviewable frontend-only pieces.

🤖 Generated with Claude Code


Note

Medium Risk
Large UI-only change to core chat rendering and timeline row derivation; behavior shifts (all-turn work logs, fold state, metadata timing) are covered by tests but regressions in scroll/fold edge cases are possible.

Overview
Settled turns in the chat timeline are collapsed behind a clickable Worked for … row (or You stopped after … when interrupted); expanding reveals mid-turn assistant commentary and tool/work entries while the final assistant reply stays visible. MessagesTimeline now takes latestTurn and local expandedTurnIds instead of completion-divider props; fold toggles temporarily disable maintainScrollAtEnd so the list does not jump.

Message chrome drops the completion pill and live elapsed timer. Only the terminal assistant message per turn shows hover metadata (ghost copy + short timestamp with a long tooltip via formatChatTimestampTooltip). User bubbles move timestamp/copy/revert to a row below with ghost buttons.

Work log is reworked: deriveWorkLogEntries returns all turns with turnId, toolLifecycleStatus, and sourceActivityKind; new helpers classify rows as success/failure/neutral (lifecycle + output heuristics). The UI shows a compact card (default one visible tool row), hides neutral rows, adds expand-for-detail, and status icons. ChatView no longer computes completionSummary / hasToolActivityForTurn.

Reviewed by Cursor Bugbot for commit 52b9cf1. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Rework chat timeline to fold settled turns and add tool call success/failure indicators

  • Settled turns now collapse their work entries and commentary behind a fold row labeled with elapsed duration (e.g. 'Worked for 30s') or 'You stopped after Xs' for interrupted turns; clicking expands/collapses the turn.
  • deriveWorkLogEntries in session-logic.ts now returns entries across all turns, each tagged with turnId, sourceActivityKind, and toolLifecycleStatus; the latestTurnId filter and completion divider logic are removed.
  • New exports workEntryIndicatesToolFailure, workEntryIndicatesToolSuccess, and workEntryIndicatesToolNeutralStatus classify each work row; SimpleWorkEntryRow uses these to show ✓/✗/− status icons and supports expanding to show full command/detail text.
  • Assistant meta (timestamp + copy button) now appears only on the terminal message of a settled turn, using a short timestamp with a full tooltip; the live elapsed duration and completion divider are removed.
  • WorkGroupSection hides neutral-status tool entries by default and shows a count header with expand/collapse; MAX_VISIBLE_WORK_LOG_ENTRIES drops from 6 to 1.
  • Behavioral Change: callers of MessagesTimeline must replace activeTurnId, completionDividerBeforeEntryId, and completionSummary props with latestTurn.

Macroscope summarized 52b9cf1.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jamesx0416 reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@coderabbitai

coderabbitai Bot commented Jun 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: bf6a3784-d9fc-43c7-838e-0eb2a557ffb8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ui/messages-timeline

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL 500-999 changed lines (additions + deletions). labels Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

🚀 Expo continuous deployment is ready!

  • Project → t3-code
  • Platforms → android, ios
  • Scheme → t3code-preview
  🤖 Android 🍎 iOS
Fingerprint ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e 313e506a7f15a9c3f15b01d787d68a12382432bf
Build Details Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
App version: 0.1.0
Git commit: b5d85013496f9e741ec74c4be0f7900d01b46908
Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
App version: 0.1.0
Git commit: f9cd0418dfb3fe6cecf3026aef4529f4d4cb5cf8
Update Details Update Permalink
DetailsBranch: pr-3022
Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
Git commit: b5d85013496f9e741ec74c4be0f7900d01b46908
Update Permalink
DetailsBranch: pr-3022
Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
Git commit: b5d85013496f9e741ec74c4be0f7900d01b46908
Update QR
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Jun 9, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Jun 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

Substantial UI refactor with unresolved medium-severity review comments identifying bugs where tool status indicators may incorrectly show completed state for in-flight or interrupted tools. These correctness issues warrant human review.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge force-pushed the ui/messages-timeline branch from 0d5617b to 245fb15 Compare June 9, 2026 23:40
@macroscopeapp
macroscopeapp Bot dismissed their stale review June 9, 2026 23:40

Dismissing prior approval to re-evaluate 245fb15

cursor[bot]
cursor Bot reviewed Jun 9, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Autofix Details

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Neutral work rows never render
    • WorkGroupSection now reads TimelineRowActivityCtx and only filters out neutral entries while the turn is in progress; once the turn settles, neutral entries are kept and rendered by SimpleWorkEntryRow with the success indicator.
  • ✅ Fixed: Stopped tools treated as hidden
    • Added 'stopped' to the failure lifecycle statuses in workEntryIndicatesToolFailure so stopped tools are no longer classified as neutral and are always visible in the timeline.

Create PR

Or push these changes by commenting:

@cursor push 32d98dbf3d
Preview (32d98dbf3d)
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -591,10 +591,13 @@
   groupedEntries: Extract<MessagesTimelineRow, { kind: "work" }>["groupedEntries"];
 }) {
   const { workspaceRoot } = use(TimelineRowCtx);
+  const activity = use(TimelineRowActivityCtx);
   const [isExpanded, setIsExpanded] = useState(false);
+  const turnSettled = !activity.activeTurnInProgress;
   const nonEmptyEntries = useMemo(
-    () => groupedEntries.filter((entry) => !workEntryIndicatesToolNeutralStatus(entry)),
-    [groupedEntries],
+    () =>
+      groupedEntries.filter((entry) => turnSettled || !workEntryIndicatesToolNeutralStatus(entry)),
+    [groupedEntries, turnSettled],
   );
   const hasOverflow = nonEmptyEntries.length > MAX_VISIBLE_WORK_LOG_ENTRIES;
   const visibleEntries =

diff --git a/apps/web/src/session-logic.ts b/apps/web/src/session-logic.ts
--- a/apps/web/src/session-logic.ts
+++ b/apps/web/src/session-logic.ts
@@ -202,7 +202,7 @@
     return true;
   }
   const ls = entry.toolLifecycleStatus;
-  if (ls === "failed" || ls === "declined") {
+  if (ls === "failed" || ls === "declined" || ls === "stopped") {
     return true;
   }
   if (!workLogEntryIsToolLike(entry)) {
@@ -240,9 +240,6 @@
   if (ls === "inProgress") {
     return false;
   }
-  if (ls === "stopped") {
-    return false;
-  }
   return true;
 }

You can send follow-ups to the cloud agent here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/MessagesTimeline.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/session-logic.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge mentioned this pull request Jun 10, 2026
Expandable File Change and Command activity boxes #3005
Closed
@juliusmarminge
juliusmarminge force-pushed the ui/messages-timeline branch from 245fb15 to ee8a5c5 Compare June 10, 2026 08:35
cursor[bot]
cursor Bot reviewed Jun 10, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: User messages lost markdown rendering
    • Restored ChatMarkdown rendering with markdownCwd in all UserMessageBody code paths (default, review comment text, terminal context inline segments, and review comment card) that were accidentally replaced with SkillInlineText during the layout refactor.

Create PR

Or push these changes by commenting:

@cursor push d14ba348c6
Preview (d14ba348c6)
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -6,6 +6,7 @@
 } from "@t3tools/contracts";
 import {
   createContext,
+  Fragment,
   memo,
   use,
   useCallback,
@@ -83,7 +84,6 @@
   formatInlineTerminalContextLabel,
   textContainsInlineTerminalContextLabels,
 } from "./userMessageTerminalContexts";
-import { SkillInlineText } from "./SkillInlineText";
 import { formatWorkspaceRelativePath } from "../../filePathDisplay";
 import {
   buildReviewCommentRenderablePatch,
@@ -394,6 +394,7 @@
           text={displayedUserMessage.visibleText}
           terminalContexts={terminalContexts}
           skills={ctx.skills}
+          markdownCwd={ctx.markdownCwd}
         />
       </div>
       <div className="flex w-full max-w-[80%] items-center justify-end pe-1 text-xs tabular-nums opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100">
@@ -784,6 +785,7 @@
   text: string;
   terminalContexts: ParsedTerminalContextEntry[];
   skills: ReadonlyArray<Pick<ServerProviderSkill, "name" | "displayName">>;
+  markdownCwd: string | undefined;
   footer?: ReactNode;
 }) {
   const [expanded, setExpanded] = useState(false);
@@ -813,6 +815,7 @@
             text={props.text}
             terminalContexts={props.terminalContexts}
             skills={props.skills}
+            markdownCwd={props.markdownCwd}
           />
         </div>
       ) : null}
@@ -850,7 +853,34 @@
   text: string;
   terminalContexts: ParsedTerminalContextEntry[];
   skills: ReadonlyArray<Pick<ServerProviderSkill, "name" | "displayName">>;
+  markdownCwd: string | undefined;
 }) {
+  const renderInlineMarkdownSegment = (text: string, key: string) => {
+    const leadingWhitespace = /^\s+/.exec(text)?.[0] ?? "";
+    const textWithoutLeadingWhitespace = text.slice(leadingWhitespace.length);
+    const trailingWhitespace = /\s+$/.exec(textWithoutLeadingWhitespace)?.[0] ?? "";
+    const content = textWithoutLeadingWhitespace.slice(
+      0,
+      textWithoutLeadingWhitespace.length - trailingWhitespace.length,
+    );
+
+    return (
+      <Fragment key={key}>
+        {leadingWhitespace ? <span aria-hidden="true">{leadingWhitespace}</span> : null}
+        {content ? (
+          <ChatMarkdown
+            text={content}
+            cwd={props.markdownCwd}
+            skills={props.skills}
+            className="text-foreground"
+            lineBreaks
+          />
+        ) : null}
+        {trailingWhitespace ? <span aria-hidden="true">{trailingWhitespace}</span> : null}
+      </Fragment>
+    );
+  };
+
   const reviewCommentSegments = parseReviewCommentMessageSegments(props.text);
   if (reviewCommentSegments.some((segment) => segment.kind === "review-comment")) {
     return (
@@ -858,8 +888,14 @@
         {reviewCommentSegments.map((segment) =>
           segment.kind === "text" ? (
             segment.text.trim().length > 0 ? (
-              <div key={segment.id} className="whitespace-pre-wrap wrap-break-word">
-                <SkillInlineText text={segment.text.trim()} skills={props.skills} />
+              <div key={segment.id} className="wrap-break-word">
+                <ChatMarkdown
+                  text={segment.text.trim()}
+                  cwd={props.markdownCwd}
+                  skills={props.skills}
+                  className="text-foreground"
+                  lineBreaks
+                />
               </div>
             ) : null
           ) : (
@@ -890,9 +926,10 @@
         }
         if (matchIndex > cursor) {
           inlineNodes.push(
-            <span key={`user-terminal-context-inline-before:${context.header}:${cursor}`}>
-              <SkillInlineText text={props.text.slice(cursor, matchIndex)} skills={props.skills} />
-            </span>,
+            renderInlineMarkdownSegment(
+              props.text.slice(cursor, matchIndex),
+              `user-terminal-context-inline-before:${context.header}:${cursor}`,
+            ),
           );
         }
         inlineNodes.push(
@@ -907,9 +944,10 @@
       if (inlineNodes.length > 0) {
         if (cursor < props.text.length) {
           inlineNodes.push(
-            <span key={`user-message-terminal-context-inline-rest:${cursor}`}>
-              <SkillInlineText text={props.text.slice(cursor)} skills={props.skills} />
-            </span>,
+            renderInlineMarkdownSegment(
+              props.text.slice(cursor),
+              `user-message-terminal-context-inline-rest:${cursor}`,
+            ),
           );
         }
 
@@ -937,9 +975,14 @@
 
     if (props.text.length > 0) {
       inlineNodes.push(
-        <span key="user-message-terminal-context-inline-text">
-          <SkillInlineText text={props.text} skills={props.skills} />
-        </span>,
+        <ChatMarkdown
+          key="user-message-terminal-context-inline-text"
+          text={props.text}
+          cwd={props.markdownCwd}
+          skills={props.skills}
+          className="text-foreground"
+          lineBreaks
+        />,
       );
     } else if (inlinePrefix.length === 0) {
       return null;
@@ -957,9 +1000,13 @@
   }
 
   return (
-    <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">
-      <SkillInlineText text={props.text} skills={props.skills} />
-    </div>
+    <ChatMarkdown
+      text={props.text}
+      cwd={props.markdownCwd}
+      skills={props.skills}
+      className="text-foreground"
+      lineBreaks
+    />
   );
 });
 
@@ -981,8 +1028,14 @@
         </div>
       </div>
       {comment.text.length > 0 && (
-        <div className="whitespace-pre-wrap wrap-break-word text-sm">
-          <SkillInlineText text={comment.text} skills={ctx.skills} />
+        <div className="wrap-break-word text-sm">
+          <ChatMarkdown
+            text={comment.text}
+            cwd={ctx.markdownCwd}
+            skills={ctx.skills}
+            className="text-foreground"
+            lineBreaks
+          />
         </div>
       )}
       {renderablePatch?.kind === "files" &&

You can send follow-ups to the cloud agent here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/MessagesTimeline.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge and others added 2 commits June 10, 2026 12:27
@juliusmarminge @codex
feat(web): rework message metadata, timestamps, and tool work log rows
118f577
Ported from #2451.

Co-authored-by: ss <[email protected]>

Co-Authored-By: Claude Opus 4.8 <[email protected]>

Co-authored-by: codex <[email protected]>
@juliusmarminge @claude
fix(web): restore ChatMarkdown rendering for user message bodies
4b1a774
User prompts were rendering markdown literally after the switch to
SkillInlineText. Restore the ChatMarkdown-based rendering (with
markdownCwd threading) from main and re-add the markdown/file-link
browser tests.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the ui/messages-timeline branch from ee8a5c5 to 4b1a774 Compare June 10, 2026 19:31
cursor[bot]
cursor Bot reviewed Jun 10, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Changed files shown twice
    • Restored the previewIsChangedFiles guard (true when no command/detail exists) so the chip list is suppressed when the preview line already displays the changed file paths.

Create PR

Or push these changes by commenting:

@cursor push 8eda89eafa
Preview (8eda89eafa)
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -1246,6 +1246,7 @@
   const expandedBody = buildToolCallExpandedBody(workEntry);
   const canExpand = expandedBody !== null;
   const hasChangedFiles = (workEntry.changedFiles?.length ?? 0) > 0;
+  const previewIsChangedFiles = hasChangedFiles && !workEntry.command && !workEntry.detail;
   const showFailedIndicator = workEntryIndicatesToolFailure(workEntry);
   const showDestructiveRowStyle =
     showFailedIndicator &&
@@ -1430,7 +1431,7 @@
           </pre>
         </div>
       ) : null}
-      {hasChangedFiles && (
+      {hasChangedFiles && !previewIsChangedFiles && (
         <div
           className="mt-1 flex flex-wrap gap-1"
           onClick={stopRowToggle}

You can send follow-ups to the cloud agent here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/MessagesTimeline.tsx
className="mt-1 flex flex-wrap gap-1"
onClick={stopRowToggle}
onPointerDown={stopRowToggle}
>

@cursor cursor Bot Jun 10, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed files shown twice

Low Severity

The work log row again renders the changed-files chip list whenever hasChangedFiles is true, but the guard that skipped chips when the preview already came from changedFiles was removed. File-only tool rows now show the same path in the summary line and again as chips below.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4b1a774. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge @claude
feat(web): fold settled turn work behind a Worked-for collapsible
c42975f
Codex-style turn folding in the chat timeline, derived entirely from
existing client-side data (no backend changes):

- Settled turns collapse their commentary messages and tool work log
  behind a 'Worked for Xs' row anchored where the turn's work begins;
  the terminal assistant message stays visible below the fold. Clicking
  the row toggles the hidden history.
- The active turn is never folded — live commentary and collapsed tool
  groups render exactly as before, with the working timer still at the
  bottom.
- An interrupted latest turn folds with 'You stopped after Xs' (state
  comes from latestTurn, the only turn whose interruption survives in
  client data). Pressing stop leaves that turn expanded so the user
  keeps their place; the next turn or a reload folds it.
- The completion divider ('Worked for ...' between hairlines) is
  replaced by the fold row; deriveCompletionDividerBeforeEntryId,
  completionSummary plumbing, and hasToolActivityForTurn are removed.
- Work log entries now carry turnId (from the underlying activity) so
  tool activity can be attributed to a turn's fold.
- Commentary (non-terminal assistant) rows lose the reserved metadata
  spacing.

Folding concept ported from PR #2962 (stale, full-stack, Codex-specific
assistantPhase plumbing) reimplemented web-only per discussion.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions github-actions Bot added size:XXL 1,000+ changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Jun 10, 2026
cursor[bot]
cursor Bot reviewed Jun 10, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Autofix Details

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Missing lifecycle shows success early
    • Added a guard in workEntryIndicatesToolSuccess so that when toolLifecycleStatus is undefined, the function returns false instead of falling through to return true.
  • ✅ Fixed: Settled neutrals show completed check
    • Removed the (turnSettled && workEntryIndicatesToolNeutralStatus(workEntry)) clause from showSuccessIndicator so neutral entries (including inProgress and stopped) are no longer promoted to the success checkmark when the turn settles.

Create PR

Or push these changes by commenting:

@cursor push 8e4f101ceb
Preview (8e4f101ceb)
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -1322,9 +1322,7 @@
       : "font-medium text-foreground";
   const turnSettled = !activity.activeTurnInProgress;
   const showNeutralIndicator = !turnSettled && workEntryIndicatesToolNeutralStatus(workEntry);
-  const showSuccessIndicator =
-    workEntryIndicatesToolSuccess(workEntry) ||
-    (turnSettled && workEntryIndicatesToolNeutralStatus(workEntry));
+  const showSuccessIndicator = workEntryIndicatesToolSuccess(workEntry);
   const rowToggleProps = canExpand
     ? {
         role: "button" as const,

diff --git a/apps/web/src/session-logic.test.ts b/apps/web/src/session-logic.test.ts
--- a/apps/web/src/session-logic.test.ts
+++ b/apps/web/src/session-logic.test.ts
@@ -1466,7 +1466,6 @@
       },
     });
   });
-
 });
 
 describe("deriveWorkLogEntries context window handling", () => {

diff --git a/apps/web/src/session-logic.ts b/apps/web/src/session-logic.ts
--- a/apps/web/src/session-logic.ts
+++ b/apps/web/src/session-logic.ts
@@ -235,6 +235,9 @@
     return false;
   }
   const ls = entry.toolLifecycleStatus;
+  if (!ls) {
+    return false;
+  }
   if (ls === "failed" || ls === "declined") {
     return false;
   }

You can send follow-ups to the cloud agent here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/session-logic.ts
if (ls === "stopped") {
return false;
}
return true;

@cursor cursor Bot Jun 10, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing lifecycle shows success early

Medium Severity

workEntryIndicatesToolSuccess treats tool-like rows with no toolLifecycleStatus as successful, and the work-log row renders the muted “Completed” check whenever that helper is true. In-flight tool.updated rows often omit status, so users can see a completed indicator while the turn is still running and the tool has not finished.

Additional Locations (1)
  • apps/web/src/components/chat/MessagesTimeline.tsx#L1324-L1327
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c42975f. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/chat/MessagesTimeline.tsx
const showNeutralIndicator = !turnSettled && workEntryIndicatesToolNeutralStatus(workEntry);
const showSuccessIndicator =
workEntryIndicatesToolSuccess(workEntry) ||
(turnSettled && workEntryIndicatesToolNeutralStatus(workEntry));

@cursor cursor Bot Jun 10, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Settled neutrals show completed check

Medium Severity

When activeTurnInProgress is false, showSuccessIndicator also turns on for any row that workEntryIndicatesToolNeutralStatus still classifies as neutral. That includes inProgress and stopped lifecycle states, so interrupted or unfinished tools can show the “Completed” check after the turn ends even though they never succeeded.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c42975f. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
juliusmarminge and others added 4 commits June 10, 2026 14:01
@juliusmarminge @claude
fix(web): keep the turn-fold trigger stationary when toggling
b2dfea3
Expanding a fold inserts rows between the trigger and the final message.
With maintainScrollAtEnd active and the user scrolled to the end,
LegendList re-pinned the bottom content on the data change, yanking the
trigger out of view; an imperative scroll correction can only land
after the list 'settles' (runScrollWithPromise defers scrolls issued
during a data change), which painted one frame late and popped.

Since everything above the trigger is unchanged by the toggle, the
trigger stays put on its own as long as the list doesn't re-anchor to
the end. Suppress maintainScrollAtEnd for the toggle's settling frames
instead of fighting it with a deferred counter-scroll.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge @claude
fix(web): absolute message timestamps; no metadata row mid-turn
d21984b
- Assistant messages no longer show the timestamp/copy metadata row
  while their turn is still in progress — the latest message is only
  provisionally terminal during work, and the row caused stray padding
  and a stale '0s ago' under streaming commentary.
- Replace relative chat timestamps ('12s ago') with absolute short
  times (formatShortTimestamp, honoring the timestamp format setting).
  The relative labels never re-rendered, so they showed stale values.
  The long-form tooltip stays. formatChatTimestamp is removed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge @claude
fix(web): don't unfold the previous turn while a send is in flight
ac31fb0
Sending a message flips isWorking before the server creates the new
turn, so activeTurnId still pointed at the previous, settled turn. The
fold-skip condition keyed on activeTurnId treated that turn as in
progress, transiently unfolding it — dozens of rows inserted and then
removed again once the new turn id arrived, flinging the scroll
position into the middle of the old turn's history.

Key turn-progress checks on the turn's own lifecycle instead: the only
unsettled turn is the latest turn without a recorded completion (or
still in state 'running'). Folding, assistant metadata, and copy
streaming all derive from that, and the racy activeTurnInProgress/
activeTurnId inputs are dropped from the row derivation.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge @claude
feat(web): include historic turns' tool calls in the timeline
f2511a6
deriveWorkLogEntries previously filtered activities to the latest turn,
so expanding a historic turn's fold showed only its commentary
messages. Now that settled turns fold their work behind the Worked-for
row, keep work log entries for every turn; each settled turn's tool
calls collapse into its fold and appear on expand.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge juliusmarminge mentioned this pull request Jun 10, 2026
[codex] Fold completed turn work in chat history #2962
Closed
@juliusmarminge @claude
style(web): format session-logic.test.ts
52b9cf1
Co-Authored-By: Claude Fable 5 <[email protected]>
macroscopeapp[bot]
macroscopeapp Bot reviewed Jun 10, 2026
View reviewed changes
Comment thread apps/web/src/components/ChatView.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge merged commit 1916ac6 into main Jun 10, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the ui/messages-timeline branch June 10, 2026 21:38
@mwolson mwolson mentioned this pull request Jun 11, 2026
[Bug]: Active turn briefly folds behind "Worked for..." row and causes chat jitter while tool calls stream #3039
Closed
2 tasks done
slan48 pushed a commit to slan48/t3code that referenced this pull request Jun 24, 2026
@sagamez-crimsonagility
Merge upstream/main (v0.0.27 → v0.0.28-nightly) into fork
927abf1
Fork customization triage:
- Item 2 (AGENTS.md), Item 3 (.gitignore): untouched upstream, kept.
- Item 4 (Cmd+B sidebar.toggle): SUPERSEDED by upstream pingdotgg#3497 'Add main
  sidebar toggle'. Adopted upstream's SidebarControl handler + UI wholesale;
  dropped our capture-phase SidebarShortcutHandler and orphaned
  isSidebarToggleShortcut helper. Pending manual smoke test (composer/terminal
  focus).
- Item 5 (sidecar prompt-injection hardening): KEPT. Upstream pingdotgg#3196/pingdotgg#3292
  refactored the invocation (resolveSpawnCommand) and reverted to
  --dangerously-skip-permissions; auto-merge preserved our
  --permission-mode default --allowed-tools StructuredOutput swap + tests.
- Item 6(a) (live token usage in working row): KEPT, re-integrated
  activeContextWindow threading onto upstream's reworked MessagesTimeline
  (made the prop optional).
- Item 6(b) (in-flight tool-call rows): DROPPED as superseded by upstream
  pingdotgg#3022 work-log rework (toolLifecycleStatus + WorkEntryIconSvg). Removed
  status field usage, took upstream's session-logic.{ts,test.ts} wholesale.
slan48 pushed a commit to slan48/t3code that referenced this pull request Jun 24, 2026
@sagamez-crimsonagility
docs(upstream-sync): record v0.0.28-nightly merge triage
985ce19
- Item 4 (Cmd+B sidebar toggle): superseded by upstream pingdotgg#3497, adopted
  wholesale; note the bubble-phase caveat for composer/terminal focus.
- Item 6: in-flight tool-call rows dropped (superseded by pingdotgg#3022
  toolLifecycleStatus rework); only the live-token half remains, with
  activeContextWindow now an optional prop.
- Refresh the manual smoke-test list.
@juliusmarminge juliusmarminge mentioned this pull request Jul 20, 2026
[Bug]: Inacesible tool call log #2165
Closed
2 tasks done
@mwolson mwolson mentioned this pull request Jul 28, 2026
fix(web): Keep running, stopped, and failed rows visible in the work log #4762
Closed
2 of 4 tasks
Morphexe pushed a commit to Morphexe/t3code that referenced this pull request Jul 30, 2026
@juliusmarminge @codex
@claude @Morphexe
Rework message metadata, timestamps, and tool work log rows (pingdotg…
2196d1e
…g#3022)

Co-authored-by: codex <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Aug 8, 2026
[Bug]: Mobile tool-failure heuristic misses two PowerShell patterns that web matches #5724
Closed
fix(mobile): detect PowerShell cmdlet errors in work log rows #5726
Merged
NeilTheFisher pushed a commit to NeilTheFisher/t3code that referenced this pull request Aug 18, 2026
@juliusmarminge @codex @claude
Rework message metadata, timestamps, and tool work log rows (pingdotg…
0cf1d21
…g#3022)

Co-authored-by: codex <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Aug 19, 2026
[Bug]: The "Worked for …" fold eats every assistant message except the last one #7529
Closed
[Bug]: Settled turns hide substantive response under Worked for ... #7518
Closed
darjss pushed a commit to darjss/t3code that referenced this pull request Aug 26, 2026
@juliusmarminge @codex @claude
Rework message metadata, timestamps, and tool work log rows (pingdotg…
a8576e5
…g#3022)

Co-authored-by: codex <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.