Skip to content

fix(agent-v2): tower mode fixes - #3596

Merged
sailist merged 14 commits into
MoonshotAI:mainfrom
tpoisonooo:tui-tasks-add-secondary-model-name
Sep 7, 2026
Merged

fix(agent-v2): tower mode fixes#3596
sailist merged 14 commits into
MoonshotAI:mainfrom
tpoisonooo:tui-tasks-add-secondary-model-name

Conversation

@tpoisonooo

@tpoisonooo tpoisonooo commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

Resolve #(issue_number)

Problem

main 本身的 bug 2 个:

  • CI batch 太小,测试 fixture 的写入 chunk 期间高负载机器会超 120 秒,导致 CI 错误
  • agent 描述不对,不是固定 2h 超时。按 review 意见直接删掉这行。

用户反馈 tower 的问题:

  • /tower 写死了 DEFAULT_SUBAGENT_TIMEOUT_MS 2h 超时时间,应该 follow 正常 agent 配置
  • TUI /tasks 没显示 tower agent 用的 model name
  • 缓解转述问题: 目前 tower -> worker 发消息只有转述/分解后的内容,丢失了用户原本意图

What changed

TUI 效果

image

tower 给 worker 的指令增加 context 字段

image

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: the issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: df8d215

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 7, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@df8d215
npx https://pkg.pr.new/@moonshot-ai/kimi-code@df8d215

commit: df8d215

konghuanjun added 9 commits September 7, 2026 12:48
TowerSpawnTool registered its detached subagent task with the hardcoded
DEFAULT_SUBAGENT_TIMEOUT_MS, bypassing the [subagent] timeout_ms setting
and KIMI_SUBAGENT_TIMEOUT_MS. Resolve the timeout through
resolveSubagentTimeoutMs(config) like AgentTool does, keeping the 2h
default when nothing is configured.
…r briefings

TowerPlan missions accept an optional context field holding the user's
own key sentences verbatim, rendered into the mission file and every
briefing that embeds it. Reviewer briefings now include the full mission
text and the author's review-request, with an intent-first checklist;
worker briefings escalate substantive ambiguity to the tower before
acting and reconcile completion reports task by task.
@tpoisonooo tpoisonooo changed the title WIP fix(tower): tasks display model name fix(agent-v2): tower mode fixes Sep 7, 2026
@sailist
sailist merged commit 0d7833e into MoonshotAI:main Sep 7, 2026
16 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 7, 2026
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.

2 participants