Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 7b06dd3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
commit: |
Contributor
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Sep 15, 2026
Merged
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Oct 5, 2026
Step 5 of the incremental sync to 2.1.1: 14 upstream commits over 230 files. The bulk is the pi-tui re-baseline onto upstream v0.85.1. Upstream's changes in this step, all absorbed: - pi-tui re-baselined on upstream v0.85.1 (MoonshotAI#3780): the native platform modules were consolidated and renamed (darwin-modifiers -> darwin-platform, win32-console-mode -> win32-platform), a Linux/X11 clipboard backend with prebuilds was added, and alt-screen search, autocomplete, editor, input, markdown and the render path were reworked; the native-asset copy scripts and flake.nix follow - the session event bus is sharded by agent id (MoonshotAI#3775) - disposed agent scopes are released from the DI dependency graph (MoonshotAI#3776) - swarm cancellation no longer crashes the CLI (MoonshotAI#3779) - tower mode no longer mistakes newly spawned agents for the previous name (MoonshotAI#3752) - [secondary_model].default_effort fails fast when unsupported (MoonshotAI#3785) - the managed usage payload switched to the quota model (MoonshotAI#3787) - kap-server verifies indexed search results against session sources (MoonshotAI#3631) - web dist synced from code-app (MoonshotAI#3792); docs for the web slash-command table and flat-form skill naming (MoonshotAI#3772, MoonshotAI#3774) Fork behaviour preserved through the re-baseline (pi-tui/UPSTREAM.md): - every `keep` intent card still has a matching per-file diff: the width/grapheme clamps, editor history hooks, multi-root @-completion, inline slash autocomplete, CJK autolink, fullscreen nav fall-through, mouse dispatch (cropped rows, prompt-width clicks, search-field forwarding), and sixel graphics with the startup probe - the fork's image/terminal-image, latex and layout extensions ride on upstream's v0.85.1 baseline - the fork's i18n layer covers the new user-facing strings Verification and the follow-up fixes are recorded in the next commit: the fork's auth-facade test still asserted the pre-quota managed-usage shape, and the node-sdk dts build had lost its i18n specifier rewriting in the 0.42.0 merge (found by this step's root typecheck).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
No separate issue was filed for this bug; the problem and its root cause are described in detail below.
Problem
Pressing Ctrl+C in the TUI while a subagent swarm is running terminates the entire CLI process instead of just interrupting the swarm.
The root cause is an unhandled promise rejection, through the following chain:
AbortErrorthat carries no cancellation reason.AbortErrorpropagates into the swarm controller. The run batch's user-cancellation check does not recognize a reason-lessAbortErroras a user cancellation, so the batch fails with it.batch.run()itself is awaited and handled by the caller. However,SessionSwarmServicederived a second promise viavoid promise.finally(...)purely for cleanup bookkeeping (unlinking abort signals and clearing the in-flight entry). That derived promise rejects with the same error and nothing observes it, producing an unhandled rejection.What changed
This is a defensive fix at the exact point where the unhandled rejection is created:
SessionSwarmService.run, attach.catch(() => {})to the promise derived frompromise.finally(...)used for cleanup. A failing batch no longer surfaces as an unhandled rejection. The originalbatch.run()promise is still returned to and awaited by the caller, so the failure itself continues to be reported and handled through the normal path.unhandledRejectionis emitted.Follow-up work (not part of this PR): the turn-abort path should propagate the original cancellation reason so that user cancellations can be distinguished from system-initiated aborts at the source, rather than relying on downstream defensive handling. That is being tracked on the branch behind PR #3778.
How this was verified
sessionSwarm.test.tssuite passes 32/32.check-no-comments+oxlint --type-aware): 0 errors.Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.