Skip to content

Commit ac0ba5b

Browse files
basiclinesCopilot
andcommitted
feat: keep manual multi-pass loop in both modes, SDK mode sets agent behavior
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0d75e3d commit ac0ba5b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

scripts/compile.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,6 @@ your final message like this:
977977
// 11. Multi-pass loop
978978
const maxPasses = dirty.length + 5;
979979
while (!aborted) {
980-
// In autopilot mode, auto-continue up to maxPasses
981-
// In interactive mode, prompt the user
982980
if (autopilot) {
983981
if (passNumber >= maxPasses) {
984982
log(chalk.dim(` Autopilot: reached max passes (${maxPasses}), stopping.\n`));
@@ -993,11 +991,6 @@ your final message like this:
993991

994992
passNumber++;
995993
currentPhase = "Starting";
996-
// Reset per-pass metrics (keep cumulative totals)
997-
const prevTokensIn = metrics.inputTokens;
998-
const prevTokensOut = metrics.outputTokens;
999-
const prevReasoning = metrics.reasoningTokens;
1000-
const prevToolCalls = metrics.toolCalls;
1001994
metrics.errors = [];
1002995

1003996
const passLabel = autopilot ? `Pass ${passNumber}/${maxPasses}` : `Pass ${passNumber}`;

0 commit comments

Comments
 (0)