teapot-coding-agent 0.37.30 → 0.37.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent.js +25 -0
- package/package.json +1 -1
- package/public/assets/{index-DPx3mJiS.js → index-y36km_0N.js} +5 -5
- package/public/assets/index-y36km_0N.js.map +1 -0
- package/public/assets/{shiki-BvmZsDxA.js → shiki-DEu_IEb-.js} +2 -2
- package/public/assets/{shiki-BvmZsDxA.js.map → shiki-DEu_IEb-.js.map} +1 -1
- package/public/index.html +1 -1
- package/public/assets/index-DPx3mJiS.js.map +0 -1
package/dist/agent/agent.js
CHANGED
|
@@ -2196,6 +2196,20 @@ export class Agent {
|
|
|
2196
2196
|
stopSeq = 0;
|
|
2197
2197
|
/** #95: set when this round already injected a harness progress request */
|
|
2198
2198
|
progressRequestedThisRound = false;
|
|
2199
|
+
/**
|
|
2200
|
+
* The turn number at which an auto-continue nudge was injected.
|
|
2201
|
+
*
|
|
2202
|
+
* `progressRequestedThisRound` covers ONE direction (progress asked first, nudge stands down). The
|
|
2203
|
+
* reverse was unguarded: the nudge is appended at the END of a round, and the NEXT round's first
|
|
2204
|
+
* turn calls `maybeRequestProgress()` — so one boundary carried "Continue working toward the
|
|
2205
|
+
* current goal" and then "Please give a brief progress report now", 2ms apart. MEASURED: 21
|
|
2206
|
+
* occurrences after the #95 fix, e.g. teapot-6-cca1d159 at 14:00:50 — the #182 report.
|
|
2207
|
+
*
|
|
2208
|
+
* A TURN NUMBER, not a boolean, because the nudge recurs every round in an auto-continue loop: a
|
|
2209
|
+
* flag set at the end of one round would suppress the report at every later boundary and progress
|
|
2210
|
+
* reports would stop for the whole session (MEASURED as three broken progress tests).
|
|
2211
|
+
*/
|
|
2212
|
+
nudgedAtTurn = -1;
|
|
2199
2213
|
/**
|
|
2200
2214
|
* CONTROL PLANE: fired on every status change, immediately, independent of the
|
|
2201
2215
|
* log.
|
|
@@ -2406,6 +2420,8 @@ export class Agent {
|
|
|
2406
2420
|
text: nudge,
|
|
2407
2421
|
});
|
|
2408
2422
|
this.messages.push({ role: "user", content: nudge });
|
|
2423
|
+
// the nudge is consumed by the NEXT turn, which is the one that must not also ask for a report
|
|
2424
|
+
this.nudgedAtTurn = this.stats.turns + 1;
|
|
2409
2425
|
}
|
|
2410
2426
|
catch (err) {
|
|
2411
2427
|
const name = err.name;
|
|
@@ -3878,6 +3894,15 @@ export class Agent {
|
|
|
3878
3894
|
this.turnsSinceProgress >= this.opts.progressMaxQuietTurns;
|
|
3879
3895
|
if (!elapsedOk || !activityOk)
|
|
3880
3896
|
return; // stalling provider → don't waste a turn asking
|
|
3897
|
+
/**
|
|
3898
|
+
* ONE harness instruction per boundary, in EITHER order.
|
|
3899
|
+
*
|
|
3900
|
+
* This is the mirror of the `progressRequestedThisRound` check in the auto-continue branch. A
|
|
3901
|
+
* nudge injected at the end of a round is consumed by the NEXT round's first turn, which is
|
|
3902
|
+
* where this runs — so without this the model receives both, back to back.
|
|
3903
|
+
*/
|
|
3904
|
+
if (this.nudgedAtTurn === this.stats.turns)
|
|
3905
|
+
return;
|
|
3881
3906
|
// remember that this boundary already carries an instruction, so the
|
|
3882
3907
|
// auto-continue nudge can stand down instead of pairing with it.
|
|
3883
3908
|
this.progressRequestedThisRound = true;
|