Skip to content
Source
Sign inSign up
pingdotgg/t3code

test: fix CheckpointReactor rollback assertions for threadId #242

Closeddl-alexandre(GitHub profile, opens in a new tab)wants to merge 1 commit intocodething/648ca884-cursor fromrefs/pull/242/headopened View on GitHub

Fixes the failing CI assertions in CheckpointReactor.test.ts for PR #178.

The rollback call payload now includes threadId; this updates expectations to match the current provider contract.

Validated locally:

  • bun run test src/orchestration/Layers/CheckpointReactor.test.ts
  • bun lint
  • bun typecheck

Note

Fix CheckpointReactor tests to assert provider.rollbackConversation receives threadId: ThreadId.makeUnsafe("thread-1") and numTurns: 1 in CheckpointReactor.test.ts

Update three assertions to include threadId alongside numTurns when verifying provider.rollbackConversation calls in CheckpointReactor.test.ts.

📍Where to Start

Start with the modified assertions around provider.rollbackConversation in CheckpointReactor.test.ts.

Macroscope summarized d273ce7.
    1. @dl-alexandre is attempting to deploy a commit to the Ping Labs Team on Vercel.

      A member of the Team first needs to authorize it.

    2. 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: 927d1912-d2c5-4c0b-ae9e-bcfe731b972c

      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

      Tip

      Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Share your feedback on Discord.


      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.
    3. t3dotgg(GitHub profile, opens in a new tab) added labelsjunk

Sign in to join this conversation.