Skip to content

Commit c845624

Browse files
CraftLoganclaude
andcommitted
Fix workspace creation API route to use versioned endpoint
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>
1 parent eaeec36 commit c845624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/chrome-extension/src/background

packages/chrome-extension/src/background/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
670670
if (serverId) body.server_id = serverId;
671671
if (url) body.preview_url = url;
672672

673-
const res = await fetch(`${BACKEND_URL}/api/workspaces`, {
673+
const res = await fetch(`${BACKEND_URL}/api/v1/workspaces`, {
674674
method: "POST",
675675
headers: {
676676
Authorization: `Bearer ${apiToken}`,

0 commit comments

Comments
 (0)