teapot-coding-agent 0.37.210 → 0.37.211

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.
@@ -5,7 +5,7 @@ import { storeImage, resolveImages } from "../log/image-store.js";
5
5
  import { chat, chatStream } from "./llm.js";
6
6
  import { auditPrompt, parseAuditVerdict } from "./goal-audit.js";
7
7
  import { createCatalog } from "./tool-catalog.js";
8
- import { resetToolCatalog, executeTool, toolSpecs, currentSkills, safeJoin, isContextOverflow, isRequestNodeLimit, hasRunningBgShellsFor, killBgShells, runningBgShellCount } from "./tools.js";
8
+ import { resetToolCatalog, executeTool, toolSpecs, currentSkills, safeJoin, isContextOverflow, isRequestNodeLimit, hasRunningBgShellsFor, killBgShells, runningBgShellCount, listBgShells } from "./tools.js";
9
9
  import { effortChoosable } from "./llm.js";
10
10
  import { turnAnchor } from "./timing.js";
11
11
  import { isBareAcknowledgement } from "./ack.js";
@@ -1416,6 +1416,12 @@ export class Agent {
1416
1416
  workspaceMissing: this.isGhost,
1417
1417
  // live count for the header badge — see runningBgShellCount (#197)
1418
1418
  bgRunning: runningBgShellCount(this.workspace),
1419
+ /**
1420
+ * The bg-jobs PANEL reads this, so its rows come over the same `agent-update` frame as the count in the header badge.
1421
+ * A second REST poll could disagree with the badge by one frame — which is exactly how a running job's row and its
1422
+ * "N running" badge drifted apart (#290).
1423
+ */
1424
+ bgJobs: listBgShells(this.workspace, this.opts.sessionDir),
1419
1425
  session: this.currentSession,
1420
1426
  ...(title ? { sessionTitle: title } : {}),
1421
1427
  branch: this.currentBranch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teapot-coding-agent",
3
- "version": "0.37.210",
3
+ "version": "0.37.211",
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",