multica/server/internal/daemon
Jiayuan b112d1f1ae feat(tasks): add coalescing queue and task lifecycle guards
- Coalescing queue: use HasPendingTaskForIssue (queued/dispatched only)
  instead of HasActiveTaskForIssue so comments during a running task
  enqueue exactly one follow-up task that picks up all new comments.
- Stale task cleanup: runtime sweeper now fails orphaned tasks when
  their runtime goes offline (daemon crash/network partition).
- Cancel-aware daemon: handleTask checks task status after execution
  and discards results if the task was cancelled mid-run (e.g. reassign).
- Terminal issue guard: ClaimTaskForRuntime auto-cancels pending tasks
  for done/cancelled issues instead of executing them.
- Race condition safety net: unique partial index ensures at most one
  pending task per issue at the DB level.
2026-03-29 17:52:35 +08:00
..
execenv feat(agent): add instructions field for agent persona/identity 2026-03-29 17:01:07 +08:00
usage fix(daemon): fix Codex token usage parsing from session logs 2026-03-28 00:03:47 +08:00
client.go feat(tasks): add coalescing queue and task lifecycle guards 2026-03-29 17:52:35 +08:00
config.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
daemon.go feat(tasks): add coalescing queue and task lifecycle guards 2026-03-29 17:52:35 +08:00
daemon_test.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
health.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
helpers.go fix(cli): address code review findings 2026-03-24 15:49:32 +08:00
prompt.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
types.go feat(agent): add instructions field for agent persona/identity 2026-03-29 17:01:07 +08:00