The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Fix execution workspace company routing
dotta84e35b801cb5
diff --git a/ui/src/App.tsx b/ui/src/App.tsxindex 004baad269..f240defcf7 100644--- a/ui/src/App.tsx+++ b/ui/src/App.tsx@@ -343,6 +343,7 @@ export function App() {<Route path="projects/:projectId/workspaces" element={<UnprefixedBoardRedirect />} /><Route path="projects/:projectId/workspaces/:workspaceId" element={<UnprefixedBoardRedirect />} /><Route path="projects/:projectId/configuration" element={<UnprefixedBoardRedirect />} />+ <Route path="execution-workspaces/:workspaceId" element={<UnprefixedBoardRedirect />} /><Route path="tests/ux/runs" element={<UnprefixedBoardRedirect />} /><Route path=":companyPrefix" element={<Layout />}>{boardRoutes()}diff --git a/ui/src/lib/company-routes.test.ts b/ui/src/lib/company-routes.test.tsnew file mode 100644index 0000000000..d6dc266837--- /dev/null+++ b/ui/src/lib/company-routes.test.ts@@ -0,0 +1,23 @@+import { describe, expect, it } from "vitest";+import {+ applyCompanyPrefix,+ extractCompanyPrefixFromPath,+ isBoardPathWithoutPrefix,+ toCompanyRelativePath,+} from "./company-routes";++describe("company routes", () => {+ it("treats execution workspace paths as board routes that need a company prefix", () => {+ expect(isBoardPathWithoutPrefix("/execution-workspaces/workspace-123")).toBe(true);+ expect(extractCompanyPrefixFromPath("/execution-workspaces/workspace-123")).toBeNull();+ expect(applyCompanyPrefix("/execution-workspaces/workspace-123", "PAP")).toBe(+ "/PAP/execution-workspaces/workspace-123",+ );+ });++ it("normalizes prefixed execution workspace paths back to company-relative paths", () => {+ expect(toCompanyRelativePath("/PAP/execution-workspaces/workspace-123")).toBe(+ "/execution-workspaces/workspace-123",+ );+ });+});diff --git a/ui/src/lib/company-routes.ts b/ui/src/lib/company-routes.tsindex b8d51fd53e..48d71ef2f3 100644--- a/ui/src/lib/company-routes.ts+++ b/ui/src/lib/company-routes.ts@@ -6,6 +6,7 @@ const BOARD_ROUTE_ROOTS = new Set(["org","agents","projects",+ "execution-workspaces","issues","routines","goals",