fix: isolate assistant projection identities per thread #882
Closedbinbandit(GitHub profile, opens in a new tab)wants to merge 3 commits into
main fromrefs/pull/882/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge reviewed
@@ -0,0 +60,21 @@60+}61+62+export function assistantMessageIdFromRuntimeEvent(63+ event: ProviderRuntimeEvent,64+ threadId: ThreadId,65+): MessageId {66+ const turnId = toTurnId(event.turnId);67+ if (event.itemId) {68+ return MessageId.makeUnsafe(`assistant:${threadId}:item:${event.itemId}`);69+ }70+ if (turnId) {71+ return assistantMessageIdFromTurn(threadId, turnId);72+ }73+ return MessageId.makeUnsafe(`assistant:${threadId}:event:${event.eventId}`);74+}75+76+export function resolveRuntimeAssistantMessageId(77+ thread: AssistantMessageIdentityThread,78+ event: ProviderRuntimeEvent,79+): MessageId {80+ const turnId = toTurnId(event.turnId);github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
8ad5749c-f4ab-4e48-8285-31a88dad5fb3You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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