Skip to content

chore: sync release/2026-11-13-2 back to main - #4930

Merged
wbxl2000 merged 10 commits into
mainfrom
chore/sync-release-2026-11-13-2-back-to-main
Nov 16, 2026
Merged

wbxl2000 merged 10 commits into
mainfrom
chore/sync-release-2026-11-13-2-back-to-main

Conversation

@kimi-agent-bot

@kimi-agent-bot kimi-agent-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Post-release back-sync for CLI 2.6.2 (release/2026-11-13-2, version PR #4918, tag @moonshot-ai/[email protected] 6a8493df3e1d796a63f7c7ca0de76c1e690cd943). Gate ⑥: human review and merge only after CDN traffic switch and the release announcement; this PR must not be merged by the bot.

Original base was main f082f04a093a3e71a2263c5461d52507dc31f83a; latest main 6e35efa98402b2a5a198aa929ef178e79ab26bb4 is now merged as the second parent of c0cca0dcc35f37640b0a431188a31d2b4aa770c7. This selectively syncs the published fixes, tests, Web bundle, version and changelog without merging or overwriting the release branch.

Bug Reproduction Steps

N/A — post-release back-sync.

Root Cause

N/A — post-release back-sync.

Code Changes

Conflict / drift resolution

  • Moved the fix(agent-core-v2): validate Kimi media upload status #4905 implementation onto main's packages/core layout and added a focused packages/core/test/llm/kimi/files.test.ts; did not resurrect the deleted legacy modelRequester.test.ts.
  • Kept both zero-timeout cases: main's already-completed snapshot and the release's deterministic still-running snapshot.
  • Combined main's prompt-prediction and feedback RPC imports.
  • Kept main's LLM error request-id fallback and Message types while applying the released retained-request_id behavior. Did not restore the deleted legacy llmRequesterService.test.ts; the new loop test uses main's providerHttpError fixture.
  • Added 05e5ed0cd to remove a conflict-resolution brace and adapt that fixture to main's core error adapter.
  • Merged latest main in c0cca0dcc after chore: sync web dist from code-app #4976 advanced the generated Web bundle. Rebuilt dist from d53ba988 plus the same three published hotfixes; no source conflicts existed, and the merge commit records all three code-app source SHAs.

Behavior Changes and Affected Users

Behavior Before After Who relies on the old behavior Escape hatch
Release metadata on main CLI 2.6.1; main lacks the six published source/test fixes. CLI 2.6.2 with the published fixes and changelog. Release tooling and contributors. N/A — back-sync of the already released behavior.
Bundled Web UI code-app d53ba988 bundle at CLI 2.6.1. Same main Web baseline plus the three published hotfixes, at CLI 2.6.2. Web UI users. N/A — preserves main functionality while syncing the published fixes.
npm / VS Code / CDN / Desktop Already released or intentionally unchanged. No action from this PR beyond syncing main. Users of those channels. This PR does not republish npm or VS Code, write CDN, or change Desktop.

Verification

Re-ran after merging latest main 6e35efa98402b2a5a198aa929ef178e79ab26bb4 on 2026-11-16; all checks below passed again. The released #4922 commit and its back-sync commit have identical stable patch-id 65889d8e9375968826396b6685c7cd86f23b80ed, and its 54-test kap-server suite passes.

  • pnpm -w run typecheck passed (packages build, all package typechecks, CLI, VS Code and vis).
  • pnpm -w run lint completed with 0 errors; pnpm --filter @moonshot-ai/kimi-code run build passed.
  • Targeted tests passed:
    • packages/core/test/llm/kimi/files.test.ts.
    • Eight agent-core-v2 files covering event replay, task wait, loop/request IDs, auth/feedback, session export and tools (448 tests; the final loop file rerun was 69/69).
    • kap-server/test/sessionEventBroadcaster.test.ts (54 tests).
    • OAuth custom registry and managed feedback suites (57 tests).
    • Node SDK config suite (7 tests).
    • CLI/TUI feedback, replay, shell and fd suites (661 tests).
    • Web hotfix suites for app-client, app-components and app-markdown (20 tests).
  • Web production build succeeded; node apps/kimi-code/scripts/check-web-assets.mjs passed with 639 entries. The generated bundle contains the 2.6.2 marker, retains main table-selection markers and includes the code-wrap fix; credential/internal-marker scan returned 0 hits.
  • Final diff checks: no pnpm-lock.yaml diff, no docs(changelog): sync 2.6.2 from apps/kimi-code/CHANGELOG.md #4929 changelog-docs diff, no unconsumed changeset loss, and zero diff in the independent pending-turn-cancel paths.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (N/A — post-release back-sync for ci: release packages #4918).
  • I have added tests that prove my feature works. (Published tests are synced and adapted to main; generated Web assets are covered by their source tests and asset checks.)
  • 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.
  • Ran gen-changesets skill, or this PR needs no changeset. (Post-release back-sync: consumed changesets only; all unreleased main changesets preserved.)
  • Ran gen-docs skill, or this PR needs no doc update. (Published configuration/reference docs are synced; the dedicated 2.6.2 changelog docs PR docs(changelog): sync 2.6.2 from apps/kimi-code/CHANGELOG.md #4929 is already merged.)

Final CI (2026-11-16)

kimi-agent-bot and others added 9 commits November 14, 2026 02:07
)

* fix(agent-core-v2): avoid quadratic cloning during session replay

* fix(agent-core-v2): isolate replay assignments and preserve rollback order

* refactor(agent-core-v2): make participant mutable replay explicit opt-in

---------

Co-authored-by: kimi-agent-bot <[email protected]>
* fix(agent-core-v2): reject failed Kimi image extraction

* chore: add Kimi image extraction changeset

* fix(agent-core-v2): validate Kimi media upload status
…y providers (#4875)

* feat(registry): support search_url and feedback_url on custom registry providers

* fix(sdk): honor provider.env credentials and custom_headers for feedback_url

* refactor(core): submit feedback through the engine

Web and desktop reach this machine through kap-server, so feedback submission resolves the active model's provider in the engine and is exposed on the same route and klient method. The SDK facade keeps the managed OAuth path and no longer re-derives provider credentials.

* refactor(sdk): drop the unused feedback facade

Product clients submit feedback through the engine. The SDK facade and oauth toolkit no longer keep a second managed-only submission path.

* refactor(feedback): share engine schemas across route and klient

The HTTP body uses the engine field names, so the route forwards it and the klient contract imports the same schemas.

* refactor(feedback): drop unused kap and klient surfaces

TUI reaches IFeedbackService through the harness. The HTTP routes, klient facade, and the schemas that only served them have no caller.

* refactor(feedback): package and upload feedback attachments in the engine

* refactor(feedback): keep FeedbackService internal to agent-core-v2

* test(cli): provide execFile in node:child_process mocks

The feedback codebase scanner added in this branch calls
promisify(execFile) at module scope and is now reachable from the
agent-core-v2 index, so partial child_process mocks in these suites
failed module evaluation.
… text-only option (#4876)

* feat(registry): support search_url and feedback_url on custom registry providers

* fix(sdk): honor provider.env credentials and custom_headers for feedback_url

* refactor(core): submit feedback through the engine

Web and desktop reach this machine through kap-server, so feedback submission resolves the active model's provider in the engine and is exposed on the same route and klient method. The SDK facade keeps the managed OAuth path and no longer re-derives provider credentials.

* refactor(sdk): drop the unused feedback facade

Product clients submit feedback through the engine. The SDK facade and oauth toolkit no longer keep a second managed-only submission path.

* refactor(feedback): share engine schemas across route and klient

The HTTP body uses the engine field names, so the route forwards it and the klient contract imports the same schemas.

* refactor(feedback): drop unused kap and klient surfaces

TUI reaches IFeedbackService through the harness. The HTTP routes, klient facade, and the schemas that only served them have no caller.

* refactor(feedback): package and upload feedback attachments in the engine

* refactor(feedback): keep FeedbackService internal to agent-core-v2

* test(cli): provide execFile in node:child_process mocks

The feedback codebase scanner added in this branch calls
promisify(execFile) at module scope and is now reachable from the
agent-core-v2 index, so partial child_process mocks in these suites
failed module evaluation.

* feat(feedback): disclose submitted files, attach request_id, and drop text-only option

* fix(session-export): keep SESSION_NOT_FOUND for missing non-empty session ids

The global-log-only fallback exists for feedback submissions without an
active session (empty id). Scoping it to empty ids restores the 40401
envelope that kap-server's export route promises for unknown sessions.

* test(agent-core-v2): pin retained request id semantics in llmRequester assertions
code-app: 11563df26b92f0035659083327976a2e9b8e6727

code-app-release: b0b6d9c7a45c96ca48039ff05789c6e90f76ef20

code-app-local-build: 005d2b437493b7ab04d01f70542f3b6356699f4d
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c0cca0d

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 13, 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-16T06:55:31.938279Z c0cca0d 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 13, 2026 •

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

commit: c0cca0d

@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: 05e5ed0cd2

ℹ️ 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/index.ts Resolved
code-app: d53ba9880e3bcced980c6b067fe78235a1ce43d3

code-app-release: b0b6d9c7a45c96ca48039ff05789c6e90f76ef20

code-app-local-build: 82947e2909cc258f9d745cd0c7a56019f7fead38
@liruifengv
liruifengv requested a review from RealKai42 November 16, 2026 09:32
@wbxl2000
wbxl2000 merged commit 334d798 into main Nov 16, 2026
18 checks passed
@wbxl2000
wbxl2000 deleted the chore/sync-release-2026-11-13-2-back-to-main branch November 16, 2026 09:33
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 25, 2026
…partials

MoonshotAI#4831 is equivalent: the upstream AgentTaskRequestService has no fork
counterpart, tasks run through AgentTaskService and the tool executor's
scheduler leases, and the restored retry/background-task regressions pass.

MoonshotAI#5026 and MoonshotAI#4930 stay partial with the precise remaining work: the schema
mismatch guard needs the release sync's test changes, and the 2.6.3 sync
still lacks the app-level feedback attachments file and a per-symbol
re-enumeration.
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 26, 2026
… audit

All 20 release-sync test files exist; the named feedback-attachments file is
a deletion, not a missing port, and the engine feedback service owns it.
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