Skip to content

fix(site): show cross-org workspaces as disabled in chat picker#24944

Merged
Emyrk merged 5 commits into
mainfrom
fix/agents-show-cross-org-workspaces-disabled
May 5, 2026
Merged

fix(site): show cross-org workspaces as disabled in chat picker#24944
Emyrk merged 5 commits into
mainfrom
fix/agents-show-cross-org-workspaces-disabled

Conversation

@Emyrk
Copy link
Copy Markdown
Member

@Emyrk Emyrk commented May 4, 2026

What does this solve?

When using Agents, I was trying to connect a chat I was using to my workspace. I was unable to find the workspace because it was in another organization as the chat. This was not made obvious, and I spent awhile looking through the docs on why a workspace might be unable to be attached.

This change makes all workspaces visible to the picker, with workspaces in other orgs disabled with a tooltip message saying why.

What changed

All user workspaces now appear in the picker. Workspaces from a different organization are rendered as disabled (greyed out, not selectable) with a tooltip on hover: "Chat and workspace must be in the same organization."

Changes:

  • Removed client-side filterWorkspaceOptionsByOrganization filtering; pass all workspaces to the picker instead
  • Added chatOrganizationId prop threaded through ChatPageContent to AgentChatInput
  • Extracted a shared WorkspacePickerList component (used by both mobile and desktop pickers) that marks cross-org workspaces as disabled with a tooltip
  • Removed the now-unused filterWorkspaceOptionsByOrganization function and its tests
Generated by Coder Agents This PR was generated by Coder's AI agent based on a user report that workspaces from other organizations were invisible in the chat workspace picker, with no explanation for their absence.

Examples

When in the Coder org

Screenshot From 2026-05-04 14-17-10

When in my side org

Screenshot From 2026-05-04 14-17-02

On hover

Screencast.From.2026-05-04.14-28-23.webm

…chat picker

Previously, workspaces from organizations other than the chat's
organization were silently filtered out of the workspace attachment
picker. Users had no indication why a workspace was missing.

Show all user workspaces in the picker. Workspaces from a different
organization are rendered as disabled with a tooltip explaining that
the chat and workspace must be in the same organization.
@Emyrk Emyrk changed the title fix(site/pages/AgentsPage): show cross-org workspaces as disabled in chat picker fix(site): show cross-org workspaces as disabled in chat picker May 4, 2026
@Emyrk Emyrk marked this pull request as ready for review May 4, 2026 19:25
@Emyrk Emyrk requested a review from DanielleMaywood May 4, 2026 19:33
Copy link
Copy Markdown
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code comments are low-value but other than that, LGTM

@Emyrk Emyrk merged commit 9b46660 into main May 5, 2026
57 of 60 checks passed
@Emyrk Emyrk deleted the fix/agents-show-cross-org-workspaces-disabled branch May 5, 2026 14:07
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants