Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

Closedbinbandit(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/905/headopened View on GitHub

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 rows in chat timeline after a new user turn starts

  • deriveWorkLogEntries in session-logic.ts now accepts an optional turnId filter; when omitted, it returns work entries across all turns instead of filtering to the active turn.
  • ChatView no longer passes activeLatestTurn?.turnId to deriveWorkLogEntries, so the timeline includes tool/work entries from prior turns.
  • A browser test verifies that historical tool rows remain visible after a new latest turn is added to the store.
Macroscope summarized 943afd5.
    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: df1f729b-3010-4d44-9211-a01d8fa591d2

      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
      📝 Coding Plan
      • Generate coding plan for human review comments

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

    3. This is more complete version of the one that i did and should be merged asap

    4. maria-rcks added labelsneeds-julius

    5. I couldn’t find a issue/pr specifically for this problem none has been reported yet

    6. yeah looks like there isnt any

    7. maybe im just super good at seeing tiny problems 🤷‍♀️

    8. Closing because this is stale, conflicted, and failing against timeline and projection code that has since changed substantially.

      This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

    9. juliusmarminge closed this

Sign in to join this conversation.