Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): goals stop the running turn, clear while working, no echoes #25426

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/25426/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 11 changed files with 71 additions and 1 deletion (loading 9).

x
0 of 11 viewed, 11 left
49 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -14524,6 +14524,55 @@
+​
+ it.effect("keeps the CLI's goal confirmation out of the conversation", () =>
+ Effect.gen(function* () {
+ const harness = yield* makeWakeHarness;
+ const condition = "all tests pass";
+ yield* harness.runtime.startTurn(
+ makeClaudeTestTurnInput({
+ threadId: harness.threadId,
+ providerThread: {
+ ...harness.providerThread,
+ goal: { objective: condition, status: "active", checks: 1 },
+ },
+ now: yield* DateTime.now,
+ attemptId: RunAttemptId.make("goal-clear-attempt"),
+ text: "/goal clear",
+ attachments: [],
+ }),
+ );
+ yield* Queue.offer(
+ harness.sdkMessages,
+ syntheticFrame("goal-clear", `Goal cleared: ${condition}`),
+ );
+ yield* Queue.offer(
+ harness.sdkMessages,
+ makeResultFrame({
+ uuid: "goal-clear-result",