Skip to content

docs(uninstall): explain cleanup of shared built-in hooks - #1832

Merged
SaulMoro merged 2 commits into
Tencent:mainfrom
STiFLeR7:docs/uninstall-shared-hooks-cleanup
Nov 11, 2026
Merged

SaulMoro merged 2 commits into
Tencent:mainfrom
STiFLeR7:docs/uninstall-shared-hooks-cleanup

Conversation

@STiFLeR7

Copy link
Copy Markdown
Collaborator

Summary

A workspace uninstall can leave built-in hooks in the tool home, and a later uninstall outside the workspace can fall back to TeamAI home cleanup. Document when to run teamai hooks remove while the last workspace is still configured, and when to keep hooks for another checkout or install. The English and Chinese guides and the setup skill now give the same order.

Type of Change

  • Documentation only

Test Plan

  • Built the CLI at 03099c9d and tested on native Windows with isolated profiles and a local bare Git remote.
  • In the only workspace, full uninstall followed by outside-workspace uninstall left six Codex built-in hook events. The preview named the shared file without changing it. Running teamai hooks remove before uninstall removed the built-ins and preserved the tracked member hook.
  • In a linked worktree, uninstalling Codex only there stopped its team hook and kept the primary checkout's hook working.
  • git diff --check passed.

Related Issues

Related to #1825.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

Approving. Both quoted strings match the CLI's own output: Kept for other teamai installs and the teamai hooks remove advice in src/uninstall.ts. The order it gives (remove the hooks while the last workspace is still configured, then uninstall it) is the only way out until #1825 is fixed, and the English and Chinese FAQ say the same thing.

  • [P3 nit] The new skill-data/setup/references/uninstall.md paragraph is hard-wrapped, while the paragraphs around it are one line each.
  • [P3 nit] The FAQ paragraph opens with "A project uninstall" and then says "workspace" three times. One term reads more easily.

@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff.

The changes are documentation-only, and the English guide, Chinese guide, and setup skill consistently describe removing unused shared built-in hooks before uninstalling the last configured workspace.

The PR description documents sufficient testing. Documentation-only changes require no real-CLI record; the supplied Windows verification record is additional evidence. No earlier findings were supplied.

No PR code was run, built, or installed.

@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff.

The documentation-only changes consistently explain hook cleanup before uninstalling the last configured workspace, while preserving hooks needed by other installs.

The PR description documents sufficient testing; documentation-only changes require no real-CLI record. The supplied Windows verification is additional evidence.

The earlier review reported no findings, so none require resolution. No PR code was run, built, or installed.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

Approving 25df6142. Both nits are fixed: the wording is consistent in both FAQs, and the skill paragraph is one line like the rest. I'll merge once CI is green.

@SaulMoro
SaulMoro merged commit 561efc7 into Tencent:main Nov 11, 2026
20 checks passed
@STiFLeR7
STiFLeR7 deleted the docs/uninstall-shared-hooks-cleanup branch November 11, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants