Skip to content

fix(hooks): seed project agent root on SessionStart before pull - #346

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/session-start-seed-project-agent
Aug 27, 2026
Merged

jeff-r2026 merged 1 commit into
mainfrom
fix/session-start-seed-project-agent

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • In project scope, SessionStart with --tool claude|cursor|codebuddy|… now creates that agent's project root (<project>/.claude, etc.) before teamai pull, so the first open of Claude/Cursor/CodeBuddy actually syncs skills.
  • Bare teamai pull / teamai init still do not invent agent directories. Disabled agents and tools missing from enabledAgents are not seeded.
  • Completes the original project-scope cold-start workflow that fix(pull): sync newly available agent targets #343 only covered for already-existing roots.

Test plan

  • Unit: seedProjectAgentRoot creates only the requested tool root; no-ops for user scope, disabled agents, unknown tools, and enabledAgents misses
  • Unit: SessionStart pull handler calls seed before pull({ silent: true })
  • E2E: bare teamai pull does not create .claude
  • E2E: hook-dispatch session-start --tool claude --bg-only seeds .claude and writes the team skill; --tool cursor seeds only .cursor; disabled codebuddy is not created
  • Local: global CLI from this branch, open Claude in a project-scope repo (hai) — .claude/ appears and pull targets are no longer empty

Made with Cursor

Project-scope init never creates .claude/.cursor/.codebuddy, and Claude
opens using ~/.claude, so pull saw no local target. SessionStart now
mkdirs the current --tool root under the project, then pulls.

Co-authored-by: Cursor <[email protected]>
@jeff-r2026 jeff-r2026 self-assigned this Aug 27, 2026
@jeff-r2026
jeff-r2026 merged commit c29a9d0 into main Aug 27, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/session-start-seed-project-agent branch August 27, 2026 06:11
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
…ent#346)

Project-scope init never creates .claude/.cursor/.codebuddy, and Claude
opens using ~/.claude, so pull saw no local target. SessionStart now
mkdirs the current --tool root under the project, then pulls.

Co-authored-by: Cursor <[email protected]>
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.

1 participant