Repository navigation
chore: sync release/2026-11-13-2 back to main - #4930
Conversation
) * 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
Co-authored-by: kimi-agent-bot <[email protected]>
…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>
|
Codex Review Summary: ✅ CompletedThis 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: 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".
code-app: d53ba9880e3bcced980c6b067fe78235a1ce43d3 code-app-release: b0b6d9c7a45c96ca48039ff05789c6e90f76ef20 code-app-local-build: 82947e2909cc258f9d745cd0c7a56019f7fead38
…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.
… 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.
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
mainf082f04a093a3e71a2263c5461d52507dc31f83a; latestmain6e35efa98402b2a5a198aa929ef178e79ab26bb4is now merged as the second parent ofc0cca0dcc35f37640b0a431188a31d2b4aa770c7. 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
main:ec35f9ac158c195d17b4736054e4ffc16dac3c3c(fix(agent-core-v2): avoid quadratic cloning during session replay #4885), long-session replay performance.90d8e31ba34eef50d25b9e8020501c4e46a59d9d(fix(agent-core-v2): validate Kimi media upload status #4905), Kimi media upload status validation.a27bd82d32061d68a012ececa8d6f6dbe6ce9df8(fix(kap-server): forward swarm member task events #4922), Swarm member task events.546fbba344cf981bfc25c6eb15bd71d146268c8f(test(agent-core-v2): make zero-timeout task wait deterministic #4925), deterministic zero-timeout task wait test.4c72e1d53b33c69c5f3e2bd293cb117577becbd7(feat(registry): support search_url and feedback_url on custom registry providers #4875), custom registrysearch_url/feedback_url.d532f4f9adf8633a515d0628bc97247dd91dcfbc(feat(feedback): disclose submitted files, attach request_id, and drop text-only option #4876), feedback disclosure andrequest_idmetadata.6a8493df3e1d796a63f7c7ca0de76c1e690cd943: CLI2.6.1→2.6.2, the 16-lineapps/kimi-code/CHANGELOG.mdincrement, and consumed-changeset bookkeeping. VS Code remains0.9.0;pnpm-lock.yamlis unchanged.apps/kimi-code/dist-webwithout revertingmain-only Web features. Directly taking chore: sync web dist from code-app #4927's hotfix bundle would have dropped features already present onmain, so the bundle was rebuilt from a clean local build-only commit82947e2909cc258f9d745cd0c7a56019f7fead38, consisting of:d53ba9880e3bcced980c6b067fe78235a1ce43d3(the latestmainWeb baseline from chore: sync web dist from code-app #4976), plusb0b6d9c7a45c96ca48039ff05789c6e90f76ef20:09f052e36f07e1421055dbe8ad57e002d5a51158(Stop hook should include recent messages to enable external memory systems #1306),cf93e998c1c2d3001f86676a91c02341f133cb02(终端自动刷新,导致黑屏 #1309), andb0b6d9c7a45c96ca48039ff05789c6e90f76ef20(feat(agent-core): keep head and tail of user messages during compaction #1313).6a8493df3e1d796a63f7c7ca0de76c1e690cd943during the build, injecting client version2.6.2, then restored. The temporary code-app commit was not pushed; no Desktop source, branch, PR or release was changed.maincommits and all nine pre-existing unconsumedmainchangesets. The six changesets introduced and consumed within this back-sync have zero net diff;fix-long-session-replay-stall.mdwas already absent frommain. Dedicated docs PR docs(changelog): sync 2.6.2 from apps/kimi-code/CHANGELOG.md #4929 is already inmainand has zero diff here. The independent pending-turn-cancel fix is not included.Conflict / drift resolution
main'spackages/corelayout and added a focusedpackages/core/test/llm/kimi/files.test.ts; did not resurrect the deleted legacymodelRequester.test.ts.main's already-completed snapshot and the release's deterministic still-running snapshot.main's prompt-prediction and feedback RPC imports.main's LLM error request-id fallback andMessagetypes while applying the released retained-request_idbehavior. Did not restore the deleted legacyllmRequesterService.test.ts; the new loop test usesmain'sproviderHttpErrorfixture.05e5ed0cdto remove a conflict-resolution brace and adapt that fixture tomain's core error adapter.maininc0cca0dccafter chore: sync web dist from code-app #4976 advanced the generated Web bundle. Rebuilt dist fromd53ba988plus 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
main2.6.1;mainlacks the six published source/test fixes.2.6.2with the published fixes and changelog.d53ba988bundle at CLI2.6.1.mainWeb baseline plus the three published hotfixes, at CLI2.6.2.mainfunctionality while syncing the published fixes.main.Verification
Re-ran after merging latest
main6e35efa98402b2a5a198aa929ef178e79ab26bb4on 2026-11-16; all checks below passed again. The released #4922 commit and its back-sync commit have identical stable patch-id65889d8e9375968826396b6685c7cd86f23b80ed, and its 54-test kap-server suite passes.pnpm -w run typecheckpassed (packages build, all package typechecks, CLI, VS Code and vis).pnpm -w run lintcompleted with 0 errors;pnpm --filter @moonshot-ai/kimi-code run buildpassed.packages/core/test/llm/kimi/files.test.ts.kap-server/test/sessionEventBroadcaster.test.ts(54 tests).node apps/kimi-code/scripts/check-web-assets.mjspassed with 639 entries. The generated bundle contains the2.6.2marker, retainsmaintable-selection markers and includes the code-wrap fix; credential/internal-marker scan returned 0 hits.pnpm-lock.yamldiff, 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
main; generated Web assets are covered by their source tests and asset checks.)gen-changesetsskill, or this PR needs no changeset. (Post-release back-sync: consumed changesets only; all unreleasedmainchangesets preserved.)gen-docsskill, 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)