@pikiloom/kernel 0.3.16 → 0.3.17

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.
@@ -251,8 +251,14 @@ export function codexFinalReasoning(s) {
251
251
  // nothing is visibly in flight (no running tool call, no server->client request awaiting
252
252
  // a human) is declared stalled and force-closed, so the session ends as a visible error
253
253
  // instead of spinning forever.
254
- const CODEX_STEER_STALL_MS = 300_000; // matches codex core's own 300s stream watchdog
255
- const CODEX_TURN_STALL_MS = 900_000; // long: silent thinking stretches are legitimate
254
+ // Thresholds are calibrated against measured rollouts: with reasoning summaries off, a
255
+ // HEALTHY turn shows fully silent thinking stretches of up to ~320s (clustered just above
256
+ // codex core's own 300s stream watchdog, whose retry produces the next event). 600s has
257
+ // never been reached intra-turn in days of observed sessions, so a heal at that point is
258
+ // near-certainly a real wedge — and even a misfire only costs one duplicated user message
259
+ // plus the in-flight thinking (completed items live in the thread history).
260
+ const CODEX_STEER_STALL_MS = 600_000;
261
+ const CODEX_TURN_STALL_MS = 900_000;
256
262
  // Notifications that prove the agent loop is making forward progress AFTER a steer.
257
263
  // item/completed and tokenUsage are deliberately excluded — they can be the trailing edge
258
264
  // of work that finished before the steer landed (the exact race signature). Progress that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikiloom/kernel",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Heterogeneous coding agents (Claude / Codex / Gemini / ACP) -> an interaction-friendly, accumulating session snapshot + control handle, over pluggable surfaces (IM, Web, tunnel, TUI). The reusable core pikiloom itself is built on.",
5
5
  "type": "module",
6
6
  "license": "MIT",