Skip to content

Run OpenCode sessions the dashboard did not start in the durable server too - #22

Closed
moritzWa wants to merge 1 commit into
xhluca:mainfrom
moritzWa:opencode-external-durable
Closed

moritzWa wants to merge 1 commit into
xhluca:mainfrom
moritzWa:opencode-external-durable

Conversation

@moritzWa

@moritzWa moritzWa commented Oct 1, 2026

Copy link
Copy Markdown

What

Opening an OpenCode session the dashboard did not start (an external row) now attaches a TUI to the durable OpenCode server instead of spawning a standalone opencode --session process, whenever a supervisor is configured and the session's directory still exists. Turns sent from that TUI run in the server, so quitting the dashboard no longer aborts them, the same as for sessions the dashboard launched.

build_native_attach_command takes a session id and directory instead of an OwnedSession, so owned and external sessions share it. Without a supervisor, or when the directory is gone, the old standalone command is used.

Pairs with #21 (durable server on macOS) but does not depend on it. On main it applies wherever the supervisor already runs (Linux).

Tests

  • The existing attach-command test is updated for the new signature. cargo test passes on macOS.

@xhluca xhluca closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants