TypeScript
perf(server): stop tracing the per-event background-work probe (#31584)
Julius Marminge50f0dacbd769
diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsindex 10edb77c501..df80f1316fb 100644--- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts+++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts@@ -11809,9 +11809,8 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (}return false;}),- hasPendingBackgroundWorkForThread: Effect.fn(- "ClaudeAdapterV2.hasPendingBackgroundWorkForThread",- )(function* (providerThread, options) {+ // Untraced: the run's event stream calls this once per provider event.+ hasPendingBackgroundWorkForThread: Effect.fnUntraced(function* (providerThread, options) {const nativeThreadId = providerThread.nativeThreadRef?.nativeId;if (nativeThreadId === undefined || nativeThreadId === null) {return false;diff --git a/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsindex 07c4e4e72ec..369608a289d 100644--- a/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts+++ b/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts@@ -7071,9 +7071,8 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (}return false;}),- hasPendingBackgroundWorkForThread: Effect.fn(- "CodexAdapterV2.hasPendingBackgroundWorkForThread",- )(function* (providerThread) {+ // Untraced: the run's event stream calls this once per provider event.+ hasPendingBackgroundWorkForThread: Effect.fnUntraced(function* (providerThread) {const contexts = [...(yield* Ref.get(activeTurns)).values(),...(yield* Ref.get(settledTurns)).values(),