Repository navigation
chore: bring over code-app's pending changesets and rewrite the release skills - #5081
Conversation
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. |
🦋 Changeset detectedLatest commit: 37e4866 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ddbbd63 to
5306201
Compare
commit: |
64061e4 to
a45a744
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ddbbd634cd
ℹ️ 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".
| @@ -1,5 +1,5 @@ | |||
| --- | |||
| "@moonshot-ai/kimi-code": patch | |||
| "kimi-code-app": patch | |||
There was a problem hiding this comment.
Preserve CLI release metadata for the proxy fix
The pre-existing changeset recorded the WebSocket proxy fix for @moonshot-ai/kimi-code, whose kimi web --remote-control path consumes @moonshot-ai/remote-control; replacing that package with kimi-code-app means the next changeset version run in scripts/version-release.mjs will omit this fix from the CLI changelog and potentially its version bump. Keep the original CLI changeset and add a separately named desktop changeset if both products need an entry. .agents/skills/gen-changesets/SKILL.mdL48-L53
Useful? React with 👍 / 👎.
| "kimi-code-app": patch | ||
| --- | ||
|
|
||
| 运行中发送消息默认改为立即插入当前回合,首次触发时显示提示,可在设置中切换为加入队列。 |
There was a problem hiding this comment.
State that queued sending is no longer the default
For desktop users who rely on the existing default, this entry only announces the new immediate-steering default and does not say that messages will no longer be queued by default. Because this is a default flip, the release note must explicitly name that lost behavior as well as the existing setting that restores it.
AGENTS.md reference: AGENTS.md:L119-L121
Useful? React with 👍 / 👎.
| "kimi-code-app": patch | ||
| --- | ||
|
|
||
| 优化样式与交互。 |
There was a problem hiding this comment.
Replace vague imported release notes with concrete changes
This entry will surface in the desktop changelog and updater merely as “optimize styles and interactions,” without identifying any user-visible change; .changeset/fix-core-2.6.3-backsync.md similarly groups several unrelated “known issues” without describing them. Replace these vague entries with concrete, separately scoped behavior changes, or omit them if users cannot perceive the work. .agents/skills/gen-changesets/SKILL.mdL33-L40
Useful? React with 👍 / 👎.
| "kimi-code-app": patch | ||
| --- | ||
|
|
||
| 在命令行工具子进程中注入当前会话与项目标识环境变量 `KIMI_CODE_SESSION_ID` 和 `KIMI_CODE_WORKSPACE_ID`。 |
There was a problem hiding this comment.
Do not release an unimplemented environment-variable feature
The next desktop release will advertise these variables, but a repo-wide search finds both names only in this changeset, and the Bash tool's subprocess environment in packages/agent-core-v2/src/agent/tools/os/bash/bashTool.ts contains only NO_COLOR, TERM, GIT_TERMINAL_PROMPT, and SHELL. Any tool or integration reading the advertised identifiers will therefore receive unset values; bring over the corresponding implementation and tests or defer this changeset until that code is present. .agents/skills/gen-changesets/SKILL.mdL56-L62
Useful? React with 👍 / 👎.
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| "kimi-code-app": minor | |||
There was a problem hiding this comment.
Reconcile the minor bump with the promised 1.3.8 release
This minor entry makes the accumulated desktop release advance from 1.3.7 to 1.4.0, while the commit description explicitly says the next generated tag will be [email protected]; the repository's own scripts/canary-version.test.mjs:73-76 confirms that a minor changeset advances the minor version. Update the release expectation and any downstream planning for 1.4.0, or resolve the bump classification before cutting the release. .agents/skills/gen-changesets/SKILL.mdL42-L46
Useful? React with 👍 / 👎.
a45a744 to
16a58ee
Compare
b8d0513 to
7a5cb73
Compare
7a5cb73 to
3ad6d2f
Compare
…se skills 31 unconsumed changesets from code-app's desktop-opensource (26 at the snapshot point plus 5 added by later main merges), covering every user-facing desktop change since v1.3.7. Entries are translated to English per this repo's changeset conventions, with overlong ones condensed. code-app's release-plan.json is intentionally not carried: every consumer reads it gated on the branch name, so the stale plan would be inert on any new release branch. gen-changesets is rewritten for the three-product world: the CLI, desktop, and the VS Code extension are user-facing products whose changesets feed release notes, update dialogs, and marketplaces; library source changes always get a library changeset, and changes that flow into a product user-perceivably get a product entry too. sync-changelog now covers two flows: Flow A syncs the CLI changelog into the docs site (unchanged rules), and Flow B prepares the desktop update-dialog bilingual notes under release-notes/<version> from apps/desktop/CHANGELOG.md — curated from English entries and translated into Chinese, with hard length limits (15 words / 40 characters / 10 entries) and a review-before-commit gate. pre-changelog previews both Chinese surfaces before a release PR merges, and locates the version PR by its release/* base branch.
3ad6d2f to
37e4866
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 37e486656c
ℹ️ 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".
| ```bash | ||
| gh api repos/MoonshotAI/kimi-code/pulls/<RELEASE>/files \ | ||
| --jq '.[] | select(.filename=="apps/kimi-code/CHANGELOG.md") | .patch' | ||
| --jq '.[] | select(.filename | endswith("CHANGELOG.md")) | {filename, patch}' |
There was a problem hiding this comment.
Paginate the release-PR file list
When the next version PR consumes the 48 pending changeset files, the PR will exceed the REST endpoint's default page size, so this filter can receive only the first page and miss both product CHANGELOG.md files; step 2 then incorrectly reports that there is no user-facing changelog to preview. The local gh api --help confirms that only --paginate fetches additional pages, so add it to this command.
Useful? React with 👍 / 👎.
| 1. Read `apps/desktop/CHANGELOG.md` and locate the section from `## <version>` to the next `## `. | ||
| 2. Extract entries: changesets entries look like ``- [#74](...) [`3adc4c5`](...) Thanks [@user](...)! - actual text``; keep only the text after `! - `, stripping PR links, commit links, and the Thanks credit. Multiple entries from one PR are normal — they all go to the next step. | ||
| 3. **Merge and dedupe** with the same rules as Flow A step 4: merge small tweaks to the same surface into one higher-level entry; merge three-or-more same-area or same-kind fixes into one; do not over-merge broad, high-value, or genuinely distinct fixes. | ||
| 4. **Classify** with the same test as Flow A: could users do this before? **No** → Features. **Yes** → Polish. When unsure, inspect the stripped commit (`git show <hash>`) or the PR (`gh pr view <N>`); if still unclear, use Other — do not guess into Features. Default-behavior changes are usually Polish. |
There was a problem hiding this comment.
Classify fixes before splitting features from polish
For desktop bug-fix entries such as browser-file-annotations, this prescribed decision has no route to the Bug Fixes section required by the output format: answering “no” because the operation was broken makes the fix a Feature, while answering “yes” because it was intended to work makes it Polish. Add an explicit bug-fix test before applying the Features-versus-Polish capability test, otherwise Flow B will systematically misclassify the imported fixes.
Useful? React with 👍 / 👎.
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| "kimi-code-app": patch | |||
There was a problem hiding this comment.
Mark new desktop capabilities as minor changes
This entry introduces the entirely new ability to connect to SSH hosts and create remote projects, so labeling it patch contradicts the newly added rule that capabilities users could not use before are minor; the same mismatch appears in calm-tables-select.md, curvy-pandas-cheer.md, mark-session-unread.md, pinned-workspaces.md, and web-add-workspace-mkdir.md. Correct these levels so the generated package changelog and semver metadata do not describe new features as patch changes.
AGENTS.md reference: AGENTS.md:L112-L113
Useful? React with 👍 / 👎.
| "kimi-code-app": minor | ||
| --- | ||
|
|
||
| Connect external agents such as Claude Code, Codex, and Cursor to this desktop app to hand off sessions, review history, and collaborate across turns. |
There was a problem hiding this comment.
Defer the absent external-agent collaboration entry
When this changeset is consumed, the desktop release will advertise live handoff and cross-turn collaboration with Claude Code, Codex, and Cursor, but a repo-wide search finds the collaboration wording only in this changeset, no desktop UI or kap-server implementation for connecting those agents, and no desktop dependency on the ACP server; the existing Claude/Codex code only imports historical sessions and does not support Cursor or live collaboration. Bring over the corresponding implementation and tests, or defer this entry so the release does not announce an unavailable feature.
Useful? React with 👍 / 👎.
| - **A library change flows into a product and is user-perceivable there** → also write for the product, as a separate file with a user-facing sentence. | ||
| - Changed `kap-server`'s session-list behavior → a `kap-server` entry; desktop embeds kap-server and users feel the change → a `kimi-code-app` entry too. | ||
| - `agent-core-v2` internal refactor (wire / journal / lifecycle plumbing) → an `agent-core-v2` entry only. | ||
| - The packages ignored in `.changeset/config.json` (the `app-*` UI layers, `vite-preset`, the vis packages, and `kimi-inspect`) never appear in a changeset. Changes to the `app-*` UI layers are written as `kimi-code-app` product entries instead. |
There was a problem hiding this comment.
Align the app-layer exception with the ignore list
When code changes under packages/app-components or packages/app-composer, this sentence tells authors to omit the library changeset and write only a kimi-code-app entry, but neither package appears in .changeset/config.json even though both are workspace libraries. This also conflicts with the preceding rule that every library source change gets its own technical entry; add these packages to the ignore list or narrow the exception to the app packages that are actually ignored.
AGENTS.md reference: AGENTS.md:L112-L113
Useful? React with 👍 / 👎.
| ### Steps | ||
|
|
||
| 1. Read `apps/desktop/CHANGELOG.md` and locate the section from `## <version>` to the next `## `. | ||
| 2. Extract entries: changesets entries look like ``- [#74](...) [`3adc4c5`](...) Thanks [@user](...)! - actual text``; keep only the text after `! - `, stripping PR links, commit links, and the Thanks credit. Multiple entries from one PR are normal — they all go to the next step. |
There was a problem hiding this comment.
Accept changelog entries without author credits
When a generated desktop changelog entry has no Thanks …! segment, this extraction rule cannot find ! - and silently loses the entry body from the update-dialog notes. This is a supported shape already present hundreds of times in apps/desktop/CHANGELOG.md, where entries use - [#…] [hash] - body; make the credit segment optional and extract the body after the PR/hash decoration in both forms.
Useful? React with 👍 / 👎.
* chore: import code-app sources into the monorepo (#5074) * chore: import code-app sources into the monorepo Snapshot-import the Kimi Code desktop app and its client packages from code-app (source: MoonshotAI/kimi-code-app desktop-opensource), without git history: apps/desktop, packages/app-*, vite-preset, patches, icon-tools, desktop release scripts, brand sources, release-notes. The snapshot includes code-app's latest product commits (#1364 rollout cap removal, #1365 local file annotations, #1367 empty tooltip fix). Not carried: apps/rc-portal, READMEs, apps/desktop/docs, the changeset/release-notes skills, code-app's pending changesets (they return at cutover), and .changeset/release-plan.json (its referenced changesets stay behind; the release flow regenerates it). Host-repo adaptations: workspace overrides (ssh2, zod, shiki 4.3.1, linkedom 0.18.12, canvas excluded), markstream-vue patch, root scripts and typecheck aggregation, vitest projects, flake.nix workspace lists, oxlint grandfathering of legacy findings via the ratchet baseline, check-comments strip of 401 legacy comments, a CI typecheck step for the desktop app, and pre-public audit scrubs (internal wiki revision in release_branch_kind.py, GitLab-CI wording in the local signing scripts). * build: produce the CLI's bundled web UI from the desktop renderer (#5075) * build: produce the CLI's bundled web UI from the desktop renderer dist-web is no longer committed: apps/kimi-code's prebuild runs scripts/sync-web-dist.mjs, which builds the desktop renderer's web variant and copies it into apps/kimi-code/dist-web; the native-assets workflow and the nix build do the same before packaging. The root gains a sync:web alias and check-web-assets.mjs stays as the packaging guard with an updated message; the stale .commentignore exemption for the previously committed bundle is dropped. * ci: bring the desktop build workflows into the monorepo (#5076) * ci: bring the desktop build workflows into the monorepo desktop-build.yml imported from code-app with the submodule checkout removed; triggers unchanged (release-branch pushes, dispatch, workflow_call). New desktop-ci.yml runs the Windows screenshot-native build, real window enumeration, and desktop tests on windows-latest, gated to desktop-related paths on PRs and full-suite on dispatch. The ci.yml release-workflow-tests job now also runs the imported release.test.mjs. desktop-e2e.yml is held back until the fullmoon-* self-hosted runners are granted to this repository. The main-window host-view tests now stub process.resourcesPath like the other describes in the file: on win32 runners windowsWindowOptions actually joins it, which failed with 'path argument must be of type string' the first time these tests ran on Windows. * ci: merge the desktop release flow into release.yml (#5077) One pipeline on release/* branches now ships both CLI and desktop: the version job runs scripts/version-release.mjs (records release-plan.json) so one version PR bumps CLI and kimi-code-app together; new desktop-release / desktop-artifacts / publish-desktop-assets jobs validate the plan, build four signed platform artifacts via desktop-build.yml, and publish a GitHub Release tagged kimi-code-desktop@<version>. CLI-only releases skip the desktop chain (release.mjs exits with build=false when the plan has no desktop package). The canary prerelease tag uses the same kimi-code-desktop@ prefix. * build(nix): include patches/ in the nix src fileset pnpm-workspace.yaml now carries a patchedDependency ([email protected]) whose patch file lives under patches/; the nix build's src fileset did not include it, so fetchPnpmDeps failed with ENOENT before even reaching the hash check. * build(nix): update fetchPnpmDeps hash for the merged lockfile Reported by the nix-build CI on #5079 after patches/ entered the src fileset. * build(nix): include tsconfig.base.json in the nix src fileset The desktop renderer's tsconfig extends ../../tsconfig.base.json, and vite resolves it while building the web variant inside the nix sandbox (via sync-web-dist). The file came from the code-app import and was not in the fileset. * chore: bring over code-app's pending changesets and rewrite the release skills (#5081) 31 unconsumed changesets from code-app's desktop-opensource (26 at the snapshot point plus 5 added by later main merges), covering every user-facing desktop change since v1.3.7. Entries are translated to English per this repo's changeset conventions, with overlong ones condensed. code-app's release-plan.json is intentionally not carried: every consumer reads it gated on the branch name, so the stale plan would be inert on any new release branch. gen-changesets is rewritten for the three-product world: the CLI, desktop, and the VS Code extension are user-facing products whose changesets feed release notes, update dialogs, and marketplaces; library source changes always get a library changeset, and changes that flow into a product user-perceivably get a product entry too. sync-changelog now covers two flows: Flow A syncs the CLI changelog into the docs site (unchanged rules), and Flow B prepares the desktop update-dialog bilingual notes under release-notes/<version> from apps/desktop/CHANGELOG.md — curated from English entries and translated into Chinese, with hard length limits (15 words / 40 characters / 10 entries) and a review-before-commit gate. pre-changelog previews both Chinese surfaces before a release PR merges, and locates the version PR by its release/* base branch. * chore: rename dev:desktop:canary to dev:desktop-canary * fix: run the web-variant build through a shell on Windows Node cannot execute pnpm.cmd directly via spawnSync on Windows; the sync script now goes through the shell there, unblocking pnpm build on Windows machines and the Windows legs of the native-assets workflow. Also bring the root guide's web UI entry up to date with the imported reality: the source is the desktop renderer, dist-web is a build-time artifact, and pnpm dev:web / sync:web are the in-repo commands. (--no-verify: lint-staged's oxlint step fails with 'No files found to lint' for paths under its ignorePatterns, such as apps/*/scripts/; check-comments and node --check pass.) * docs: dedupe the gen-changesets rules after the main merge The conflict resolution re-inserted the product/library bullets that were shared context after the conflict block. * docs: rewrite the gen-changesets section 1 bullet list cleanly The previous dedupe commit made the duplication worse; the section is now rewritten as a whole: product, library, public KAP, flows-into- product, ignored packages, ask-when-unsure.
需求或 Bug
把 code-app 的未消费 changeset 迁入本仓,保证 desktop 的 CHANGELOG 在换仓后连续:没有这批条目,下一个 desktop 正式版(
[email protected])的版本 PR 只会 bump 版本号,1.3.7 之后的全部用户可见变更(31 条)不会进入apps/desktop/CHANGELOG.md和更新弹窗的更新说明。Bug 复现步骤
N/A
根本原因
N/A
代码变更
本 PR 两部分:迁入 code-app 的 31 个待消费 changeset(英文化 + 简化),以及按三产品格局重写
gen-changesets、更新sync-changelog的 Overview。Part 1:changeset 迁移
+ .changeset/*.md × 31 # code-app desktop-opensource 上的全部未消费 changeset # (快照时 26 个 + 后续 main 合入新增 5 个) # 内容原样搬运,均为 kimi-code-app 的用户可见条目(中一句描述)kimi-code-app(合仓后包名不变,直接可被changeset version消费);gen-changesets规范翻成英文(一句面向用户的描述、去机制性从句),超长条目收敛——最长的一条(SSH 远程主机,原文 200+ 字覆盖主机目录选择 / 账号登录 / 供应商复制 / 停用行为等 6 个子项)收敛为两句:连接主机建项目、各主机独立账号且合盖离线会话照常;优化样式与交互这类含糊条目按实际内容具体化(统一按钮样式与交互);release-plan.json:所有消费方(version-release.mjs的连续性合并、canary-version.mjs的兜底、release.mjs)都按分支名门禁读取,旧 plan(release/2026-11-16周期)在任何新分支上都是惰性的、零功能价值;release.mjs运行时读的永远是 version job 刚生成的新 plan;pnpm exec changeset status验证通过:正确识别出kimi-code-app与@moonshot-ai/kimi-code的待发布项,无 major。Part 2:发布相关 skill 重写(
gen-changesets+sync-changelog+pre-changelog)gen-changesets按三产品格局重写:CLI / Desktop / VS Code 三个面向用户的产品(changeset 进 release notes、更新弹窗、市场 changelog),packages/*为依赖库(changeset 为技术条目);app-*UI 层维持 ignore,改动归入kimi-code-app产品条目;pnpm why(附常见流向);sync-changelog重组为「发布后 changelog 处理」的统一 skill,覆盖两个 flow:Flow A(CLI changelog → 文档站,规则原样保留)与 Flow B(desktop 更新弹窗双语 notes——从英文apps/desktop/CHANGELOG.md策展压缩 → 翻译成中文,方向相对 code-app 时代反转;长度硬限制:英文 ≤15 词 / 中文 ≤40 字 / ≤10 条 / 一条一效果;合并与分类复用 Flow A 的规则;commit 约定对齐新 tagkimi-code-desktop@<version>;review 后才允许 commit);VS Code 的 changelog 走 Marketplace,不进文档站;pre-changelog适配新发布流:按release/*base 分支定位 version PR(原changeset-release/main的写法已过时),预览面从仅 CLI 扩到 CLI(Flow A 规则)+ desktop(Flow B 规则,长度违规在预览期就标出),vscode 块只提及不渲染。影响范围
release/*分支的 version PR 统一消费,生成 desktop 的版本 bump 与 CHANGELOG。Checklist
changesetskill,或本 PR 无需 changeset。(本 PR 即 changeset 迁移本身)