Skip to content

feat(agents): let the team repo replace the built-in teamai-recall agent - #1691

Merged
SaulMoro merged 8 commits into
Tencent:mainfrom
hz89Dev:feat/team-recall-agent-override
Nov 3, 2026
Merged

SaulMoro merged 8 commits into
Tencent:mainfrom
hz89Dev:feat/team-recall-agent-override

Conversation

@hz89Dev

@hz89Dev hz89Dev commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A team can replace the default workflows teamai ships, but not the teamai-recall agent. A team's agents/teamai-recall.yaml was delivered and then overwritten by the built-in on the same pull, and push never offered edits to it. A team agent with that name now replaces the built-in, at agents/ for everyone or agents/<ns>/ for one role, the same way a team workflow replaces a default.

 pull
   Step 3   team agents          deliver agents/teamai-recall.* (also over teamai's own copy, any version)
   Step 4.6 built-in agents
-    write teamai-recall to every tool
+    skip each destination pull writes the team agent to (targets, rejection, model; a held copy where it is)
+    elsewhere: write it, keeping a team copy the member edited (checkout record) with a warning
 push
-  never offer teamai-recall
+  offer it when pull delivered it from a team agent that replaces it here (on the record)
  • Replacement follows where pull actually delivers the team agent. A tool it does not target or that rejects it, or a model that cannot be resolved on a new install, keeps teamai's. Tools sharing one agents directory agree on it. While the team's agents collide, pull keeps the installed ones, so a new member still gets teamai's.
  • A team file that does not parse replaces nothing, and pull says so: [agents] agents/fe/teamai-recall.yaml cannot be delivered (…), so teamai's teamai-recall stays in effect.
  • While recall is off, the team's teamai-recall is not delivered either, so pull does not write it, remove it, and redeploy it on every run.
  • If the team's copy is missing after a pull that kept its revision (TEAMAI_RECALL_DISABLED, an inherited scope), the member gets teamai's recall agent until the next full sync puts the team's copy back.
  • teamai recall enable and disable make the next pull a full sync, as a changed exclude list does: recall decides which agents pull delivers. Enable leaves a team copy on the checkout record to pull, and says to run teamai pull when the team replaces the agent.
  • The new docs section is in English and Chinese, mostly a realistic example: docs/guide/sharing.md#replace-the-recall-agent.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature causing existing behavior to change)
  • Documentation only
  • Refactor / internal cleanup

Test Plan

  • npx tsc --noEmit passes (npm run typecheck)
  • npm run lint passes, documentation checks included
  • npx vitest run passes. Not established locally; see below.
  • Added/updated tests for the change

Each new test failed before its fix and passes with it:

  • builtin-agents.test.ts:
    • the team copy at the root and in a namespace is left alone
    • an edited team copy is kept and an unedited one replaced (full sync)
    • the fast path leaves a recorded copy alone
    • another tool, or an unparsable team file, keeps the built-in
    • a model that cannot be resolved on a new install keeps the built-in
    • a copy held for its model is kept where it is, and the built-in returns once it is gone
    • two tools sharing a directory keep the team copy
    • a namespace collision gives a new member the built-in and keeps an installed team copy
  • agents.test.ts:
    • pull replaces teamai's own copy, of any version, with the team agent, including a built-in written over a team copy's record
    • a replaced destination with no copy gets the built-in
    • push offers an edited team-delivered copy, never teamai's own copy, and picks up a single-repo-mode .teamai/agents/teamai-recall.yaml
  • desired-agents.test.ts: no team teamai-recall is delivered while recall is off
  • recall-toggle.test.ts: each toggle makes the next pull a full sync, and enable leaves an edited copy on record alone

Test runs on head d3fcbf2b:

  • agents.test.ts, builtin-agents.test.ts, desired-agents.test.ts, pull-skip-sync.test.ts, recall-toggle.test.ts and doctor-agents-delivery.test.ts: 174 passed.
  • The full suite ran once under LC_ALL=C on a heavily loaded machine (load average 38–102 on 12 cores), before a rebase onto fix(sync): 为会话启动刷新增加冷却和并发复用 #1683 that applied cleanly. 46 tests failed in 10 untouched workflow/docs-check files, 35 of them timeouts. Rerunning those files with --testTimeout=180000 --maxWorkers=4 left 3 failures, all timeouts at the 60 s limit the tests set themselves (check-docs.test.ts ×2, workflow-settle-cost.test.ts ×1), none an assertion failure. npm run lint runs the same docs checks and passes. This does not establish a full-suite pass; CI is the authority.
  • Without LC_ALL=C, git-message tests fail here because git prints Spanish. This is unrelated to this change.

Real CLI record

macOS, Node 24.21.0. Built dist/ from this branch, then ran with an isolated HOME, a local bare team repo behind a synthetic HTTPS URL, provider: git, --agent claude --scope project, and sharing.recall.enabled: true. "Before" is an unmodified build of origin/main.

Scenario Before After
Team ships agents/teamai-recall.yaml, then pull, pull Synced 1 agents, file is teamai's Team copy after the full sync and after Already synced …, skipping
Member already has teamai's copy, team adds the agent, pull — Team copy delivered; push --dry-run: No new or modified resources to push
Same, holding a copy from an older teamai release — Team copy delivered; nothing offered to push
agents/frontend/teamai-recall.yaml, members with roles frontend and backend — frontend: team's description:; backend: teamai's
Frontend member edits their copy, push --all — Branch teamai/push/… changes agents/frontend/teamai-recall.yaml (the generic git provider opens no PR, as designed)
recall disable, pull ×2, recall enable, pull — No recall agent while off, no churn; enable prints the pull hint; pull: Delivered 1 agent(s) missing from a tool: teamai-recall
Team deletes the file, pull — teamai's agent is back
Team agent delivered, recall disable, team aliases file broken, recall enable, pull — Held teamai-recall.yaml: Invalid model aliases file …, Synced 0 agents (1 held); the member gets teamai's built-in
Legacy agents/teamai-recall.md delivered, then recall disable, recall enable, pull on the same team revision — Synced 1 agents, legacy team copy back
Legacy team agent delivered, TEAMAI_RECALL_DISABLED=1 teamai pull, then pull at the same revision, then pull --force — Removed; then teamai's built-in; then the team copy, with nothing offered to push
Member edited the team copy, team deletes the file, pull — ⚠ Kept …/teamai-recall.md: it holds your edit of the team's teamai-recall agent, which no longer reaches this directory. Delete it to get teamai's teamai-recall back. Deleting it and pulling brings teamai's back. A later recall enable keeps the edit

Only Claude, at project scope, with the git provider ran locally. Other agents (Codex, CodeBuddy, OpenCode) and providers (gitlab, github) are left to CI. Per-tool reach is covered by unit tests.

Related Issues

None.

Notes for Reviewers

  • A built-in leaves no delivery record. Before this change, every pull wrote over that path, and ownsAgentCopy already treats a built-in's name as teamai's. So a file at a built-in agent's path with no delivery record counts as teamai's, whichever version wrote it (CopyOrigin.builtin, read by isTeamaiCopy). A copy pull delivered from the team agent is on the record and follows the usual edit rules.
  • builtinAgentsReplacedByTeam resolves the team agents again inside the built-in step and the push scan, and asks AgentsHandler.deliveryDestinations (built on resolveRenders) where each lands. Both paths then agree with pull on what is delivered where.
  • Known limit: a member's unpushed edit to the team copy, after the checkout's .git gets a new inode (a restored or copied checkout loses its record key), is treated as teamai's and overwritten on the next pull. On main, every pull overwrites any edit to this file, so this is no regression. Covering it would mean reading the other checkout records in pull's ownership check.

A team's agents/teamai-recall.* or agents/<ns>/teamai-recall.* now
replaces the agent teamai ships, as a team workflow replaces a default:
pull leaves the team copy in place on full and fast-path syncs, push
offers edits to it, and deleting it brings teamai's back. While recall
is off, the team copy is not delivered either.
…e team agent does not reach

The built-in step now judges a destination the checkout record holds as a
team copy: unedited is replaced, an edit is kept with a warning, and the
fast path leaves it to the next full sync. A team teamai-recall replaces
the built-in only for the tools it reaches; one that does not parse
replaces nothing and pull says so.
… replaces it

A built-in leaves no delivery record, so a member who already had
teamai's teamai-recall kept it when the team added its own: pull judged
it the member's file, and push offered it as a modified team agent. The
copy's bytes now identify it: the agent's copy origin carries what teamai
ships under that name, and push leaves such a copy out.
Every pull wrote over a built-in agent's path before a team agent could
replace it, so a copy there with no delivery record is teamai's, whichever
teamai version wrote it. Matching only the current render left an older
release's copy in place of the team agent, and offered it to push.
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
  • [P1 blocking] Base replacement on actual deliverability — src/resources/agents.ts:2369: teamAgentReach checks parsing and targets but ignores agentRejection and failed model resolution, both of which prevent pullItem from delivering anything. For example, conflicting Trae/Trae CN extras reject the project copy, yet built-in deployment also skips it. A fresh installation with recall enabled consequently gets no recall agent.

  • [P1 blocking] Protect shared destinations across tools — src/builtin-agents.ts:280: With both Trae editions installed at project scope, a team agent targeting only trae is delivered to their shared .trae/agents/teamai-recall.md. The trae-cn iteration does not consider itself replaced, so it overwrites that unedited team copy with the built-in and removes its delivery record. Replacement needs to account for the destination, not just the tool ID.

  • [P1 blocking] Keep inactive namespaces out of the conflict fallback — src/builtin-agents.ts:68: When desired-agent resolution conflicts, the fallback scans every team agent without namespace filtering. If two active namespaces conflict on reviewer and an inactive namespace contains teamai-recall, pull delivers no team agents but still suppresses the built-in recall agent. On a fresh installation, an unrelated conflict therefore leaves this member without recall.

Testing: The description supplies build, lint, focused-test, and representative real-CLI records. It meets the testing-documentation requirement; the disclosed full-suite failures and deferred provider/agent coverage are not blocking findings. No PR code was executed.

…gent

Replacement was decided per tool from the team file's targets, which
missed what pull actually delivers: a copy a tool rejects or a model that
cannot be resolved left a new member with no recall agent, two tools
sharing one directory overwrote each other's copy, and an unrelated
namespace collision suppressed the built-in. The built-in now steps aside
at the destinations pull writes the team agent to, and during a collision
only where a team copy is already installed.
@hz89Dev

hz89Dev commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

All three are fixed in 9448c74. Replacement is now decided by destination, not by tool ID: the built-in steps aside only at the paths where pull writes the team agent. Each case has a test in builtin-agents.test.ts that fails on the previous head and passes now.

  • Deliverability: the destinations come from the handler's resolveRenders, through the new AgentsHandler.deliveryDestinations. That covers targets, legacy .md tools, agentRejection and model resolution. A copy already held for its model counts at the place it holds, rendered with its recorded model. Test: a team teamai-recall with model: strong and an aliases file that does not parse gets the built-in on a new install.
  • Shared destinations: the check compares the built-in's own destination with the team agent's, so Trae and Trae CN agree on .trae/agents/teamai-recall.md. Test: two tools sharing one agents directory, with the team agent targeting only one of them, keep the team copy.
  • Conflict fallback: it now uses selectAgentsForDirectory (root, active and recorded namespaces only). It also counts a destination only when a file is already there, which matches pull keeping the installed agents during a collision. Test: under a reviewer collision, a new member gets the built-in, and an installed team copy is left alone.

Lint, typecheck and the four affected test files pass (140 tests). The real-CLI scenarios in the description pass again on this head.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
  • [P1 blocking] Only count a model-held replacement where its copy exists — src/resources/agents.ts:1428: Passing recorded models to resolveRenders produces destinations even when those files are missing and the current model cannot resolve. After successfully pulling a team recall agent, remove its copy (for example, with recall disable), invalidate its model alias, then enable recall and pull. Team delivery is held, but built-in deployment skips the historically recorded destination, leaving no recall agent. Use historical renders only for existing held copies; otherwise use current deliverability.

Earlier findings: The rejection/new-install, shared-destination, and inactive-namespace scenarios are resolved in the current diff.

Testing: The description documents sufficient build, lint, focused-test, and representative real-CLI verification. The disclosed suite failures and deferred provider/agent coverage are not blocking findings. No PR code was executed.

A recorded model renders a destination whether or not a copy is there, so
a member whose held copy was removed got neither the team agent nor the
built-in. The held destination now counts only while its copy exists, and
recall enable promises the team's copy only where pull delivers it.
@hz89Dev

hz89Dev commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in ffc3805. deliveryDestinations now returns the destinations pull can write with the current models. It adds a recorded-model destination only while a held copy is still on disk.

  • New test in builtin-agents.test.ts, which fails on 9448c74 and passes now: the team teamai-recall is held because the aliases file does not parse, and a model is recorded for Claude. The held copy is left alone. Once it is removed, the next deployment writes the built-in.
  • The recall enable hint now promises the team's copy only where a destination exists.
  • Real CLI, the scenario you described: a pull delivers the team agent, then recall disable, the team aliases file is broken, then recall enable and pull. Pull prints Held teamai-recall.yaml: Invalid model aliases file … and Synced 0 agents (1 held), and the member gets teamai's built-in recall agent.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
  • [P1 blocking] Restore missing legacy replacements on unchanged pulls — src/builtin-agents.ts:303: After delivering agents/teamai-recall.md to Claude, run recall disable, recall enable, then pull without changing the team revision. Built-in deployment skips the replacement’s destination, but the fast-path agentsToRedeploy ignores legacy .md agents. No recall agent is restored. Redeploy missing legacy replacements or force a full sync.

  • [P1 blocking] Preserve recorded edits when enabling recall — src/builtin-agents.ts:124: Edit a team-delivered recall copy, remove its team definition, and pull: the edited copy is correctly retained. Running recall enable then overwrites it because deployRecallArtifacts supplies no delivery record and this branch unconditionally permits writing. Apply the checkout-record protection to recall enable too.

Earlier findings: All four previously reported scenarios are resolved in the current diff.

Testing: The description documents sufficient focused tests, lint/type checking, and representative built real-CLI verification. Disclosed suite failures and deferred provider/agent coverage are not blocking findings. No PR code was executed.

@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.

I built ffc3805 and the merge-base (164fac9) and ran each case with the CLI in an isolated HOME, --agent claude --scope workspace, against a local bare team repo.

These hold at ffc3805:

Case ffc3805
Conflicting Trae extras, or a team copy whose model does not resolve, on a fresh install built-in recall written, with a warning
Team copy for trae in the shared .trae/agents/teamai-recall.md, Trae CN installed too team copy kept after two full syncs
Unrelated conflict, teamai-recall only in an inactive namespace built-in written for a new member
Copy held for its model, removed by recall disable, aliases broken, then recall enable and two pulls built-in written (the 9448c74 gap is fixed)
agents/teamai-recall.yaml, three pulls, recall off and on team copy, no rewrite loop

The CI review at ffc3805 raises two more blocking cases. I reproduced both:

[P1 blocking] A legacy agents/teamai-recall.md leaves no recall agent after recall off and on

team: agents/teamai-recall.md (front matter name and description, no YAML)
teamai pull              rc=0  .claude/agents/teamai-recall.md is the team copy
teamai recall disable    rc=0  no recall agent
teamai recall enable     rc=0  no recall agent
teamai pull              rc=0  (no team change) no recall agent
164fac90: the built-in is there after enable and after the pull

The built-in steps aside at the team copy's destination, and the unchanged-rev pull only redeploys YAML agents (agentsToRedeploy), so nothing writes the .md copy back. Redeploying a missing legacy replacement, or skipping the fast path when one is missing, fixes it.

[P1 blocking] recall enable overwrites a member's edit that pull kept

team: agents/teamai-recall.yaml
teamai pull              rc=0  team copy
(member appends a line to .claude/agents/teamai-recall.md; team deletes agents/teamai-recall.yaml)
teamai pull              rc=0  Kept .claude/agents/teamai-recall.md: it holds your edit of the team's teamai-recall agent, ...
teamai recall enable     rc=0  .claude/agents/teamai-recall.md is now the built-in; the member's line is gone

deployRecallArtifacts calls deployBuiltinAgents without the checkout's delivery record, so the write is allowed (builtin-agents.ts:124). Pull protects the edit and recall enable then drops it. Passing the same record there keeps it.

[P3 nit] The recall enable hint does not check that pull can deliver

recall enable still says to pull to get the team's copy back in the legacy case above, and the pull brings nothing back.

Push, the role split and an unparsable team file I checked against the code and your record only. CI was still running when I checked.

@SaulMoro
SaulMoro self-requested a review November 3, 2026 16:23
… agent copies

Recall decides which agents pull delivers, so toggling it now bypasses
pull's unchanged-revision fast path, as a changed exclude list does: the
next pull restores a team's own recall agent, a legacy .md one included,
which the fast-path redeploy does not cover. recall enable also leaves a
team copy on the checkout record, such as one the member edited, to pull.
@hz89Dev

hz89Dev commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Both are fixed in 25a2327.

  • Legacy replacements on unchanged pulls: recall enable and recall disable now set lastPullRev = null, so the next pull is a full sync. This follows the convention exclude, tags, roles and init use (src/pull.ts: "lastPullRev = null is how exclude, tags, roles, projects, init and bootstrap force a full sync"). Recall decides which agents pull delivers, so the toggle belongs in that list. The full sync delivers the team's copy in any format, so agentsToRedeploy keeps its Proposal: model aliases so one agent works in every tool #830 scope. Real CLI: a legacy agents/teamai-recall.md was delivered, then recall disable, recall enable and pull ran on the same team revision. Result: Synced 1 agents, and the legacy team copy is back.
  • Recorded edits on recall enable: deployRecallArtifacts now passes the checkout record (kind: 'fast-path'), so a team copy on record is left for pull to judge. Real CLI: the member edits the team copy, the team removes the file, and pull prints Kept … it holds your edit …. After recall enable, the edit is still there.

New tests in recall-toggle.test.ts fail on ffc3805 and pass now: each toggle clears lastPullRev, and enable leaves an edited copy on record alone. Typecheck, lint and the affected test files pass (159 tests).

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
  • [P1 blocking] Invalidate the inherited-pull marker too — src/recall-toggle.ts:167: Clearing only lastPullRev leaves lastInheritedPullRev unchanged. After an inherited user-scope pull delivers legacy agents/teamai-recall.md, disable and enable recall in user scope, then pull from a workspace with inheritUserScope: true. The inherited pull takes its fast path; built-in deployment skips the replacement and agentsToRedeploy ignores legacy agents, leaving no recall agent. Clear the inherited marker too.

  • [P1 blocking] Restore replacements after environment-controlled disabling — src/builtin-agents.ts:303: After delivering legacy agents/teamai-recall.md, run TEAMAI_RECALL_DISABLED=1 teamai pull, then pull without that variable at the unchanged revision. The first pull removes the copy; the second skips the built-in and never redeploys the legacy replacement. Unlike explicit toggles, this path never invalidates the revision. Track effective recall changes or restore missing legacy replacements on the fast path.

Earlier findings: The originally reported paths are resolved, including explicit toggles followed by ordinary pulls and preservation of recorded edits when enabling recall.

Testing: The description meets the testing-documentation requirement with focused tests, lint/type checking, and representative built real-CLI verification. Disclosed suite failures and CI-deferred coverage are not blocking findings. No PR code was executed.

…y is missing

A pull that keeps its revision does not deliver a team agent again: after
TEAMAI_RECALL_DISABLED or an inherited scope removed the team's recall
copy, the built-in stepped aside at an empty destination and the member
had no recall agent. The built-in now steps aside only while the team's
copy is there; the next full sync replaces teamai's copy with the team's,
since a copy holding exactly what teamai ships there is teamai's even on
record as a team delivery, and push leaves it out.
@hz89Dev

hz89Dev commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Both are fixed in d3fcbf2 at the shared cause rather than per fast-path variant. Both paths removed the team's copy without a full sync, and the built-in then stepped aside at an empty destination. Patching each variant (lastInheritedPullRev, the environment variable, legacy redeploy) would leave the next path that removes the copy open.

  • The built-in steps aside only while the team's copy is there (src/builtin-agents.ts). If the copy is missing, the member gets teamai's recall agent, so no path leaves them without one.
  • The next full sync puts the team's copy back. agentOrigin carries the shipped render (CopyOrigin.shipped), and judgeCopy treats a copy holding exactly those bytes as teamai's, even when a team delivery record exists. Pull writes over it, and push leaves it out. This CLI's fast path is what writes that copy, so it is always the current render.
  • recall enable and recall disable still clear lastPullRev, as exclude and the others do. For an inherited scope or the environment variable, the member has teamai's agent until the next full sync (a new team revision, pull --force, or a toggle).

Real CLI, your second scenario with a legacy agents/teamai-recall.md:

  • TEAMAI_RECALL_DISABLED=1 teamai pull prints Removed the teamai-recall agent and rule.
  • teamai pull at the same revision installs teamai's built-in recall agent.
  • teamai pull --force brings the team copy back, and push --dry-run offers nothing.

New tests fail on 25a2327 and pass now: builtin-agents.test.ts (a replaced destination with no copy gets the built-in) and agents.test.ts (pull replaces, and push leaves out, a built-in written over a team copy's record). Typecheck, lint and the affected test files pass (174 tests). The other real-CLI scenarios in the description pass again on this head.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

No new findings I can confidently substantiate in the specified diff.

Earlier findings: Resolved, including the inherited-scope and environment-controlled disabling scenarios. Missing replacement copies now receive the built-in fallback until a full sync restores the team copy.

Testing: The description meets the testing-documentation requirement with focused tests, lint/type checking, and representative built real-CLI verification. Disclosed full-suite failures and CI-deferred provider/agent coverage are not blocking findings.

No PR code was run, built, or installed.

@hz89Dev

hz89Dev commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

@SaulMoro all three are fixed as of 25a2327. I reran your sequences on the current head, d3fcbf2, with the CLI built from that head.

[P1] Legacy agents/teamai-recall.md after recall off and on. recall enable and recall disable now clear lastPullRev, as a changed exclude list does. The next pull is a full sync, so agentsToRedeploy no longer decides what comes back. d3fcbf2 also writes the built-in at any destination where the team's copy is missing, so no unchanged-rev pull leaves the member without a recall agent.

team: agents/teamai-recall.md (front matter only)
teamai pull             Synced 1 agents; legacy team copy
teamai recall disable
teamai recall enable    ℹ Your team replaces the teamai-recall agent: run `teamai pull` to get the team's copy back.
teamai pull             (no team change) Synced 1 agents; legacy team copy

[P1] recall enable overwrote an edit that pull kept. deployRecallArtifacts now passes the checkout's delivery record, so recall enable keeps the same edits pull keeps.

team: agents/teamai-recall.yaml
teamai pull             team copy
(member appends a line; team deletes agents/teamai-recall.yaml)
teamai pull             ⚠ Kept .claude/agents/teamai-recall.md: it holds your edit of the team's teamai-recall agent, ...
teamai recall enable    rc=0; edit still there
teamai pull             ⚠ Kept ...; edit still there

The same sequence with a legacy .md keeps the edit too.

[P3] Enable hint. The hint holds now, because the pull after a toggle is a full sync and brings the team's copy back (first trace above).

Tests that cover these: recall-toggle.test.ts (each toggle clears lastPullRev; enable leaves a recorded edited copy alone) and builtin-agents.test.ts (a replaced destination with no copy gets the built-in). These runs used --agent claude --scope project.

@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 at d3fcbf2. I built it and reran every case from my last review with the CLI (isolated HOME, --agent claude --scope workspace, local bare team repo):

Case d3fcbf2
Legacy agents/teamai-recall.md, recall off and on, unchanged pull built-in after recall enable, team copy back after the pull
Member edits the team copy, team deletes its agent, pull keeps it, recall enable the edited copy is kept
agents/teamai-recall.yaml, recall off, team commit, recall on, two pulls built-in after enable, team copy after the next pull, no rewrite loop
Copy held for its model, removed by recall disable, aliases broken, recall on, two pulls built-in written
Trae and Trae CN sharing .trae/agents/teamai-recall.md; conflicting Trae extras; an unrelated conflict with teamai-recall only in an inactive namespace unchanged from ffc3805, all as expected

The CI review at d3fcbf2 has no new findings and calls the earlier ones resolved; I agree. The recall enable hint nit stands but no longer leaves a member without recall, since the built-in is written meanwhile. Push, the role split and an unparsable team file I checked against the code and your record only. The merge waits for CI.

@SaulMoro
SaulMoro merged commit 1136e54 into Tencent:main Nov 3, 2026
18 checks passed
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