chorus icon indicating copy to clipboard operation
chorus copied to clipboard

Chats stay 'drafting' with no dispatch after daemon restart (0.8.65, WSL2)

Open fayerman-source opened this issue 2 months ago • 0 comments

Symptom: after the first daemon restart, every new chat stays drafting forever. No reviewer is dispatched, nothing is written to phase_events beyond the initial drafting row, and daemon.log has nothing after the chat created line. Chats created before that restart dispatched normally (with ordinary reviewer failures).

Repro (on this machine): chorus stop && chorus start, then create_chat via MCP with template: "review-only" and a one-line artifact. The chat stays drafting indefinitely (waited 2-4 min, 6 attempts).

Ruled out:

  • Daemon environment: restarted from the user's own login terminal, not only from an agent shell.
  • Node version: installed under Node 22.22.2; also restarted with Node 22 first on PATH (verified the daemon process runs v22). Still stuck.
  • Voice edits: reverted a manual change to the OpenRouter voices back to the original set. Still stuck.
  • chorus init: all orchestrators already registered, templates up to date. No change.
  • Version: 0.8.65 is the latest on npm.

Also: cancel_chat on a never-dispatched chat returns a schema error to the MCP client (ok missing, error is a string instead of an object), so stuck chats cannot be cancelled from the orchestrator. They were later marked cancelled by chorus stop (aborted N active runs (SIGTERM)).

chorus diagnose
# Chorus diagnose

chorus CLI:      0.8.65
running daemon:  0.8.65
node:            24.18.0
platform:        linux (x64, 6.6.87.2-microsoft-standard-WSL2)
install mode:    global-npm
bin path:        ~/.nvm/versions/node/v22.22.2/lib/node_modules/chorus-codes/bin/chorus.mjs

## Daemon state
pid alive:       true
health probe:    OK on :7707
daemon.json:
  {
    "schemaVersion": 1,
    "daemonPort": 7707,
    "cockpitPort": 5050,
    "daemonPid": 515793,
    "cockpitPid": 515794,
    "startedAt": "2026-10-03T15:50:56.356Z",
    "version": "0.8.65"
  }

## DB
chats:           9
voices:          625

## CLI detection
  ✓ claude-code    ~/.local/bin/claude
      smoke: ok (v2.1.288 (Claude Code))
  ✓ codex-cli      ~/.local/bin/codex
      smoke: ok (vcodex-cli 0.160.0)
  ✓ gemini-cli     /usr/local/bin/gemini
      smoke: ok (v0.41.2)
  ✓ opencode-cli   ~/.opencode/bin/opencode
      smoke: ok (v1.14.50)
  ✓ kimi-cli       ~/.kimi-code/bin/kimi
      smoke: ok (v0.34.0)
  ✗ grok-cli       not found
  ✓ antigravity-cli ~/.local/bin/agy
      smoke: ok (v1.2.16)

## Voice health
total:           625
auto-disabled (quota):    0
auto-disabled (missing):  0
user-disabled:            593

## Recent failed chats
  01A10271EE5C266AD673CF300AC9AB52  status=cancelled
      (no errored participants — see daemon.log)
  01A1026AA71D599D1DC15A3A391F7E4B  status=cancelled
      (no errored participants — see daemon.log)
  01A1025B6E93FCEEBCD91AFD139CA761  status=cancelled
      (no errored participants — see daemon.log)
  019E0EC215CEA510D1B76B74BEA48374  status=failed
      round-1/reviewer-codex-cli-0  lineage=openai model=gpt-5.5
        cli_error (errorMessage: 300 bytes on disk)
      round-1/reviewer-kimi-cli-2  lineage=moonshot model=kimi-k2.6
        no_output (errorMessage: 176 bytes on disk)

## Crashes
count:           0

## Recent daemon.log (last 50 lines)
  [reviewer] fallback collision chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=gemini-cli-1 target=anthropic/claude-sonnet-4-6 — another slot is already running it; advancing chain
  [reviewer] fallback collision chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=opencode-cli-5 target=opencode/opencode/nemotron-3-super-free — another slot is already running it; advancing chain
  [reviewer] fallback fired chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=opencode-cli-5 reason=lineage_fallback from=opencode/opencode/nemotron-3-super-free to=anthropic/claude-sonnet-4-6 chain_idx=0
  [reviewer] fallback collision chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=opencode-cli-5 target=anthropic/claude-sonnet-4-6 — another slot is already running it; advancing chain
  [reviewer] attempt failed chat=01A10040D5A94BDEC561A8869A6605F8 round=1 lineage=openai model=gpt-6.1-sol kind=verdict_ambiguous duration_ms=28255 message="Reviewer wrote non-empty content but no approve/reject verdict was detected."
  [reviewer] fallback fired chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=codex-cli-0 reason=lineage_fallback from=openai/gpt-6.1-sol to=anthropic/claude-sonnet-4-6 chain_idx=0
  [reviewer] fallback collision chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=codex-cli-0 target=anthropic/claude-sonnet-4-6 — another slot is already running it; advancing chain
  [reviewer] attempt failed chat=01A10040D5A94BDEC561A8869A6605F8 round=1 lineage=opencode model=opencode/nemotron-3-super-free kind=cli_failed duration_ms=4204 message="opencode exited 1: 3-super-free. Did you mean: nemotron-3-ultra-free, nemotron-3.5-lightning-free, fledge-alpha-free?\"}}}\r\n{\"type\":\"error\",\"timestamp\":1791005640344,\"sessionID\":\"ses_<redacted>\",\"error\":{\"name\":\"UnknownError\",\"data\":{\"message\":\"Unexpected serv
  [reviewer] fallback fired chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=opencode-cli-3 reason=lineage_fallback from=opencode/opencode/nemotron-3-super-free to=anthropic/claude-sonnet-4-6 chain_idx=0
  [reviewer] fallback collision chat=01A10040D5A94BDEC561A8869A6605F8 round=1 slot=opencode-cli-3 target=anthropic/claude-sonnet-4-6 — another slot is already running it; advancing chain
  [daemon] seeded 10 built-in personas
  [daemon] runtime PATH primed (31 dirs)
  [daemon] voices Phase 1: +0 added, 29 updated, 0 auto-disabled
  [daemon] refreshed builtin template: architect-review
  [daemon] refreshed builtin template: bug-diagnose
  [daemon] refreshed builtin template: code-review
  [daemon] refreshed builtin template: red-green
  [daemon] refreshed builtin template: review-only
  [daemon] refreshed builtin template: tri-review
  {"port":7707,"host":"127.0.0.1","version":"0.8.65","msg":"daemon listening","level":30,"time":1791040862703,"pid":497768,"hostname":"<host>"}
  Chorus daemon listening on http://127.0.0.1:7707
  [daemon] voices Phase 2 (opencode): +0 added, 86 updated, 0 auto-disabled
  [daemon] templates re-adapted after Phase 2 voice seed
  [daemon] voices Phase 2 (antigravity): skipped (CLI not detected or probe failed)
  {"chatId":"01A1025B6E93FCEEBCD91AFD139CA761","templateId":"review-only","phaseKind":"review_only","requestId":"req-7","hasArtifact":true,"hasRepoPath":true,"attachedFileCount":0,"msg":"chat created","level":30,"time":1791040908970,"pid":497768,"hostname":"<host>"}
  {"chatId":"01A1026AA71D599D1DC15A3A391F7E4B","templateId":"review-only","phaseKind":"review_only","requestId":"req-w","hasArtifact":true,"hasRepoPath":true,"attachedFileCount":0,"msg":"chat created","level":30,"time":1791041906542,"pid":497768,"hostname":"<host>"}
  [chorus] aborted 2 active runs (SIGTERM)
  [daemon] seeded 10 built-in personas
  [daemon] runtime PATH primed (31 dirs)
  [daemon] voices Phase 1: +0 added, 29 updated, 0 auto-disabled
  {"port":7707,"host":"127.0.0.1","version":"0.8.65","msg":"daemon listening","level":30,"time":1791042363779,"pid":514040,"hostname":"<host>"}
  Chorus daemon listening on http://127.0.0.1:7707
  [daemon] voices Phase 2 (opencode): +0 added, 480 updated, 0 auto-disabled
  [daemon] templates re-adapted after Phase 2 voice seed
  [daemon] voices Phase 2 (antigravity): skipped (CLI not detected or probe failed)
  {"chatId":"01A10271EE5C266AD673CF300AC9AB52","templateId":"review-only","phaseKind":"review_only","requestId":"req-4","hasArtifact":true,"hasRepoPath":true,"attachedFileCount":0,"msg":"chat created","level":30,"time":1791042383468,"pid":514040,"hostname":"<host>"}
  [chorus] aborted 1 active runs (SIGTERM)
  [daemon] seeded 10 built-in personas
  [daemon] runtime PATH primed (31 dirs)
  [daemon] voices Phase 1: +0 added, 30 updated, 4 auto-disabled
  [daemon] refreshed builtin template: review-only
  [daemon] refreshed builtin template: tri-review
  {"port":7707,"host":"127.0.0.1","version":"0.8.65","msg":"daemon listening","level":30,"time":1791042659864,"pid":515793,"hostname":"<host>"}
  Chorus daemon listening on http://127.0.0.1:7707
  [daemon] voices Phase 2 (opencode): +0 added, 480 updated, 0 auto-disabled
  [daemon] templates re-adapted after Phase 2 voice seed
  [daemon] voices Phase 2 (antigravity): skipped (CLI not detected or probe failed)
  {"chatId":"01A10276BFD66EEE6A301728F8527E49","templateId":"review-only","phaseKind":"review_only","requestId":"req-4","hasArtifact":true,"hasRepoPath":true,"attachedFileCount":0,"msg":"chat created","level":30,"time":1791042699232,"pid":515793,"hostname":"<host>"}
  {"chatId":"01A102AE6A5CCA21AACDB8E8A7680B80","templateId":"review-only","phaseKind":"review_only","requestId":"req-8","hasArtifact":true,"hasRepoPath":true,"attachedFileCount":0,"msg":"chat created","level":30,"time":1791046347397,"pid":515793,"hostname":"<host>"}

## Recent web.log (last 20 lines)
  ▲ Next.js 16.2.4
  - Local:         http://127.0.0.1:5050
  - Network:       http://127.0.0.1:5050
  ✓ Ready in 486ms
  ▲ Next.js 16.2.4
  - Local:         http://127.0.0.1:5050
  - Network:       http://127.0.0.1:5050
  ✓ Ready in 249ms
  ▲ Next.js 16.2.4
  - Local:         http://127.0.0.1:5050
  - Network:       http://127.0.0.1:5050
  ✓ Ready in 512ms
  ▲ Next.js 16.2.4
  - Local:         http://127.0.0.1:5050
  - Network:       http://127.0.0.1:5050
  ✓ Ready in 627ms
  ▲ Next.js 16.2.4
  - Local:         http://127.0.0.1:5050
  - Network:       http://127.0.0.1:5050
  ✓ Ready in 298ms

fayerman-source avatar Oct 03 '26 17:10 fayerman-source