fix(skills): name the account scope in skill-name conflict errors, not "this workspace"

Merged
AL
3h ago
+124-7

Summary

Automated fix proposed by the Altimate software factory; a maintainer reviews every change.

Changes

2 files changed, 124 lines added, 7 lines removed.

  • packages/opencode/src/altimate/workspace/skill-publish.ts
  • packages/opencode/test/altimate/workspace/skill-publish-conflict-scope.test.ts

New tests

  • packages/opencode/test/altimate/workspace/skill-publish-conflict-scope.test.ts

Independent review: accepted, confidence 0.91


Summary by cubic

Fixes skill-publish conflict errors that said "in this workspace" when skill names are actually unique per creator across the whole account, so users were looking in the wrong place.

The conflicting skill may live in a workspace the project was never linked to. The error now names the account scope, and includes the owning workspace when the 409 detail carries it. This fixes #1349.

  • New test file skill-publish-conflict-scope.test.ts covers create and rename conflict messaging.