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.
- Wait for the workspace to finish creating.
- Open the created workspace.
- 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"
}
}
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.jsonsetup commands do not appear to run. This leaves the workspace preview unlinked in Herd and the.envstill 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.jsondefines ascripts.setupcommand that performs observable setup work, such as:.envvalues,Example
polyscope.jsonshape:{ "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" } }