@commonlyai/cli 0.1.135 → 0.1.137
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/package.json +1 -1
- package/src/commands/agent.js +10 -1
- package/src/lib/adapters/codex.js +3 -0
package/package.json
CHANGED
package/src/commands/agent.js
CHANGED
|
@@ -2457,7 +2457,16 @@ export const performRun = ({
|
|
|
2457
2457
|
entry.result?.outcome === 'posted'
|
|
2458
2458
|
|| (entry.result?.outcome === 'no_action' && !entry.result?.reason)
|
|
2459
2459
|
));
|
|
2460
|
-
if (batchSpawned)
|
|
2460
|
+
if (batchSpawned) {
|
|
2461
|
+
consecutiveSpawnFailures = 0;
|
|
2462
|
+
// A turn is exactly when events pile up: whoever typed while the
|
|
2463
|
+
// adapter was running is already waiting. Sleeping the interval on
|
|
2464
|
+
// top of the turn charges them for it twice (TASK-343). Only a
|
|
2465
|
+
// batch that actually spawned skips the wait; an idle poll and a
|
|
2466
|
+
// batch that spawned nothing keep the interval, so this cannot
|
|
2467
|
+
// become a spin.
|
|
2468
|
+
nextPollDelayMs = 0;
|
|
2469
|
+
}
|
|
2461
2470
|
for (const entry of batch.entries) {
|
|
2462
2471
|
const event = entry.event;
|
|
2463
2472
|
// No result: an item a failure during refusal isolation never
|
|
@@ -341,6 +341,9 @@ const preparePublicCodexHome = async (ctx) => {
|
|
|
341
341
|
const PUBLIC_CODEX_INSTRUCTIONS_MAX_BYTES = 32 * 1024;
|
|
342
342
|
|
|
343
343
|
const writePublicCodexInstructions = async (publicHome, ctx) => {
|
|
344
|
+
// Codex loads this file before AGENTS.md when it exists. Clear any leftover
|
|
345
|
+
// override on every spawn so it cannot shadow the seat's declared skills.
|
|
346
|
+
await rm(join(publicHome, 'AGENTS.override.md'), { force: true });
|
|
344
347
|
const declared = Array.isArray(ctx.environment?.skills?.claude) ? ctx.environment.skills.claude : [];
|
|
345
348
|
const baseDir = ctx.cwd || process.cwd();
|
|
346
349
|
const sources = declared.map((source) => resolveSkillSource(source, baseDir));
|