fix: anchor project-relative docs destinations - #652
Merged
jeff-r2026 merged 1 commit intoSep 20, 2026
Merged
Conversation
The PR description includes a sufficient test plan and a concrete real-CLI E2E record. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sharing.docs.localDirvalues to the active scope base directory instead of the process cwd.uninstallso cleanup targets the same directory that pull and doctor use.~/...and absolute-path behavior.Fixes #635
Root cause
Project-scope initialization writes
./.teamai/docs. The old resolver returned that string unchanged, so pull/doctor/uninstall resolved it against whichever cwd invoked the command. This could create duplicate bundles in nested directories and let uninstall remove a user-owned cwd-relative directory while leaving the actual bundle behind.Validation
./.teamai/docsunchanged.npx tsc --noEmit: passed.npm run build: passed.doctor --jsonresolved the relative path under the temporary HOME;uninstall --forceremoved the anchored TeamAI docs while preserving apackages/web/.teamai/docs/keep.mddecoy.npm test: 3,436 passed; 73 existing Windows/path/permission/platform failures and one Vitest worker timeout remain unrelated to this change.git diff --check: passed.