Repository navigation
Conversation
jensenojs
force-pushed
the
feat/server-attach-tui
branch
from
June 6, 2026 02:46
964b7a1 to
3dfefeb
Compare
jensenojs
force-pushed
the
feat/server-attach-tui
branch
from
June 10, 2026 06:48
3dfefeb to
9c22c98
Compare
jensenojs
force-pushed
the
feat/server-attach-tui
branch
3 times, most recently
from
June 14, 2026 00:06
1123df5 to
430a12b
Compare
This was referenced Jun 14, 2026
jensenojs
force-pushed
the
feat/server-attach-tui
branch
from
June 15, 2026 03:35
430a12b to
d6834e4
Compare
This was referenced Jun 15, 2026
|
Would be cool if this merged. Tired to typing attach url each time |
jensenojs
force-pushed
the
feat/server-attach-tui
branch
2 times, most recently
from
July 1, 2026 08:04
c844442 to
155fc99
Compare
… server after last client
jensenojs
force-pushed
the
feat/server-attach-tui
branch
from
July 2, 2026 06:49
155fc99 to
4d7fe3f
Compare
Contributor
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #17322, About 40% of this diff is focused test coverage.
Type of change
What does this PR do?
This adds a
server.attachconfig value for the default TUI path.When configured,
opencodechecks the target server's/global/healthendpoint and attaches to it instead of starting the embedded server. When unset, existing behavior is unchanged.{ "server": { "attach": "http://127.0.0.1:4096" } }For local attach targets, the TUI can start opencode serve when no server is already listening. That auto-started server shuts down after the last client disconnects, avoiding stale local server processes while preserving the current embedded default for users who do not opt in.
How did you verify your code works?
Added focused tests covering the config-driven attach path, preserved embedded fallback behavior, local auto-start failures/success, and last-client shutdown for auto-started
serveprocesses.Screenshots / recordings
This enables shared-server workflows where multiple clients connect to the same opencode session.
Checklist