fix(server): stop kills lingering Claude work #5891
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits into
main fromrefs/pull/5891/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 3663Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -3660,4 +3679,3 @@36603679 updatedAt,36613680 };366236813663- if (options?.emitExitEvent !== false) {
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 3600Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -3600,3 +3597,6 @@3600359736013598 context.stopped = true;360235993600+ // Schedule process termination before any cleanup that can wait on the3601+ // provider. The SDK closes stdin, then escalates from SIGTERM to SIGKILL.3602+ yield* Effect.try({
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 3609Resolvedby t3dotgg(GitHub profile, opens in a new tab)@@ -3598,3 +3595,15 @@35983595 ) {35993596 if (context.stopped) return;360035973598+ // Schedule process termination before any cleanup that can wait on the3599+ // provider. The SDK closes stdin, then escalates from SIGTERM to SIGKILL.3600+ yield* Effect.try({3601+ try: () => context.query.close(),3602+ catch: (cause) =>3603+ new ProviderAdapterProcessError({3604+ provider: PROVIDER,3605+ threadId: context.session.threadId,3606+ detail: "Failed to close Claude runtime query.",3607+ cause,3608+ }),3609+ });
t3dotgg(GitHub profile, opens in a new tab) 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 Plus
Run ID:
88771e71-63e6-41e5-9a56-bb38a15f1e44You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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