Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): preserve goal text containing a turn count #48232

Opensaphid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/48232/headopened View on GitHub

Showing 2 changed files with 8 additions and 4 deletions.

x
0 of 2 viewed, 2 left
6 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -28497,10 +28497,13 @@
- it.effect("keeps a goal active after a command turn with no model output", () =>
+ it.effect.each([
+ { footer: "", variant: "without a footer" },
+ { footer: "\nLast check: Waiting for review (7 turns)", variant: "with a footer" },
+ ])("keeps a goal active after a command turn with no model output ($variant)", ({ footer }) =>
Effect.gen(function* () {
const harness = yield* makeWakeHarness;
- const condition = "the build is green";
+ const condition = "check (1 turn) before merging";
yield* harness.runtime.startTurn(
makeClaudeTestTurnInput({
threadId: harness.threadId,
@@ -28516,7 +28519,7 @@
yield* Queue.offer(
harness.sdkMessages,
- syntheticFrame("goal-show", `Goal active: ${condition} (2 turns)`),
+ syntheticFrame("goal-show", `Goal active: ${condition} (2 turns)${footer}`),
yield* Queue.offer(
harness.sdkMessages,
2 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file