Skip to content

fix(web): preserve historical tool styling in chat history#905

Open
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/fix-chat-history-styling-regression
Open

fix(web): preserve historical tool styling in chat history#905
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/fix-chat-history-styling-regression

Conversation

@binbandit
Copy link
Contributor

@binbandit binbandit commented Mar 11, 2026

Summary

  • keep historical tool and work rows visible after a later turn becomes the latest turn
  • cover the timeline projection change with unit and browser regressions for the history-to-new-turn transition

Validation

  • bun run fmt
  • bun run lint
  • bun run typecheck
  • bun run test src/session-logic.test.ts
  • bun run test:browser src/components/ChatView.browser.tsx

Note

Preserve historical tool activity rows in chat timeline across turns

  • Removes the latest-turn filter from deriveWorkLogEntries in ChatView.tsx, so tool/work log entries from all previous turns are included in the timeline, not just the active turn.
  • Makes the turnId parameter in deriveWorkLogEntries optional; omitting it returns entries across all turns.
  • Adds a browser integration test verifying that historical tool rows remain visible after a new user turn becomes the latest turn.

Macroscope summarized f6a7301.

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

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: b2a2092b-6a41-4ca0-ae88-fc77f3df4625

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
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant