[bug] codebase --deep-enrich in a team repo reports success but never publishes, and leaves the team clone dirty
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
Research direction
Compare the team repo publishing path used by teamai import with codebase --deep-enrich when --output is omitted; the issue identifies the missing publish step and provides a local bare repo reproduction. Trace both command entry points and their publish logic, then reproduce the dirty clone and verify that success leaves no generated files uncommitted. Pull request #1538 is already open.
Written by the indexing model from the issue text.
Description
What happens
In a team that keeps its knowledge in the team repo (no --output), teamai codebase --deep-enrich --project <name> writes the generated docs into the local team clone and stops there. It reports success, but nothing reaches the remote, and the clone is left dirty:
$ teamai import --dir ./svc # deep enrich incomplete on the first try
$ teamai codebase --deep-enrich --project svc
✔ deep-enrich[svc]: Deep knowledge generation complete
Deep enrichment complete: project=svc exit 0
$ git -C <team clone> status --short
M teamwiki/evidence/code/svc/_review/progress.json
M teamwiki/router.md
?? teamwiki/evidence/code/svc/docs/architecture.md
?? teamwiki/evidence/code/svc/docs/lib.md
# the remote still has no architecture.md or lib.md
$ teamai push
✖ Cannot push: the team repo has uncommitted changes. Commit or stash them first. Paths: teamwiki/router.md
teamai pull exits 0 and keeps the files local, so nothing ever publishes them. The member's next teamai push, for example to share a skill, fails until they clean the clone by hand.
Re-running the same import (teamai import --dir ./svc, or --from-repo <url>) resumes deep enrich and publishes the docs.
Why
codebase --deep-enrich writes into the team clone like import does, but unlike import it has no publish step for the team-repo case. With --output, it writes to that directory and there is nothing to publish, so that case works.
Evidence
Built CLI on main (898b82af), isolated HOME, a team from teamai init <team> --provider git on a local bare repo, and a stub AI tool. The run is in the steps above. Found while reviewing #1534, whose retry line for import points at this command.
Possible fix
- After
codebase --deep-enrichwrites into the team clone, publish the wayimportdoes (same push or branch path), or - refuse in a team repo without
--outputand name theteamai import …command that resumes and publishes.
Either way, the command never leaves the team clone dirty after reporting success.
- Dominant language
- TypeScript
- Stars
- 5.6k
- Forks
- 471
- Avg merge
- 19h 39m
- Merged PRs (30d)
- 404
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Tencent/teamai-cli
-
[feat] deep-enrich: compare the G documents with the wiki method, then write what is missingPossibly taken @huong8373tt-beep claimed this today. Open
Difficulty 5/5 Over a week Newbie friendliness 42/100
Tencent/teamai-cli#1565 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Tencent/teamai-cli#1564 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Tencent/teamai-cli#1563 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Tencent/teamai-cli#1562 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Tencent/teamai-cli#1552 · 1 comment ·
Maintainers usually reply within 1 day
All issues in Tencent/teamai-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CopilotKit/openmuse#215 ·
Maintainers usually reply within 3 days
-
b:minor bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/argent#1698 ·
Maintainers usually reply within 1 day
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 comment ·
Maintainers usually reply within 1 day