Skip to content
Source
Sign inSign up
pingdotgg/t3code

Rework message metadata, timestamps, and tool work log rows #3022

Mergedjuliusmarmingemerged 8 commits intomain fromrefs/pull/3022/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

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 #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](https://cursor.com/bugbot) for commit 52b9cf11983f19b870c6d2911643a6de63cce449. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

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.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Expo continuous deployment is ready!

      • Project → t3-code
      • Platforms → android, ios
      • Scheme → t3code-preview
       🤖 Android🍎 iOS
      Fingerprintae17d94b35f91f9c608a63dadbc3ddd9f4ba056e313e506a7f15a9c3f15b01d787d68a12382432bf
      Build DetailsBuild 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 DetailsUpdate Permalink
      DetailsBranch: pr-3022
      Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
      Git commit: b5d85013496f9e741ec74c4be0f7900d01b46908
      Update Permalink
      DetailsBranch: pr-3022
      Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
      Git commit: b5d85013496f9e741ec74c4be0f7900d01b46908
      Update QR
    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. 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 (pingdotgg/t3code@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.
    6. 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 (pingdotgg/t3code@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.
    7. 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 (pingdotgg/t3code@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.
      @@ -1281,4 +1420,19 @@
      12811420 </div>
      12821421 </div>
      1283- {hasChangedFiles && !previewIsChangedFiles && (
      1284- <div className="mt-1 flex flex-wrap gap-1 pl-6">
      1422+ {expanded && canExpand && expandedBody ? (
      1423+ <div
      1424+ className="mt-2 ms-7 border-s border-border/45 ps-3 pt-0.5"
      1425+ onClick={stopRowToggle}
      1426+ onPointerDown={stopRowToggle}
      1427+ >
      1428+ <pre className="max-h-64 overflow-auto whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed text-muted-foreground">
      1429+ {expandedBody}
      1430+ </pre>
      1431+ </div>
      1432+ ) : null}
      1433+ {hasChangedFiles && (
      1434+ <div
      1435+ className="mt-1 flex flex-wrap gap-1"
      1436+ onClick={stopRowToggle}
      1437+ onPointerDown={stopRowToggle}
      1438+ >

      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](https://cursor.com/bugbot) for commit 4b1a774c81af6b73f2670375dcc6de92c18af85c. Configure [here](https://www.cursor.com/dashboard/bugbot).
    8. 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 (pingdotgg/t3code@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.
      @@ -128,0 +227,21 @@
      227+export function workEntryIndicatesToolSuccess(entry: WorkLogEntry): boolean {
      228+ if (!workLogEntryIsToolLike(entry)) {
      229+ return false;
      230+ }
      231+ if (workEntryIndicatesToolFailure(entry)) {
      232+ return false;
      233+ }
      234+ if (entry.tone === "thinking") {
      235+ return false;
      236+ }
      237+ const ls = entry.toolLifecycleStatus;
      238+ if (ls === "failed" || ls === "declined") {
      239+ return false;
      240+ }
      241+ if (ls === "inProgress") {
      242+ return false;
      243+ }
      244+ if (ls === "stopped") {
      245+ return false;
      246+ }
      247+ return true;

      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)
      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c42975f5b70d0d91a86a97046a3a1a01668b7b99. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -1214,0 +1307,21 @@
      1307+ (workEntry.sourceActivityKind === "runtime.error" || !workLogEntryIsToolLike(workEntry));
      1308+ const iconWrapperClass = cn(
      1309+ "flex size-5 shrink-0 items-center justify-center",
      1310+ showWarningIndicator
      1311+ ? "text-destructive"
      1312+ : showDestructiveRowStyle
      1313+ ? "text-destructive"
      1314+ : workEntry.tone === "tool" || showFailedIndicator
      1315+ ? "text-muted-foreground"
      1316+ : iconConfig.className,
      1317+ );
      1318+ const headingClass = showWarningIndicator
      1319+ ? "font-medium text-warning"
      1320+ : showDestructiveRowStyle
      1321+ ? "font-medium text-destructive"
      1322+ : "font-medium text-foreground";
      1323+ const turnSettled = !activity.activeTurnInProgress;
      1324+ const showNeutralIndicator = !turnSettled && workEntryIndicatesToolNeutralStatus(workEntry);
      1325+ const showSuccessIndicator =
      1326+ workEntryIndicatesToolSuccess(workEntry) ||
      1327+ (turnSettled && workEntryIndicatesToolNeutralStatus(workEntry));

      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](https://cursor.com/bugbot) for commit c42975f5b70d0d91a86a97046a3a1a01668b7b99. Configure [here](https://www.cursor.com/dashboard/bugbot).
    9. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium

      https://github.com/pingdotgg/t3code/blob/ac31fb0fbef215a24bad3daee04bd84f1d5d51b3/apps/web/src/components/ChatView.tsx#L675

      In WorkGroupSection, nonEmptyEntries filters out all entries where workEntryIndicatesToolNeutralStatus(entry) is true before passing them to SimpleWorkEntryRow. Inside SimpleWorkEntryRow, the same function is used to determine showNeutralIndicator and the neutral branch of showSuccessIndicator — but these conditions can never be true because neutral entries were already removed. The <MinusIcon> tooltip for "Empty" status is dead code that never renders. If the intent was to show a neutral indicator during active turns (switching to checkmark when settled), the parent filter defeats that logic.

      No longer relevant as of 52b9cf11983f19b870c6d2911643a6de63cce449

    10. juliusmarminge merged this1916ac6

    11. juliusmarminge closed this

Sign in to join this conversation.