Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(agents): use the repository GitHub account in provider sessions #21583

Openjuliusmarmingewants to merge 5 commits intopull-request-14/account-settings frompull-request-14/agent-accountsopened View on GitHub

Showing 22 changed files with 75 additions and 3 deletions (loading 19).

x
0 of 22 viewed, 22 left
14 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsModified
View file
@@ -46,6 +46,7 @@
import * as Path from "effect/Path";
import * as PlatformError from "effect/PlatformError";
import * as Queue from "effect/Queue";
+import * as Redacted from "effect/Redacted";
import * as Schema from "effect/Schema";
import * as Sink from "effect/Sink";
import * as Stream from "effect/Stream";
@@ -2485,7 +2486,7 @@
makeRuntime,
selfInvocation,
- clientTerminals: {},
+ clientTerminals: { environment: { GH_TOKEN: "base-token", ACP_BASE: "base" } },
const sourceThreadId = ThreadId.make("thread-acp-native-fork-source");
const targetThreadId = ThreadId.make("thread-acp-native-fork-target");
@@ -2511,6 +2512,7 @@
runtimeMode: "full-access",
interactionMode: "default",
cwd: process.cwd(),
+ environment: { GH_TOKEN: Redacted.make("workspace-token") },
const modelSelection = { instanceId, model: "default" } as const;
const runtime = yield* adapter.openSession({
@@ -2613,7 +2615,11 @@