You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tower: workspace routes refuse Windows UNC workspace paths; the path check is copied inline in every route #1960
Tower's workspace routes refuse a Windows UNC workspace path (\\server\share\repo) with 400. The path check accepts only a path that starts with / or a drive letter:
The same inline check is repeated in each /api/workspaces/:path/... handler in packages/codev/src/agent-farm/servers/tower-routes.ts (activate / deactivate / status, add-architect, remove-architect, the workspace dashboard route), and the workspace-name route added by the stage 1 addressing work copies it. So a workspace on a network share cannot be started through Tower at all.
Found by a reviewer during the stage 1 addressing work (issue #1940). It was left out of that PR on purpose: it changes routes outside that spec, on a platform the builder could not run.
Asked for
Decide whether UNC workspaces are supported. Accepting one makes Tower open a network path named in a request. If the answer is no, say so in the error ("UNC paths are not supported") and in the docs, instead of a bare 400.
If yes: replace the repeated inline checks with one shared predicate, accept UNC there, and route the result through workspaceKey() like every other Windows workspace path.
Either way, the repeated checks become one function with unit tests (POSIX absolute, drive-letter with both separators, UNC, relative, empty).
A Windows run on a machine with a real share before UNC is called supported; the on-demand Windows workflow alone does not prove it.
Notes
No report of a user hitting this. It is a known boundary, recorded so the next person does not rediscover it.
Activity