fix-chat-coordinator-2

Fix chat coordinator session directory registration

Metadata

Statusopen ‖ paused
Modelpi:zai:glm-5.2
Created2026-07-12T08:11:58.537164795+00:00
Started2026-07-26T05:53:59.930081872+00:00
Completed2026-07-26T06:07:40.758214802+00:00
Tagsimplementation, chat-control, regression
Tokens2471604 in / 5811 out

Description

Reproduce and fix live chat creation/resume failing after daemon restart. wg chat create hangs while the service runs; creating .chat-4 while stopped succeeds, but service start logs Coordinator-4 register_coordinator_session failed: No such file or directory, and wg chat resume .chat-4 hangs. Preserve Pi model routing and existing chat records. Add regression coverage for create while stopped, service start, and live registered chat, plus bounded IPC failure behavior.\n\n## Validation\n- cargo fmt --check\n- cargo clippy\n- focused tests for chat create/resume and coordinator session registration\n- smoke create Pi chat with openai-codex:gpt-5.6-sol while stopped, start service, verify attachable without missing-directory errors

Depends on

Required by

Messages 1 message

  1. #1user2026-07-12T08:28:05.093843937+00:00delivered
    Live repro details from coordinator check: with service restarted using --no-chat-agent, dispatcher works and agent-134 is running, but 'timeout 8 wg chat list' still times out. Current model routing resolves all roles to pi:* as expected, so the main live failure appears to be chat/session control state, not profile selection. Stale current-repo chat processes still exist from Tue Jul 7: wg tui pid 3098147, wg tui pid 3617175, codex-handler --chat chat-0 pid 3466035, codex-handler --chat chat-1 pid 3466038. Earlier service logs refused .chat-1 because chat-1 lock was held by pid 3466038 and deferred .chat-0 because TUI sentinel pid 3098147 was alive. sessions.json contains chat-0..chat-5; chat-4/chat-5 were created today. Please account for wg chat list bounded failure and stale live-lock/sentinel cleanup semantics in the fix/tests.

Log