Skip to content

feat(workspaces): add search, faster polling, and startup fixes to the panel - #1205

Merged
EhabY merged 1 commit into
mainfrom
feat/workspaces-panel-features
Nov 19, 2026
Merged

EhabY merged 1 commit into
mainfrom
feat/workspaces-panel-features

Conversation

@EhabY

@EhabY EhabY commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fills the gaps in the experimental Workspaces panel before it becomes the default view in #1202. Everything here is still behind coder.experimental.workspacesPanel, so there is no changelog entry; #1202 lists the panel's features once users see it.

Polling and sockets

  • Like the dashboard, the panel lists every 5s while a build runs or a running workspace's agents come up, and every 30s otherwise. Before, it listed every 5s regardless (190 kB per list on a busy deployment).
  • The Agent chat lookup (/api/v2/chats/by-workspace) runs only when the listed workspace IDs change, or on refresh, filter switch, or session change, instead of after every list.
  • A dropped agent metadata socket is no longer replaced on the next list. ReconnectingWebSocket already reconnects it, and CoderApi resumes it when credentials change.
  • Socket error events log as warnings instead of errors, and a successful reconnect logs at info, so a drop and its recovery read as a pair.

Startup

  • The panel briefly showed the login page on startup, because "not signed in yet" read as signed out. The store now lists nothing until extension.ts has checked the stored session (the same moment coder.loaded is set for the trees' welcome view), and the webview shows the login only once that list settles.

Search

  • A Search button in the panel's title bar, like the trees', opens a find widget that floats over the top of the list and filters the listed workspaces by name, owner, or template. Ctrl+F (Cmd+F on macOS) opens it while the panel has focus. Escape or the close button closes it, and Enter or Arrow Down returns focus to the list.
  • The widget is TreeFindWidget in @repo/ui, built from VS Code's tree find widget (.monaco-tree-type-filter in 1.143): 200px wide, 3px padding, widget.border, bottom radii, listFilterWidget.background and listFilterWidget.shadow (none in high contrast), a 23px input, the 20px close action, and the slide-in from above when motion is allowed. Modern UI has no rules for this widget, so it looks the same in stable and Modern.
  • Webview views get no native find widget, and VS Code resolves a forwarded Ctrl+F to the editor's find (the view's focusedView context never matches its overlay webview), so the webview takes the key itself in the capture phase. Ctrl+Shift+F still reaches VS Code.
  • This is a client-side filter until a proper search bar that queries the deployment.

Create Workspace

  • The panel's title bar gets the Create Workspace button the My Workspaces tree already has.

🤖 Generated with Claude Code

@EhabY
EhabY added this pull request to stack #1206 November 19, 2026 13:33
@EhabY
EhabY marked this pull request as ready for review November 19, 2026 13:33
@EhabY
EhabY force-pushed the feat/workspaces-panel-features branch from e7235af to 216b565 Compare November 19, 2026 13:48
…e panel

Fills the gaps in the experimental workspaces panel before it becomes the
default view.

- Search: a title bar button, or Ctrl+F while the panel has focus, opens a
  find widget over the list that filters by name, owner, or template.
  `TreeFindWidget` in @repo/ui mirrors VS Code's tree find widget. VS Code
  resolves a forwarded Ctrl+F to the editor's find, so the webview takes
  the key itself.
- Polling: like the dashboard, list every 5 seconds while a build runs or
  agents come up, and every 30 otherwise. The Agent chat lookup runs only
  when the listed workspaces change.
- Sockets: a dropped agent metadata socket is no longer replaced, since it
  reconnects on its own. Socket errors log as warnings, and a reconnect
  logs at info.
- Startup: show loading, not the login page, until the stored session is
  checked.
- The panel gets the Create Workspace title button the trees have.
@EhabY
EhabY force-pushed the feat/workspaces-panel-features branch from 216b565 to 698ddd3 Compare November 19, 2026 14:47
@EhabY
EhabY requested a review from jeremyruppel November 19, 2026 15:02

@jeremyruppel jeremyruppel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just type nits, looks good!

@EhabY
EhabY merged commit b44f4a9 into main Nov 19, 2026
15 of 16 checks passed
@EhabY
EhabY deleted the feat/workspaces-panel-features branch November 19, 2026 20:36
EhabY added a commit that referenced this pull request Nov 19, 2026
…1202)

Shows the Workspaces panel in the Coder Remote sidebar in place of the
legacy My, Shared and All Workspaces tree views, with a visible setting to
switch back.

- Add coder.workspacesPanel.enabled (default true, application scope),
  replacing the hidden experimental setting and its activity bar container
- Show exactly one of the panel and the tree views, using when clauses
  that read the setting directly and switch without a reload
- Add Switch to Legacy Tree Views and Switch to Workspaces Panel to the
  title bar menus and Command Palette
- Merge the refresh commands into coder.workspaces.refresh, which
  refreshes every visible workspace view
- Skip panel refreshes while hidden, so the panel no longer shows a stale
  failure
- Collect the setting in support bundles
- List the panel's features in the CHANGELOG

Related to #1113, #1205
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