Skip to content
Source
Sign inSign up
pingdotgg/t3code

test: align Claude adapter thread identity assertions #243

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

Fixes the failing CI assertions in ClaudeCodeAdapter.test.ts for PR #179.

Updates stale expectations to match current adapter behavior:

  • Session/turn IDs remain on the orchestrator thread ID
  • thread.started carries providerThreadId in payload
  • native observability records assert providerThreadId instead of threadId
  • resume cursor threadId reflects the active orchestrator thread ID

Validated locally:

  • bun run test src/provider/Layers/ClaudeCodeAdapter.test.ts
  • bun lint
  • bun typecheck

Note

Align Claude adapter tests to assert external thread IDs and provider-native identifiers in ClaudeCodeAdapter.test.ts

Updates tests to assert session.threadId and turn.threadId as external IDs via String(...), expect thread.started to include payload.providerThreadId, and switch native observability checks from event.event.threadId to event.event.providerThreadId in ClaudeCodeAdapter.test.ts.

📍Where to Start

Start with the test cases in ClaudeCodeAdapter.test.ts, focusing on expectations for session.threadId, turn.threadId, thread.started payloads, and observability event assertions.

Macroscope summarized 47ddb15.
    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: 4c41b44e-548b-4f6b-b267-441e0274935f

      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.