Uh oh!
There was an error while loading. Please reload this page.
refactor(tui): switch to global events and start passing workspace param - #21719
Merged
Conversation
jlongster
marked this pull request as ready for review
April 9, 2026 17:14
jlongsterforce-pushed
the
jlongster/tui-workspace-integrate
branch
from
April 9, 2026 17:27
4e03eff to
5d68c61Comparejlongster
commented
Apr 9, 2026
| // directory: space.id, | ||
| // payload: event, | ||
| // }) | ||
| // }) |
ContributorAuthor
There was a problem hiding this comment.
This is intentional -- this isn't used yet and this is the wrong way to do it, will fix it up soon
Contributor
This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch Please resolve this issue to include this PR in the next beta release. |
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
Uh oh!
There was an error while loading. Please reload this page.
opencode-agentBot
added a commit
that referenced
this pull request
Apr 10, 2026
…sing workspace param
luke-barge-cko added a commit
to luke-barge-cko/opencode-cko
that referenced
this pull request
Apr 10, 2026
* refactor(tool): convert question tool internals to Effect (anomalyco#21808) * refactor(tool): convert lsp tool internals to Effect (anomalyco#21806) * chore: generate * refactor(tool): convert plan tool internals to Effect (anomalyco#21807) * refactor(tui): switch to global events and start passing workspace param (anomalyco#21719) * refactor(tool): convert webfetch tool internals to Effect (anomalyco#21809) * chore: generate * refactor(tool): convert websearch tool internals to Effect (anomalyco#21810) * chore: generate * refactor(tool): convert codesearch tool internals to Effect (anomalyco#21811) * rector(core,tui): handle workspace state in project context, add workspace status, improve ui (anomalyco#21896) * refactor(tool): convert bash to defineEffect with ChildProcessSpawner (anomalyco#21895) * chore: generate * convert glob tool to Tool.defineEffect (anomalyco#21897) * chore: generate * tweak: make it so disabling uv or ruff fmters disables both (anomalyco#21921) * convert list tool to Tool.defineEffect (anomalyco#21899) * chore: generate * refactor(tool): convert write tool to Tool.defineEffect (anomalyco#21901) * zen: nemotron doc * chore: generate * refactor: convert edit tool to Tool.defineEffect (anomalyco#21904) * chore: generate --------- Co-authored-by: Kit Langton <kit.langton@gmail.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: James Long <longster@gmail.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: Frank <frank@anoma.ly>
mrsimpson pushed a commit
to mrsimpson/opencode
that referenced
this pull request
Apr 14, 2026
xywsxp pushed a commit
to xywsxp/opencode
that referenced
this pull request
Apr 24, 2026
AIALRA-0 pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
AIALRA-0 pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
avion23 pushed a commit
to avion23/opencode
that referenced
this pull request
Jun 10, 2026
MarsQiu007 referenced
this pull request
in MarsQiu007/openNovel
Jul 31, 2026
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 freeto 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.
We need to handle workspaces in the SDK better. Previously the SDK was given a directory when creating it and everything every request used that directory. Now with workspaces, we should be able to switch between workspaces at will and signal this to the SDK. Requests should be routed to the right workspace.
We could recreate the SDK each time we want to talk to a different workspace, but that has various limitations and is bulky. Instead, we add a the
workspaceparam to all the requests that should be routed to a workspace. We don't need to this for any session-related methods as in the backend we can resolve that automatically.Additionally, we need to switch the TUI to subscribe to global events. We can't subscribe to a specific instance of events anymore, as separate workspaces will have separate instances. We should be able to freely switch between them. Switching to global events make it easy to consume and filter events as desired.