Skip to content

fix: load workspace templates on initial connect#198

Closed
JiahaoZhu11 wants to merge 1 commit intodifferent-ai:devfrom
JiahaoZhu11:fix/template-initial-loading
Closed

fix: load workspace templates on initial connect#198
JiahaoZhu11 wants to merge 1 commit intodifferent-ai:devfrom
JiahaoZhu11:fix/template-initial-loading

Conversation

@JiahaoZhu11
Copy link
Copy Markdown
Contributor

Summary

  • Fix workspace templates not loading on initial connect for local workspaces

Problem

Workspace templates were only loaded during connect() when workspaceType === "remote". This caused templates in local workspaces to not appear until a new template was created (which triggered a reload via saveTemplate()).

Solution

Removed the workspaceType === "remote" restriction so templates load for all workspace types.

Test plan

  • Open a local workspace with existing templates in .openwork/templates/
  • Verify templates appear immediately after connecting
  • Verify remote workspace template loading still works

Previously, workspace templates were only loaded when connecting to remote
workspaces due to a `workspaceType === "remote"` condition. This caused
templates in local workspaces to not appear until a new template was created,
which triggered a reload via saveTemplate().

Removed the restriction so loadWorkspaceTemplates() is called for all workspace
types when a valid targetRoot exists.
@JiahaoZhu11 JiahaoZhu11 marked this pull request as draft January 22, 2026 23:38
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.

1 participant