Skip to content

Commit 7d2de22

Browse files
sahrizviclaude
andcommitted
fix(workspace): the surfaces render NotWorkspaceOwnerError as advice, not as a failure
Merged from #1280; `explainPublishError` covers the new typed error so the CLI and the TUI both show "link this project to one of yours, or ask the owner" rather than wrapping it as a raw failure. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
1 parent 99bca7c commit 7d2de22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/opencode/src/altimate/workspace/skill-publish.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ export function explainPublishError(err: unknown): string | null {
750750
err instanceof BundleTooLargeError ||
751751
err instanceof SkillNameConflictError ||
752752
err instanceof SkillChangedElsewhereError ||
753+
err instanceof NotWorkspaceOwnerError ||
753754
err instanceof AttachFailedError
754755
)
755756
return err.message

0 commit comments

Comments
 (0)