teapot-coding-agent 0.15.4 → 0.15.5
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/server/api.js +3 -2
- package/package.json +1 -1
- package/public/assets/{index-BtzQpvLr.js → index-4i2VuS2k.js} +6 -6
- package/public/assets/index-4i2VuS2k.js.map +1 -0
- package/public/assets/index-mKmKGRRj.css +1 -0
- package/public/assets/{shiki-B7A2MCj6.js → shiki-C0VENFA4.js} +2 -2
- package/public/assets/{shiki-B7A2MCj6.js.map → shiki-C0VENFA4.js.map} +1 -1
- package/public/index.html +2 -2
- package/public/assets/index-BtzQpvLr.js.map +0 -1
- package/public/assets/index-eI4YBc_o.css +0 -1
package/dist/server/api.js
CHANGED
|
@@ -177,8 +177,9 @@ export function buildApp(master) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
const cur = termCounts.get(agentId) ?? 0;
|
|
180
|
-
if (cur >=
|
|
181
|
-
|
|
180
|
+
if (cur >= 10) {
|
|
181
|
+
// soft safeguard only — the UI allows up to 10 tabs per agent
|
|
182
|
+
send({ kind: "exit", error: "too many terminals for this agent (max 10)" });
|
|
182
183
|
return;
|
|
183
184
|
}
|
|
184
185
|
termCounts.set(agentId, cur + 1);
|