Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): queue Copilot follow-ups without killing background agents #26715

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/26715/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 5 changed files with 122 additions and 18 deletions (loading 2).

x
0 of 5 viewed, 5 left
36 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.tsModified
View file
@@ -1007,6 +1007,42 @@
}).pipe(Effect.provide(layerTest), Effect.scoped),
+ // regression: #26695 cancelling a Copilot prompt kills its background agents
+ it.effect("never steers Copilot by cancelling its prompt", () =>
+ Effect.gen(function* () {
+ const steering = Effect.fn("steering")(function* (config: Record<string, unknown>) {
+ const instanceId = ProviderInstanceId.make("acp-registry-steering");
+ const adapter = yield* makeAcpRegistryAdapterV2({
+ selfInvocation: yield* resolveSelfInvocation(),
+ instanceId,
+ settings: yield* decodeAcpRegistryAdapterSettings(config),
+ environment: {},
+ }).pipe(Effect.provide(layerInjectedRuntimeCatalog));
+ const { turns } = yield* adapter.getCapabilities();
+ return {
+ supportsInterrupt: turns.supportsInterrupt,
+ supportsActiveSteering: turns.supportsActiveSteering,
+ supportsSteeringByInterruptRestart: turns.supportsSteeringByInterruptRestart,
+ };
+ });
+ const copilot = {
+ supportsInterrupt: true,
+ supportsActiveSteering: false,
+ supportsSteeringByInterruptRestart: false,
+ };
+​
+ assert.deepEqual(yield* steering({ agentId: "github-copilot-cli" }), copilot);
+ assert.deepEqual(