Commit graph

9 commits

Author SHA1 Message Date
Natalie
2d978b5fe3 fix(dispatch): discover sessions by canonical host label, not raw "local"
discover_session polled `rclaude list sessions` for the freshly spawned
session but filtered rows with `r.host == host` where host is the
canonical name (e.g. "plum"), while rclaude labels the calling machine's
own sessions "local". "local" == "plum" is always False, so discovery
matched nothing and timed out even though the session's JSONL was already
on disk (observed: 18s after spawn, inside the 30s window). dispatch then
falsely returned "spawned but not discovered", orphaning the live session
until a manual pull.

Root cause is a missing host-label normalization the pull loop already
does. Fix discover_session to canonicalize both sides via
resolve_host_label, and key local-path symlink resolution on the ROW's
raw label. Apply the same normalization to dispatch_task's pre_uuids
filter (identical mismatch left it empty, risking a stale-sibling match
at a shared cwd). 2 regression tests reproduce rclaude's "local" labeling
(the old fake echoed the dispatch host, masking the bug). 310 tests pass.

Committed manually with ALLOW_COMMIT=1 per user authorization: the
auto-commit service's message LLM was timing out on this repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 22:46:28 -06:00
Natalie
53921b4e94 refactor(domain): rename ChatRole persisted value clare → claire (migration 0010)
ChatRole.CLAIRE now persists as "claire" everywhere. Migration 0010
rewrites both the chat_messages.role column and the chat_message_posted
event payloads in one transaction so a future replay reconstructs the
same projection.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 14:29:30 -06:00
Natalie
9f81bfc777 feat(@projects/@claire): enhance session naming with org/project prefix
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-22 17:34:07 -07:00
autocommit
8792bffb7e test(config-dispatch): Add comprehensive test cases for config validation and dispatch logic
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-22 14:28:15 -07:00
Natalie
4b768acba2 feat(@projects/@claire): add tmux_name validation in session dispatch tests
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-22 00:38:16 -07:00
Natalie
8b931e6337 feat(@projects/@claire): improve session targeting and briefing
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-21 20:12:22 -07:00
Natalie
aa1378a807 feat(@projects): add session orchestration & web UI components
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-21 19:54:42 -07:00
autocommit
6d212b7dbe refactor(testing-test): ♻️ Update test imports to use claire instead of clare in package references
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-20 19:54:05 -07:00
Natalie
a7cc0bdeab feat(orchestrator): add autonomous dispatch capability
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-20 05:22:35 -07:00