Skip to content

chore: sync release 2.7.3 and desktop 1.4.3 back to main - #5310

Merged
Grapedge merged 22 commits into
mainfrom
back-sync/release-2026-11-23
Nov 23, 2026
Merged

Grapedge merged 22 commits into
mainfrom
back-sync/release-2026-11-23

Conversation

@kimi-agent-bot

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Fully back-sync release/2026-11-23 (CLI 2.7.3 / Desktop 1.4.3) to main after the hotfix release. This PR brings the complete release branch, not a selected list of commits, files, or PRs.

Bug Reproduction Steps

N/A — release back-sync.

Root Cause

N/A — release back-sync.

Code Changes

  • Started from original release HEAD a8f643ad2e7f197d6ec4409b7cdad8a544afad86 on an independent back-sync branch; the original release branch remains unchanged at that SHA.
  • Rebased the complete branch onto latest main (d9070b99e1728ab15d758de746f3ed99335535a0), preserving main's later development and the already merged Flow A/B docs and notes.
  • Final package versions: CLI 2.7.3, Desktop 1.4.3, agent-core-v2 0.6.1, kap-server 0.3.3, oauth 0.5.1; VSCode remains 0.9.0 and is not republished by this PR.
  • Preserved changelog history as a union where needed, while keeping final package versions correct.
  • Kept main's newer/superset implementations for SSH localOnly handling, loop lifecycle, composer behavior, feedback, MCP, and tests rather than restoring older release implementations.
  • Honored main's deletions of legacy HistoryWindow, API-surface, and conversation-contract files.
  • Ported the two release-only removed-model recovery tests into the current testkit structure in packages/kap-server/test/sessions.test.ts; both tests pass.
  • Confirmed no conflict markers, no changes to the original release branch, and git diff --check origin/main...HEAD passes.

Validation completed before opening:

  • pnpm run build:packages passed with Node 24.15.0 / pnpm 10.33.0.
  • pnpm --filter ./packages/kap-server exec vitest run test/sessions.test.ts -t 'a session whose saved model was removed|a session with no default model': 2 passed.
  • PR CI is pending and must be green before the human merge checkpoint.

Behavior Changes and Affected Users

Brings the CLI 2.7.3 and Desktop 1.4.3 hotfix changes back into mainline development. This PR does not itself publish npm packages, VSCode, Desktop releases, or CDN pointers. Merge is held until after the release broadcast and gate ⑥.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained why none is needed. (Release back-sync; no external issue.)
  • I have added tests that prove my feature works, or performed equivalent validation. (Packages build and the two ported recovery tests passed; PR CI pending.)
  • 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. (Release sync only; no new behavior beyond the released hotfix.)
  • Ran gen-changesets skill, or this PR needs no changeset. (No new changeset; this PR carries the completed release plan and consumes the released changesets.)
  • Ran gen-docs skill, or this PR needs no doc update. (Flow A/B docs and notes were prepared and merged separately; this back-sync preserves them.)

sailist and others added 21 commits November 23, 2026 16:44
* fix(core): add Claude 5 output token ceilings

* chore: add Claude 5 output ceiling changeset
* fix(markdown): keep table actions inside clipped containers

* fix(markdown): observe table action clipping ancestors

---------

Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
* fix(agent-core-v2): align fork slicing with restored turn ids

* chore: add restored fork fix changeset
* refactor(core): route AJV logs through utils logger

* chore(core): add AJV logger changeset

* chore(core): clarify AJV logger changeset
* fix: support UUID generation in insecure browser contexts

* chore: update pnpm deps hash

* fix: resolve crypto bindings in UUID lint rule

---------

Co-authored-by: kimi-agent-bot <317908118+kimi-agent-bot@users.noreply.github.com>
* fix(client): keep draft thinking effort after sending

* chore: add cli changeset for draft thinking fix

* test(client): use function stub for websocket in thinking test

* fix(client): preserve thinking effort during model normalization

* fix(client): reconcile profile updates and model fallbacks

* fix(client): scope draft thinking preservation
* fix(tui): defer queued prompts until the loop drains

- add core and v2 drained/idle lifecycle events
- consume reminder-only queues without starting a model turn
- gate TUI queue dispatch and completion notifications on lifecycle state
- document notification-handoff queue behavior and add a CLI patch changeset

* fix(tui): close loop lifecycle races

- emit idle only after the current macro is revalidated
- keep queued input pending through compaction and delayed dispatch
- reject stale idle after new work starts

* fix(loop): correlate lifecycle events by generation

- track macro generations in the core and v2 loop state
- replace TUI macro inference with event-generation correlation
- preserve compaction guards for queued dispatch
…sk (#5176)

:wait settled as soon as the turn left the in-memory activity view, but
the engine writes wire records through a batched log that flushes in a
later task. A server killed right after :wait reported idle could lose
the end of the finished turn.

Before it replies with a settled session, :wait now flushes the wire of
every agent in the session and drains pending metadata writes. A failed
write surfaces as an error instead of a settled reply. The KAP guide
states the guarantee. A new test in sessions.test.ts slows down the disk
write of the turn end and checks that the record is on disk when :wait
returns.

(cherry picked from commit fc33c6d)

Co-authored-by: kai <me@kaiyi.cool>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(kap-server): resume sessions with unavailable models

* fix: let users replace unavailable session models

* fix: scope unavailable model recovery state

---------

Co-authored-by: kimi-agent-bot <kimi-agent-bot@users.noreply.github.com>
* fix(plugins): detect MCP OAuth with targeted probes

* fix(plugins): use the MCP inspect route

* fix(plugins): preserve OAuth requirements across inspection and disconnect
* fix(chat): show pending MCP browser authorization

* fix(chat): resolve MCP authorization lint findings

* fix(chat): preserve MCP authorization failure details

* fix(mcp): preserve cancellation during OAuth reconnect
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0030e54

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 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:31:58.218186Z 0030e54 New commits
ℹ️ 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 23, 2026 •

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

commit: 0030e54

@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: c7d69c66e6

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

function onMainNotice(sessionId: string, notice: ConversationNotice): void {
if (notice.code === 'model.not_configured') {
rawState.unavailableModelBySession = { ...rawState.unavailableModelBySession, [sessionId]: notice.title };
void confirm({

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 Deduplicate unavailable-model prompts across subscriptions

When the WebSocket reconnects—or a retained background conversation is resubscribed—the server emits model.not_configured again, so this unconditional confirm() reopens a prompt the user already dismissed. A background notice can also replace an unrelated confirmation because useConfirmDialog.open() settles the current request before opening another one. Record the unavailable state for every session, but only show the prompt when the condition is newly discovered for the active session, or otherwise remember that it was acknowledged.

AGENTS.md reference: AGENTS.md:L112-L119

Useful? React with 👍 / 👎.

@Grapedge
Grapedge merged commit 9a82686 into main Nov 23, 2026
21 checks passed
@Grapedge
Grapedge deleted the back-sync/release-2026-11-23 branch November 23, 2026 17:53
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 25, 2026
Port the client half of upstream 9a82686. The authenticate tool now
carries an mcp_oauth display and its wait state travels as tool fields, so
app-core projects a McpAuthCard onto the chat tool call, app-client
auto-opens the authorization page for the foreground desktop client that
sent the prompt, and app-components renders the card with link, copy/open
actions and connected, cancelled, expired and reconnect-failed states.

Engine: the auth tool emits the authorization URL through update fields,
marks reconnect states, and reports cancellation, timeout and reconnect
failure through result notes; McpOAuthCallbackTimeout distinguishes a
callback deadline. kap-server merges tool update fields into the live
conversation item and drops them once the tool ends, so the URL survives
only while the wait is live.

Fork adaptations: app-core ToolCall/ToolCallItem gain mcpAuth/fields,
which the server protocol already carried. The auto-open test lives in
its own composable suite because this Bun build cannot run
conversation-events.test.ts (vi.resetModules is missing).
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 25, 2026
…ng agent state

Add isMissingConfiguredModel and missingConfiguredModelAlias for the fork's
profile service, and blank the main agent's model in readAgentState when
its configured alias no longer resolves. This closes the kap-server half of
the 2.7.3 audit recorded on MoonshotAI#5310; the MCP authorization surface was
ported earlier.

Verified: legacyStatus 2 pass, kap-server typecheck clean.
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.

7 participants