Skip to content

[Bug]: API-created workspace does not appear to run polyscope.json setup scripts #185

Description

@justenh

Platform

macOS

Operating system version

macOS: 26.5 build 25F71

System architecture

Intel (x86)

PolyScope Version

0.20.0

Bug description

When a workspace is created through the API, the repository is cloned and usable, but the polyscope.json setup commands do not appear to run. This leaves the workspace preview unlinked in Herd and the .env still pointing at the source/shared local site instead of the workspace-specific preview URL.

Steps to reproduce

Use the Polyscope API to create a workspace for a repository that includes a polyscope.json.
2. Ensure polyscope.json defines a scripts.setup command that performs observable setup work, such as:

  • creating a local preview link,
  • updating .env values,
  • cloning or configuring a workspace-specific database.
  1. Wait for the workspace to finish creating.
  2. Open the created workspace.
  3. Check whether the setup side effects occurred.

Example polyscope.json shape:

{
  "scripts": {
    "setup": [
      "./scripts/polyscope/setup.sh",
      "composer install --no-interaction",
      "npm ci"
    ],
    "run": [
      {
        "label": "Start dev server",
        "command": "npm run dev",
        "autostart": true
      }
    ]
  },
  "preview": {
    "url": "https://{{folder}}.test"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions