Skip to content

Fix workspace creation API route to use versioned endpoint#3

Merged
mpociot merged 1 commit intobeyondcode:mainfrom
CraftLogan:fix/workspace-api-route
Mar 21, 2026
Merged

Fix workspace creation API route to use versioned endpoint#3
mpociot merged 1 commit intobeyondcode:mainfrom
CraftLogan:fix/workspace-api-route

Conversation

@CraftLogan
Copy link
Contributor

@CraftLogan CraftLogan commented Mar 21, 2026

Summary

  • The create-workspace-for-tab handler in the background script was calling /api/workspaces directly, bypassing the SDK which correctly prefixes routes with /api/v1/
  • This caused a "The route api/workspaces could not be found" error when creating workspaces
  • Fixed by changing the endpoint from /api/workspaces to /api/v1/workspaces

Closes #2

Test plan

  • Build the extension (npm run build in packages/chrome-extension)
  • Load unpacked extension from dist/ in Chrome
  • Create a workspace from a preview tab and verify it succeeds without route errors

🤖 Generated with Claude Code

The create-workspace-for-tab handler was calling /api/workspaces directly,
bypassing the SDK which correctly prefixes routes with /api/v1/. This caused
a "route could not be found" error when creating workspaces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mpociot mpociot merged commit 187e7dc into beyondcode:main Mar 21, 2026
@mpociot
Copy link
Member

mpociot commented Mar 21, 2026

Thank you!

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.

The route api/workspaces could not be found.

2 participants