teapot-coding-agent 0.17.1 → 0.17.3
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/master.js +7 -1
- package/package.json +1 -1
- package/public/assets/{index-BPIU7nDd.js → index-BPUZCdD1.js} +6 -6
- package/public/assets/index-BPUZCdD1.js.map +1 -0
- package/public/assets/{index-KCd15dRm.css → index-DNd4AdgU.css} +1 -1
- package/public/assets/{shiki-CONfUTgk.js → shiki-BNlU26kv.js} +2 -2
- package/public/assets/{shiki-CONfUTgk.js.map → shiki-BNlU26kv.js.map} +1 -1
- package/public/index.html +2 -2
- package/public/assets/index-BPIU7nDd.js.map +0 -1
package/dist/master.js
CHANGED
|
@@ -793,7 +793,13 @@ When this task is done (or truly blocked), call finish() with a summary for @${p
|
|
|
793
793
|
if (win !== undefined) {
|
|
794
794
|
if (ac)
|
|
795
795
|
ac.contextWindowTokens = win;
|
|
796
|
-
|
|
796
|
+
const opts = agent;
|
|
797
|
+
opts.opts.contextWindowTokens = win;
|
|
798
|
+
// re-derive the compaction budget for the NEW window — unless the
|
|
799
|
+
// operator pinned one. Without this, a model switch kept the previous
|
|
800
|
+
// budget and the panel showed "manual override" out of nowhere.
|
|
801
|
+
if (!agent.compactBudgetIsManual)
|
|
802
|
+
opts.opts.contextTokenBudget = Math.round(win * 0.75);
|
|
797
803
|
}
|
|
798
804
|
this.saveConfig();
|
|
799
805
|
void agent.log.append("system_note", agent.currentSession, agent.currentBranch, {
|