Skip to content

feat(agent-v2): split tower mode tips - #3386

Closed
tpoisonooo wants to merge 4 commits into
MoonshotAI:mainfrom
tpoisonooo:feat/update-tower-mode-tips
Closed

tpoisonooo wants to merge 4 commits into
MoonshotAI:mainfrom
tpoisonooo:feat/update-tower-mode-tips

Conversation

@tpoisonooo

@tpoisonooo tpoisonooo commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Related Issue

Resolve #(issue_number)

Problem

区分 2 种 tower mode 错误提醒:

  • 没启用: “tower mode could not be enabled — enable it with KIMI_CODE_EXPERIMENTAL_TOWER=1 and restart the process.”
  • towerInit 失败:“tower mode could not be enabled — another live session owns the workspace tower and is busy or awaiting interaction'”

What changed

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.

konghuanjun added 2 commits August 31, 2026 13:36
The enable failure message no longer lumps both causes together: when the
tower experiment is disabled it now says how to enable it
(KIMI_CODE_EXPERIMENTAL_TOWER=1 and a restart), and when another live
session owns the workspace tower it says so. Adds
IAgentTowerService.isAvailable so the SDK and kap-server call sites can
tell the two apart, and stubs KIMI_CODE_EXPERIMENTAL_TOWER off in the
unavailable-case test so it no longer depends on the outer env.
@pkg-pr-new

pkg-pr-new Bot commented Aug 31, 2026 •

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

commit: 8ad3b0f

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae4216507a

ℹ️ 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".

Comment thread packages/node-sdk/src/sdk-rpc-client-v2.ts
…iagnostic

AgentTowerService.enter() is a silent no-op for non-main agents and
isAvailable includes the main-agent check, so a setTowerMode(true)
addressed at a child interactive agent fell into the disabled-experiment
branch and told callers to enable the flag and restart — which cannot
fix the failure. Throw a dedicated main-agent diagnostic before the
disabled/owned cause split.
@changeset-bot

changeset-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8ad3b0f

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

@tpoisonooo tpoisonooo closed this Aug 31, 2026
@tpoisonooo tpoisonooo reopened this Aug 31, 2026
The note was appended to tower-mode-improvements.md, which already
exists on main from MoonshotAI#3346; changeset status only counts files a PR adds,
so the PR reported no changeset. Restore the merged entry and carry the
note as a new changeset instead.
@tpoisonooo tpoisonooo closed this Aug 31, 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.

1 participant