Skip to content

Fix false dispatch timeouts on live JSONL activity#13

Closed
amittell wants to merge 1 commit into
mainfrom
fix-dispatch-jsonl-liveness-timeout
Closed

Fix false dispatch timeouts on live JSONL activity#13
amittell wants to merge 1 commit into
mainfrom
fix-dispatch-jsonl-liveness-timeout

Conversation

@amittell

@amittell amittell commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • include session JSONL mtime and pending/terminal JSONL state in dispatch status auto-resolution
  • keep running labels from being marked interrupted when sessions.json is stale but JSONL shows active or terminal work
  • separate watcher result probes from hard stall failures so high-thinking jobs are probed early but not failed until the idle-failure window
  • deliver structured completion at watcher deadline before treating a freshly auto-interrupted status as failure

Live-path verification

  • confirmed the scheduler daemon runs the installed package at ~/.openclaw/packages/openclaw-scheduler/node_modules/openclaw-scheduler/dispatcher.js
  • confirmed live chilisaus delivery jobs execute ~/.openclaw/chilisaus/index.mjs and watcher.mjs as branded dispatch glue
  • synced the same dispatch index/watcher fix into the live package copy and chilisaus wrapper copy; no wrapper-only logic changes were needed

Validation

  • npm test (using deployed runtime dependency tree; 1768 passed, 0 failed)
  • node --test tests/delivery-fixes.test.mjs (14 passed, 0 failed)
  • npm run lint (using existing dev dependency tree because npm ci under Node 26 cannot build better-sqlite3@11.10.0 on main)
  • npm run typecheck

Notes

  • npm ci on this host's default Node 26 fails before tests because better-sqlite3@11.10.0 does not compile against Node 26/V8 14.2 in current main. This PR does not change dependencies; validation used the already-deployed runtime dependencies for tests and an existing dev dependency tree for lint/typecheck.

@amittell amittell force-pushed the fix-dispatch-jsonl-liveness-timeout branch from 575bf69 to f9e2659 Compare June 8, 2026 00:04
@amittell

amittell commented Jun 8, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #14, which re-applied this JSONL liveness fix onto current main together with the rest of the valuable branch/worktree fixes. Keeping the source branch for now; main contains the code via e21fdeb.

@amittell amittell closed this Jun 8, 2026
@amittell amittell deleted the fix-dispatch-jsonl-liveness-timeout branch June 8, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant