Repository navigation
chore: sync release/2026-10-25 (2.3.2) back to main - #4387
liruifengv merged 4 commits into
Conversation
* fix(agent-core-v2): leave swarm mode to the user AgentSwarm now runs only while swarm mode is on, and only the user can turn swarm mode on, so the model can no longer start a swarm by itself. - Reject AgentSwarm at resolve time while swarm mode is off and check again right before it runs; no subagents start and swarm mode stays off. - Stop AgentSwarm from entering swarm mode, reject the tool trigger, and ignore tool-triggered entries that older versions recorded on replay. - Skip the one-AgentSwarm-per-response veto while swarm mode is off so the other tools in that response still run. - Say in the AgentSwarm description and the swarm exit reminder that only the user can turn swarm mode on. - Update the tools and slash-command reference docs. * fix(transcript): ignore model-started swarm entries when folding history Swarm mode entries with the tool trigger come only from older versions, where the model started a swarm by itself. The engine already ignores them on replay, so a session that stopped mid-swarm resumes with swarm mode off. Folding history still marked swarm mode on from that entry, and no later status update turned it off, so the web UI kept showing swarm mode as on. Keep the swarm.enter marker in history, but leave meta.modes untouched for tool-triggered entries. # Conflicts: # packages/agent-core-v2/test/agent/fullCompaction/fullCompaction.test.ts # packages/agent-core-v2/test/agent/loop/loop.test.ts # packages/agent-core-v2/test/tool/tool.test.ts
…otAI#4386) The main agent launched subagents on its own: the explore type told it to delegate any exploration needing more than three searches and to run several explore agents at once, the Agent description sold delegation, and the EnterPlanMode description sent plan mode to an explore subagent first. - Agent description: launch a subagent only when the user asks for one, or AGENTS.md, a skill, or a multi-agent mode the user turned on calls for it; agent type descriptions only pick a type once launching is authorized. - System prompt: state the same rule for Agent. - Drop the delegation nudges from the Agent and explore descriptions and from the EnterPlanMode description. - Swarm exit reminder: once swarm mode ends, handle the next request without subagents unless it asks for them.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ed prompt changes
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e05d23218
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
… 2.3.2 back to main)
Related Issue
N/A — post-release branch maintenance
Problem
The 2.3.2 patch release shipped from
release/2026-10-25; main needs the version bump, CHANGELOG, and release-only fixes back so the next cycle's changesets baseline does not drift from the published release.What changed
Cherry-picked the three release-branch commits not on main, oldest first:
c9a4836fix(agent-core-v2): leave swarm mode to the user (fix(agent-core-v2): leave swarm mode to the user #4384)fd2e2c7fix(agent-core-v2): launch subagents only on explicit request (fix(agent-core-v2): launch subagents only on explicit request #4386)b8dd3a1ci: release packages (ci: release packages #4385) — version bump to 2.3.2 + CHANGELOG, consuming the 2 changesets carried by fix(agent-core-v2): leave swarm mode to the user #4384/fix(agent-core-v2): launch subagents only on explicit request #4386Skipped as redundant:
e79422a(test isolation cherry-pick of #4363, already on main as087db85) and00e7007(changeset wording clarification — the file is deleted by the version commit anyway; the clarified text lands in CHANGELOG.md).Conflict resolution notes:
enter-plan-mode.mdedit from fix(agent-core-v2): launch subagents only on explicit request #4386 kept deleted: main's feat(agent-core-v2): leave Plan mode to the user and review every plan #4247 removed the EnterPlanMode tool entirely, so the nudge removal has no target.fullCompaction.test.ts,loop.test.ts,tool.test.tsconflicted with main's diverged expectations; kept main's side, then regenerated from the merged code (vitest run -u) in a follow-up commit. Affected suites: 351 tests pass.zipbinary / direct GitHub access on the release machine), unrelated to this PR.apps/kimi-code/package.json: only the version field comes from the release branch (2.3.2); main's own changes untouched.Prompt-impact inventory
This back-sync carries the prompt behavior already reviewed and released in #4384 and #4386; it does not introduce another prompt rewrite beyond those commits and the conflict resolutions above.
app/agentProfileCatalog/system.md: shared system prompt, behaviorally relevant to main or custom profiles that exposeAgentacross TUI, print, desktop/web, VS Code, ACP, and SDK sessionsAgentonly when the user, AGENTS.md, or a skill asks, or when the user enabled a multi-agent mode such as swarm/tower. Task size and thoroughness are not authorization. Built-in coder/explore subagents do not exposeAgent, so their own role prompts are unaffected.agent/tools/agent/agent.md: every main/custom agent offered theAgenttoolDelegating also keeps the bulk of intermediate file contents out of your own context…, which encouraged delegation for context savings.agent/tools/agent/agent.md: same recipientsWhen NOT to use Agent… it pays off only when the task is substantial enough…; this discouraged trivial delegation but also implied that a sufficiently large task authorized it.session/agentLifecycle/profile/profiles.ts(explore.whenToUse) and custom agentdescription/whenToUsetextmore than 3 search queriesandPrefer launching multiple explore agents concurrently…. Users who relied on automatic explore fan-out, or on custom text such asuse proactively, are affected.Agentrules above supply the constraint.features/swarm/tools/agent-swarm/agent-swarm.md: main agents offeredAgentSwarmAgentSwarmTool.resolveExecution/executionandAgentSwarmService.enter('tool')enforce rejection before subagents start. User-enabled/swarm, desktop/web controls, and SDKmanual/taskentry remain available; print/ACP have no swarm-enable entry and custom subagents cannot nest a swarm, as explicitly accepted for the hotfix.features/swarm/agent/exit-reminder.md: sessions leaving a manual or one-task swarmAgentSwarmagain merely because the next request could benefit from parallel subagents; post-swarm users who relied on that automatic continuation are affected. The added sentence also prevents switching to ordinaryAgentdelegation without a new explicit request.Agent; the execution-layer rejection is the backstop.features/plan/tools/enter-plan-mode/enter-plan-mode.mdon the release branchAgent(subagent_type="explore"), affecting plan-mode users who relied on automatic exploration.User-enabled swarm/tower mode still counts as authorization for
Agent, and tower's resume flow is unchanged. For old wires, engine replay and transcript folding ignore unmatchedswarm_mode.enterrecords withtrigger: 'tool', while user-triggered enter/exit behavior remains intact.Review follow-up
Checklist
gen-changesetsskill, or this PR needs no changeset. (No changeset — consumed ones must not return)gen-docsskill, or this PR needs no doc update. (Docs changelog rides in the separate sync PR)