Skip to content

tower: workspace routes refuse Windows UNC workspace paths; the path check is copied inline in every route #1960

Backlog

Description

@waleedkadous

Problem

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:

if (!workspacePath || (!workspacePath.startsWith('/') && !/^[A-Za-z]:[\\/]/.test(workspacePath))) {

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

  1. 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.
  2. 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.
  3. Either way, the repeated checks become one function with unit tests (POSIX absolute, drive-letter with both separators, UNC, relative, empty).
  4. 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

  1. added
    area/tower
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions