Skip to content

fix: add required acceptTerms field to workspace create body - #13

Open
polylane[bot] wants to merge 1 commit into
mainfrom
polylane/autofix/chat/j6l37lddqqht-69f7df6
Open

fix: add required acceptTerms field to workspace create body#13
polylane[bot] wants to merge 1 commit into
mainfrom
polylane/autofix/chat/j6l37lddqqht-69f7df6

Conversation

@polylane

@polylane polylane Bot commented Aug 3, 2026

Copy link
Copy Markdown

🟡 Fixes: CI failing: CI on coreplanelabs/cli@main
active for 5m

Lineage Status
◉ Alert issue CI failing: CI on coreplanelabs/cli@main 🟡 active
🗼 ↳ investigated in Investigation thread
🔧 ↳ kicked off Autofix fix_fc50f5… succeeded
🔀 ↳ opened this PR open

CI on the main branch was failing the typecheck step. The workspace-create command builds the request body for creating a workspace, but the generated API client recently began requiring an explicit terms-acceptance flag on that body. The command was omitting it, so TypeScript rejected the call and the build failed. This change sets that flag, matching the command's existing behavior of accepting terms on the user's behalf.

What changed

  • src/commands/workspace/create.ts — added acceptTerms: true to the CreateWorkspaceBody literal passed to workspacesPost, satisfying the generated client's required field.

Validation

  • npm run typecheck — pass (pretypecheck codegen + strict typecheck)
Root cause, safety reasoning, and scoping notes

Root cause

The generated client type CreateWorkspaceBody marks acceptTerms as required (acceptTerms: true). The command already writes a terms-of-service notice to stderr and implicitly accepts terms on the user's behalf, so setting the field is the correct behavior — not a paper-over.

Why it's safe

Additive field set in a request body; no schema, config, or interface change. The command already displayed a terms-of-service notice and accepted on the user's behalf — this just sets the field the API now requires.

Out of scope / follow-ups

The GitHub Actions warning about Node.js 20 deprecation in .github is a runner environment concern outside this repository's code and was not touched.

1 file changed (+1/-1)
  • src/commands/workspace/create.ts: modified, +1/-1

view-autofix view-investigation view-issue


Generated by Polylane.

Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
@polylane polylane Bot added the polylane label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants