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 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
- agent.opts.contextWindowTokens = win;
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "description": "A lightweight, always-on multi-agent harness for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-or-later",