Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a Pi permission granted in one thread no longer approves the next #15760

ClosedAdamulek123(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/15760/headopened View on GitHub

Showing 10 changed files with 133 additions and 3 deletions (loading 8).

x
0 of 10 viewed, 10 left
118 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -44,6 +44,7 @@
import * as Schema from "effect/Schema";
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";
+import * as TestClock from "effect/testing/TestClock";
import { Tool } from "effect/ai";
import { formatClaudeResumeCompactionQuestion } from "@t3tools/shared/claudeCompaction";
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
@@ -2085,6 +2086,7 @@
readonly close?: (sdkMessages: Queue.Queue<SDKMessage>) => Effect.Effect<void>;
readonly interrupt?: Effect.Effect<void>;
readonly environment?: NodeJS.ProcessEnv;
+ readonly freshMessageQueue?: boolean;
}) =>
Effect.gen(function* () {
const fileSystem = yield* FileSystem.FileSystem;
@@ -2092,7 +2094,7 @@
const attachmentsDir = yield* fileSystem.makeTempDirectoryScoped({
prefix: "t3-claude-v2-wake-",
- const sdkMessages = yield* Queue.unbounded<SDKMessage>();
+ let sdkMessages = yield* Queue.unbounded<SDKMessage>();
const processedMessages = new WeakMap<SDKMessage, Deferred.Deferred<void>>();
const offerAndWait = Effect.fnUntraced(function* (message: SDKMessage) {
const processed = yield* Deferred.make<void>();
@@ -2126,7 +2128,8 @@
queryRunner: {