refactor: make OpenCode instance lifecycle runtime-neutral #376
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman#376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#375
What to build
Make ocman the authoritative owner of each managed project OpenCode instance while preserving native tmux behavior.
EnsureProjectOpencoderemains the host-local orchestration seam, but launch returns a reachable endpoint and opaque runtime identity instead of requiring a laterlsoflookup and tmux-specific result.This prefactor must correct existing lifecycle gaps: concurrent ensures, manual duplicate launches, stale tmux sessions, health verification, restart routing, and recovery of managed native instances after ocman restarts. Container support is not part of this ticket.
Acceptance criteria
hostsvc.Hostand works for local and remote native instances.Blocked by
None - can start immediately.
Resolved. The runtime-neutral lifecycle landed on
main(squash39cf7a5, PRs #390–#394) with follow-up fixes #395, #396, #397.Acceptance criteria:
Container support (#375) remains out of scope for this ticket.