feat: shared workspaces support#306
Draft
aslilac wants to merge 2 commits into
Draft
Conversation
Add a `workspaceFilter` setting (defaults to `owner:me`) so users can broaden the listing to include workspaces shared with them. The URI handler now accepts an optional `owner` query parameter to disambiguate workspaces by name across owners, and the environment list surfaces the workspace owner as an environment information entry. Generated with Coder Agents on behalf of @aslilac.
- Always query both `owner:me` and `shared:true`; merge and dedupe. - Drop the `workspaceFilter` setting. - Shared workspaces (where `ownerName != client.me.username`) use `<owner>.<workspace>.<agent>` as their environment id so they don't collide with the user's own workspaces; owned workspaces keep the legacy `<workspace>.<agent>` id.
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.
Lists workspaces shared with the current user alongside the user's own workspaces.
CoderRestClient.workspaces()now issues two queries (owner:meandshared:true) and merges the results, deduped by workspace id. Theshared:truequery is best-effort, so older servers that don't recognize it still work.<owner>.<workspace>.<agent>so they can't collide with the user's own<workspace>.<agent>ids. Owned workspaces keep their existing id, so per-environment state (auto-connect, etc.) is preserved.ownerquery parameter so deep links to shared workspaces resolve to the right one when names collide across owners.