Skip to content

chore: sync release/2026-11-04 back to main - #4674

Merged
Grapedge merged 10 commits into
mainfrom
chore/sync-release-2026-11-04-back-to-main
Nov 4, 2026
Merged

Grapedge merged 10 commits into
mainfrom
chore/sync-release-2026-11-04-back-to-main

Conversation

@kimi-agent-bot

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Post-release branch synchronization. Bring the published CLI 2.5.0 / VS Code 0.9.0 release branch back to main while preserving later main changes. This PR must remain unmerged until after the release broadcast.

Bug Reproduction Steps

N/A — release coordination, not a bug-fix PR.

Root Cause

The release was produced on the isolated release/2026-11-04 branch. main needs the released versions, changelogs, consumed changesets, release fixes, and generated Web assets without losing its own subsequent commits.

Code Changes

  • Merged release merge commit 41c341434ae24e45bfe0f2232ec11b80531ac717 into main baseline 6974ac880d405d5565a2189925f3bef6daea6892.
  • Preserved all six later main commits; all source files merged automatically.
  • Conflicts occurred only in generated apps/kimi-code/dist-web hash assets. Resolved them by taking the complete published release dist; verified zero diff against origin/release/2026-11-04 for the entire directory.
  • Includes the nine release-only commits, CLI 2.5.0 / VS Code 0.9.0 versions, package changelogs, and consumed changesets.
  • The docs-site changelog is handled independently in docs(changelog): sync 2.5.0 from apps/kimi-code/CHANGELOG.md #4673 and is intentionally not part of this branch sync.

Behavior Changes and Affected Users

Brings the already-published 2.5.0 behavior back to main; no behavior beyond the published release is introduced by this sync. Merging to main does not trigger the release-branch npm or VS Code publication path. Do not merge until after the broadcast.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained why none is needed above. (N/A — post-release branch sync)
  • I have added tests that prove my feature works. (N/A — release sync; PR CI is the validation gate)
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR. (Changes were reviewed and released through ci: release packages #4672)
  • Ran gen-changesets skill, or this PR needs no changeset. (No new changeset — release sync)
  • Ran gen-docs skill, or this PR needs no doc update. (Docs changelog is separately handled in docs(changelog): sync 2.5.0 from apps/kimi-code/CHANGELOG.md #4673)

7Sageer and others added 10 commits November 3, 2026 20:30
…ironment (#4649)

* fix(tui): show remote cwd in welcome panel

* fix(tui): read footer git status through the session environment

The footer ran git and gh on the local machine, so a remote-bound session
hid the git badge. Read branch, working-tree, and pull request state through
the SDK instead: a live session's own environment, or the local work dir
before the lazy session exists. The local HEAD poll stays as a refresh
trigger only.

Core git commands now time out after 30s, and the pull request cache is
keyed by branch so a branch switch no longer serves the previous branch's
pull request.

* fix(agent-core-v2): resolve local git and gh outside the working directory

GitService spawned bare git and gh with the workspace as cwd. On Windows a
bare name is looked up in the cwd before PATH, so a binary planted in the
workspace could run, and the TUI footer now reads git status at startup,
before the workspace trust gate. Resolve both through PATH for the local
environment and refuse any match inside the working directory.

* chore: merge changesets for remote cwd and git status

* fix(tui): drop the startup Ready. row once startup succeeds

The startup progress row turned into a permanent "Ready." line under the
welcome panel. Remove it on success; a failed startup still leaves the
"Startup failed." row.

* fix(agent-core-v2): compare workspace containment case-insensitively on Windows

resolveProgramPath compared the PATH candidate against the working directory
case-sensitively, so on Windows a PATH entry spelled with different casing
(c:\repo\bin vs C:\Repo) let a workspace-local executable through.

* fix(tui): keep the footer git badge through a remote disconnect

The git cache key included the environment status, so a remote dropping to
connecting or disconnected rebuilt the cache and lost the last badge. Key
the cache by session and work dir only, and refresh it when the environment
turns ready again.
* fix: preserve marketplace descriptions

* fix: preserve localized plugin display names

* feat: isolate plugin availability by client

* fix: preserve cli marketplace loading

* fix: harden plugin availability reconciliation

* fix: hash plugin marketplace provenance

* fix: complete plugin availability reconciliation
…ts (#4658)

* fix(transcript): keep realigned turn ids unique when folding cold facts

Realigning base turns to their wire ids only skipped ordinals held by
turns without a wire id. When an inherited turn held a forked turn's
wire id, that turn kept its base ordinal, and the next turn's wire id
could land on the same ordinal, so two turns shared a turn id and the
later one replaced the earlier in clients. Claim ordinals in order:
turns without a wire id or already at their wire id first, then each
realigned turn takes its wire id when free, else keeps its ordinal or
moves to the next free one.

* chore: add changeset for side chat turn order fix
…mpt (#4659)

* fix(kap-server): backfill a side chat fork before replying to :btw

A fork's inherited history folds into a cold turn at t0, while the live
transcript only records it as markers. When the fork's first prompt
started before anything read the fork transcript, its live turn took t0;
the history backfill then merged the inherited main turn into it by turn
id, so the first side chat turn carried the main answer and the real
answer landed in a duplicate turn. Finish the fork's history backfill
before :btw replies, so the inherited turn holds t0 before the first
prompt can start.

* fix(kap-server): wait for an agent's history before accepting its prompt

Delaying the :btw reply did not order the fork's first prompt after its
history backfill: other clients learn the fork from the agent roster as
soon as it is created, and checking for a live transcript with
forSessionLive created one, so every :btw also waited for the whole main
history. Move the wait to prompt submission: a prompt for a non-main
agent awaits that agent's history backfill before it is enqueued, which
covers every client and leaves :btw unchanged. The backfill is cached
per agent, so later prompts do not wait again.
* feat: support Windows SSH remote environments

* Delete .changeset/windows-remote-environments.md

Signed-off-by: 7Sageer <[email protected]>

---------

Signed-off-by: 7Sageer <[email protected]>
…4670)

* fix(plugins): confirm stopping Windows CU processes before install

* test(plugins): cover capability install confirmation contract

* fix(plugins): preserve bodyless installs and plugin-only repairs
* chore: sync web dist from code-app

code-app: 63661fc449e2ec0ce024bc08fe87f2c757d483e8

* chore: sync web dist from code-app

code-app: d0e913a6c9607be778c62f0c74ee7310bfb8862a

* chore: sync web dist from code-app

code-app: b306f4a2f9be8944e5a8064ecb076e3137c968f1

---------

Co-authored-by: kimi-agent-bot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0cba163

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T12:10:18.720063Z 0cba163 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026

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

commit: 0cba163

@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: 0cba163c96

ℹ️ 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 on lines +169 to +170
const changed = Object.entries(incoming).some(([id, entry]) =>
existing[id] === undefined || availabilityValue(existing[id]) !== availabilityValue(entry)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include artifact provenance in availability changes

When a catalog entry keeps the same clients and platforms but changes its artifact source, this comparison reports no change, so update() neither persists the new artifactSourceKey nor reconciles plugins. For legacy installations without marketplaceSource, entryFor() relies on that key to disambiguate reused catalog IDs; after such an update, the stale key can cause the new artifact to bypass its client/platform restrictions or make an otherwise valid plugin disappear as ambiguous. Compare the artifact key as well as availabilityValue.

AGENTS.md reference: AGENTS.md:L130-L132

Useful? React with 👍 / 👎.

Comment on lines +823 to +825
input.sessionId !== undefined
? this.requireLiveSession(input.sessionId).accessor.get(ISessionWorkdir).fs.gitStatus({ include_pull_request: false })
: this.engineAccessor.get(IGitService).status(normalizeRequiredWorkDir('getGitStatus', workDir), { includePullRequest: false }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the footer git output limit

For repositories with very large porcelain output, this new footer path delegates status reads to GitService, whose stream collector accumulates all stdout and stderr without a byte limit and now permits the command to run for up to 30 seconds. The replaced footer implementation bounded execFile output at 4 MiB and timed out after 2 seconds; losing that guard means the automatic 30-second and turn-end refreshes can repeatedly consume arbitrarily large memory, potentially taking down the CLI merely to render its badge. Add an output cap to the engine read or retain a bounded footer-specific query.

AGENTS.md reference: AGENTS.md:L126-L128

Useful? React with 👍 / 👎.

Comment on lines +267 to +268
if (req.body.agent_id !== undefined && req.body.agent_id !== MAIN_AGENT_ID) {
await transcriptService.ensureAgentHistory(session_id, req.body.agent_id);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Initialize transcript state before awaiting agent history

When this is the session's first transcript-related operation, TranscriptService.ensureAgentHistory() finds no entry in its live map and returns immediately rather than creating one. A transcript GET or WebSocket subscription that races the subsequent side-agent prompt can therefore initialize the live binding and cold backfill only after the prompt has been accepted, recreating the first-answer drop/duplication race this change is intended to prevent. The added test prewarms the main transcript, so it does not cover this path; initialize the store with forSessionLive(session_id) before awaiting the agent backfill.

AGENTS.md reference: AGENTS.md:L130-L132

Useful? React with 👍 / 👎.

@Grapedge
Grapedge merged commit f8e15c7 into main Nov 4, 2026
17 checks passed
@Grapedge
Grapedge deleted the chore/sync-release-2026-11-04-back-to-main branch November 4, 2026 13:41
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 4, 2026
Fifteen rows enter the ledger: the six commits that landed on
upstream/main after the last refresh, and the nine commits that reach
main only through the release/2026-11-04 sync (MoonshotAI#4674), which is where
the 2.5.0 changelog entries come from.

Each 2.5.0 row records what it needs from this tree, so the next batch
starts from the blocker instead of rediscovering it:

- MoonshotAI#4658 and MoonshotAI#4659 are ported (79a4199, 7a531f5) with tests that
  fail on the pre-change tree.
- MoonshotAI#4649 is in_progress: its agent-core-v2 half landed in 2fa7b6b,
  while the footer and welcome half needs the pull-request API of MoonshotAI#4527
  and the session workdir of MoonshotAI#4062.
- MoonshotAI#4653, MoonshotAI#4666 and MoonshotAI#4670 build on the MoonshotAI#4525 plugin marketplace, absent
  here; MoonshotAI#4670 additionally needs isError2.
- MoonshotAI#4664 needs the MoonshotAI#4062 remote environments.
- MoonshotAI#4667 and MoonshotAI#4672 are generated-bundle and release commits; settling
  them as not-applicable needs a signature.

Rows were appended by a one-off writer because --refresh fetches and
that fetch does not complete on this network; the file still parses
under the tool's own column contract, and --verify --batch B5 passes
both new probes.
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.

5 participants