Synchronize mobile threads with authoritative shell snapshots #4163
Mergedjuliusmarmingemerged 4 commits into
main fromrefs/pull/4163/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- packages/client-runtime/src/state/threads.ts line 297Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -244,6 +267,18 @@267+ if (!supportsCompletionMarker && canResume) {268+ yield* SubscriptionRef.update(state, (value) => ({269+ ...value,270+ status: value.status === "deleted" ? value.status : ("live" as const),271+ error: Option.none(),272+ }));273+ }244274245- yield* subscribe(ORCHESTRATION_WS_METHODS.subscribeThread, subscribeInput, {275+ return {276+ threadId,277+ ...(canResume ? { afterSequence: sequence } : {}),278+ ...(supportsCompletionMarker ? { requestCompletionMarker: true as const } : {}),279+ };280+ }),281+ {246282 onExpectedFailure: setStreamError,247283 retryExpectedFailureAfter: "250 millis",248- }).pipe(Stream.runForEach(applyItem));249- }),284+ },
juliusmarminge added labels🚀 Mobile Continuous Deployment
juliusmarminge merged this8e3467f
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:
ec96494a-d45d-4b0e-9901-48f843ecb699You 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)
Comment `@coderabbitai help` to get the list of available commands.