Repository navigation
chore: sync release/2026-11-04 back to main - #4674
Conversation
…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>
|
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: 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".
| const changed = Object.entries(incoming).some(([id, entry]) => | ||
| existing[id] === undefined || availabilityValue(existing[id]) !== availabilityValue(entry) |
There was a problem hiding this comment.
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 👍 / 👎.
| 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 }), |
There was a problem hiding this comment.
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 👍 / 👎.
| if (req.body.agent_id !== undefined && req.body.agent_id !== MAIN_AGENT_ID) { | ||
| await transcriptService.ensureAgentHistory(session_id, req.body.agent_id); |
There was a problem hiding this comment.
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 👍 / 👎.
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.
Requirement or Bug
Post-release branch synchronization. Bring the published CLI 2.5.0 / VS Code 0.9.0 release branch back to
mainwhile preserving latermainchanges. 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-04branch.mainneeds the released versions, changelogs, consumed changesets, release fixes, and generated Web assets without losing its own subsequent commits.Code Changes
41c341434ae24e45bfe0f2232ec11b80531ac717intomainbaseline6974ac880d405d5565a2189925f3bef6daea6892.maincommits; all source files merged automatically.apps/kimi-code/dist-webhash assets. Resolved them by taking the complete published release dist; verified zero diff againstorigin/release/2026-11-04for the entire directory.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 tomaindoes not trigger the release-branch npm or VS Code publication path. Do not merge until after the broadcast.Checklist
gen-changesetsskill, or this PR needs no changeset. (No new changeset — release sync)gen-docsskill, 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)