[Phase 7] Daemon isolation - call kugetsu as subprocess #242

Closed
opened 2026-04-08 06:30:50 +02:00 by shoko · 0 comments
Owner

Problem

The queue-daemon currently sources and calls directly, making it impossible to test without spawning opencode agents.

Solution

Refactor daemon to call as subprocess:

  1. In , change from:

    To:

  2. Check exit code to determine next action:

    • : success, update queue state to "notified"
    • : max agents, log and break loop for this interval
    • or other: mark task error
  3. For testing: run daemon with to prevent opencode spawns

Status

BLOCKED - Depends on Phase 5 + Phase 6 (exit codes + dry-run env var)

Files

Parent: #235
Blocked by: #240 (Phase 5), #241 (Phase 6)

## Problem The queue-daemon currently sources and calls directly, making it impossible to test without spawning opencode agents. ## Solution Refactor daemon to call as subprocess: 1. In , change from: To: 2. Check exit code to determine next action: - : success, update queue state to "notified" - : max agents, log and break loop for this interval - or other: mark task error 3. For testing: run daemon with to prevent opencode spawns ## Status **BLOCKED** - Depends on Phase 5 + Phase 6 (exit codes + dry-run env var) ## Files - ## Related Issues Parent: #235 Blocked by: #240 (Phase 5), #241 (Phase 6)
shoko closed this issue 2026-04-08 06:33:51 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#242