You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 266e123
Browse filesBrowse the repository at this point in the historyBrowse files
fix(workspace): the project boundary is the worktree root, and containment is by path segment
The previous commit's containment check regressed a valid case: it compared
against the session's directory, but discovery walks up to the worktree
root, so `skill publish x` run from `repo/models` refused
`repo/.opencode/skills/x`. `publishSkill` takes a separate `projectRoot`
boundary (the worktree on both surfaces; the session directory for a
project with none) while the binding stays keyed on `projectDirectory`.
`skillSource` contains by path segment (`path.relative`), not by string
prefix: `~/.claude/skills-archive/x` is not inside `~/.claude/skills`, and
the prefix check refused it as personal. The real path that passed the
check is what `collectBundle` walks, so a root swapped after the check is
not what uploads. The ledger-identity test now reaches the skill through a
symlinked PARENT so it exercises canonicalisation on Linux too.
Verified: 649 pass across the workspace, plugin, fork-guard and skill
suites, typecheck clean. Mutation-checked: comparing against the session
directory, and containing by prefix, each fail a test; reading the lexical
root instead of the validated one has no observable difference without a
concurrent writer, and is closed by construction.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
0 commit comments