Run one OpenCode server per state folder and workspace #83
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/azkaban#83
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?
What happens
Each
opencodelaunch starts a container of its own (podman run --rm --init,bin/azkaban), and every launch of an identity mounts the samestate folder. OpenCode 2.x expects one background server per user to own
the sessions, permissions, and tool execution, registered in
~/.local/state/opencode/service.jsonwith its database in~/.local/share/opencode/opencode.db(CLI, Background service). Both paths
lie in the shared state, so two launches either meet a registration they
cannot reach or, with
--standalone, run two private servers on onedatabase.
Seen on Azkaban's
masterof 2026-11-20, with OpenCode 2.x on rootlessPodman: two sessions of one identity on one checkout, each with its own
opencode serve --stdio --port 0. Session lists and tabs of everyproject mix, since each workspace is
/workspace.Proposal
One server per state folder and workspace:
workspace joins it with
podman exec -itand runs the client there,which discovers the server already registered.
Open decisions
must end the client inside the container.
--accountgives today;whether a launch derives it from the workspace.
Untried on a host.