From 1b80d66239856d6cec30d5b7836ebae6807e9a36 Mon Sep 17 00:00:00 2001 From: KimiSwitch Dev Date: Mon, 14 Sep 2026 22:40:44 +0800 Subject: [PATCH] =?UTF-8?q?chore(flags):=20=E9=80=82=E9=85=8D=20kimi-code?= =?UTF-8?q?=200.43.0=20=E2=80=94=20=E7=A7=BB=E9=99=A4=E8=BD=AC=E6=AD=A3=20?= =?UTF-8?q?auto=5Fsession=5Ftitle=20=E5=AE=9E=E9=AA=8C=20flag=20=E2=80=94?= =?UTF-8?q?=20bump=20to=20v0.7.19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- release-notes-v0.7.19.md | 10 ++++++++++ src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/commands.rs | 8 ++++---- src-tauri/tauri.conf.json | 2 +- src/components/SubagentSettingsPage.tsx | 4 ---- src/i18n/en.ts | 2 -- src/i18n/zh.ts | 2 -- src/lib/subagent-settings.test.ts | 13 +++++++------ src/lib/subagent-settings.ts | 11 ++++------- 11 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 release-notes-v0.7.19.md diff --git a/package.json b/package.json index bf91f85..cbbeb7a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kimiswitch", "private": true, - "version": "0.7.18", + "version": "0.7.19", "type": "module", "scripts": { "dev": "vite", diff --git a/release-notes-v0.7.19.md b/release-notes-v0.7.19.md new file mode 100644 index 0000000..045c0c1 --- /dev/null +++ b/release-notes-v0.7.19.md @@ -0,0 +1,10 @@ +# KimiSwitch v0.7.19 + +## 适配 + +- **适配 kimi-code 0.43.0 实验 flag 镜像(7→5)**:移除已转正的 `auto_session_title` 开关(上游 #3749,AI 会话标题不再需要 flag,首轮对话后自动生成、可在重命名处重新生成)。设置页「实验性 flag」、环境变量探测(`get_experimental_env_status`)、中英文案与测试断言同步清理;上游 0.43.0 注册表现剩 5 个 flag: `wait_for` / `tool-select` / `notify_user` / `tower` / `subagent_fork` +- **兼容性核查结论(无需改动)**:0.43.0 的 wire 持久化重建(#3737)不影响用量统计——`usage.record` / `token_counting.measured` / `context.apply_compaction` / `turn.prompt` 记录全部保留(`turn.prompt` 仅新增可选 `turnId` 字段);新增配置项 `loop_control.compaction_max_attempts`(#3750)经现有合并式写入验证保存不丢失;MCP `deferred` 字段(#3667)不涉及本应用管理的配置节 + +## 备注 + +- 若此前在 `[experimental]` 中显式开启过 `auto_session_title`,残留键会被上游静默忽略,无需手动清理 diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index c3d62e7..baa1e0f 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1978,7 +1978,7 @@ dependencies = [ [[package]] name = "kimiswitch" -version = "0.7.18" +version = "0.7.19" dependencies = [ "anyhow", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index cc3e019..a568dac 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kimiswitch" -version = "0.7.18" +version = "0.7.19" description = "Kimi Switch - model config manager" authors = ["codingplan.site"] edition = "2021" diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 8e6116a..a2c39d1 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -1349,9 +1349,10 @@ pub async fn kimi_oauth_poll( /// are probed too — the latter lets AgentSettingsPanel decide whether to /// dual-write the v1 engine's loop_control keys. /// -/// As of Kimi Code 0.42.0 the upstream registry holds 6 experimental flags; +/// As of Kimi Code 0.43.0 the upstream registry holds 5 experimental flags +/// (`auto_session_title` graduated in 0.43.0 — titles are always on); /// `secondary-model`, `persistence_minidb_readmodel`, `remote-control` and -/// `search_worker` have been promoted or removed upstream and are no longer +/// `search_worker` were promoted or removed earlier and are no longer /// probed here. /// /// The flag id → env var mapping mirrors `EXPERIMENTAL_FLAGS` in @@ -1361,12 +1362,11 @@ pub async fn kimi_oauth_poll( /// the raw values are returned and the truthy check happens on the frontend. #[tauri::command] pub fn get_experimental_env_status() -> HashMap { - const VARS: [(&str, &str); 8] = [ + const VARS: [(&str, &str); 7] = [ ("tool-select", "KIMI_CODE_EXPERIMENTAL_TOOL_SELECT"), ("tower", "KIMI_CODE_EXPERIMENTAL_TOWER"), ("subagent_fork", "KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK"), ("wait_for", "KIMI_CODE_EXPERIMENTAL_WAIT_FOR"), - ("auto_session_title", "KIMI_CODE_EXPERIMENTAL_AUTO_SESSION_TITLE"), ("notify_user", "KIMI_CODE_EXPERIMENTAL_NOTIFY_USER"), // Non-flag probes consumed by the frontend: ("master", "KIMI_CODE_EXPERIMENTAL_FLAG"), diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8d24c59..852143b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "Kimi Switch", - "version": "0.7.18", + "version": "0.7.19", "identifier": "com.kimiswitch.app", "build": { "beforeDevCommand": "npm run dev", diff --git a/src/components/SubagentSettingsPage.tsx b/src/components/SubagentSettingsPage.tsx index e388923..3e8dea1 100644 --- a/src/components/SubagentSettingsPage.tsx +++ b/src/components/SubagentSettingsPage.tsx @@ -48,10 +48,6 @@ const FLAG_LABELS: Record = { flagSubagentForkDesc: "Agent/AgentSwarm tools can start a subagent with a snapshot of the calling agent's history (fork parameter)", flagWaitFor: "WaitFor Tool", flagWaitForDesc: "The agent can wait for background tasks to finish within the current turn", - flagAutoSessionTitle: "Auto Session Title", - flagAutoSessionTitleDesc: "Generate session titles automatically via the managed chat_title tool", flagNotifyUser: "NotifyUser tool", flagNotifyUserDesc: "Experimental Updates panel: paginated progress messages from the main agent and subagents (off by default)", flagDefaultOn: "On by default", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index c751995..280b6e9 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -484,8 +484,6 @@ export const zhTranslations = { flagSubagentForkDesc: "Agent/AgentSwarm 工具可携带主代理会话快照启动子代理(fork 参数)", flagWaitFor: "WaitFor 工具", flagWaitForDesc: "代理可在当前回合内等待后台任务完成,而无需结束回合再被唤醒", - flagAutoSessionTitle: "自动会话标题", - flagAutoSessionTitleDesc: "通过托管 chat_title 工具自动生成会话标题", flagNotifyUser: "NotifyUser 工具", flagNotifyUserDesc: "实验性 Updates 面板:分页展示主代理与子代理的进度消息(默认关闭)", flagDefaultOn: "默认开启", diff --git a/src/lib/subagent-settings.test.ts b/src/lib/subagent-settings.test.ts index 74d5ed7..56f620c 100644 --- a/src/lib/subagent-settings.test.ts +++ b/src/lib/subagent-settings.test.ts @@ -461,22 +461,23 @@ describe("validateSubagentPool", () => { // --------------------------------------------------------------------------- describe("experimental flag registry", () => { - it("mirrors the 0.42.0 v2 registry (6 flags)", () => { + it("mirrors the 0.43.0 v2 registry (5 flags)", () => { expect(EXPERIMENTAL_FLAGS.map((f) => f.id)).toEqual([ "wait_for", "tool-select", "notify_user", "tower", "subagent_fork", - "auto_session_title", ]); // Removed upstream: file_history (0.41.0, turn-level file history is - // always on) plus secondary-model / persistence_minidb_readmodel / - // remote-control / search_worker (0.42.0 — promoted or moved to - // dedicated config, the minidb read-model now lives under [database]), - // so the adapter must not mirror them either. + // always on), auto_session_title (0.43.0, graduated — AI session titles + // are always on, #3749), plus secondary-model / + // persistence_minidb_readmodel / remote-control / search_worker + // (0.42.0 — promoted or moved to dedicated config, the minidb read-model + // now lives under [database]), so the adapter must not mirror them either. for (const id of [ "file_history", + "auto_session_title", "secondary-model", "persistence_minidb_readmodel", "remote-control", diff --git a/src/lib/subagent-settings.ts b/src/lib/subagent-settings.ts index a7b305e..a46c40e 100644 --- a/src/lib/subagent-settings.ts +++ b/src/lib/subagent-settings.ts @@ -33,10 +33,11 @@ export interface ExperimentalFlagDef { defaultEnabled?: boolean; } -/** Known experimental flags — mirrors the kimi-code 0.42.0 v2 flag registry +/** Known experimental flags — mirrors the kimi-code 0.43.0 v2 flag registry * (the per-feature flag.ts files under packages/agent-core-v2/src): - * wait_for, tool-select, notify_user, tower, subagent_fork, - * auto_session_title. Removed in 0.42.0: secondary-model, remote-control + * wait_for, tool-select, notify_user, tower, subagent_fork. + * Removed in 0.43.0: auto_session_title (graduated — AI session titles are + * always on, #3749). Removed in 0.42.0: secondary-model, remote-control * and search_worker (promoted or dropped upstream — no flag left), and * persistence_minidb_readmodel (now controlled by the `[database]` config * section). `acp-v2` was removed upstream earlier; `file_history` was @@ -53,10 +54,6 @@ export const EXPERIMENTAL_FLAGS: ExperimentalFlagDef[] = [ { id: "notify_user", envVar: "KIMI_CODE_EXPERIMENTAL_NOTIFY_USER" }, { id: "tower", envVar: "KIMI_CODE_EXPERIMENTAL_TOWER" }, { id: "subagent_fork", envVar: "KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK" }, - { - id: "auto_session_title", - envVar: "KIMI_CODE_EXPERIMENTAL_AUTO_SESSION_TITLE", - }, ]; export const EXPERIMENTAL_MASTER_ENV = "KIMI_CODE_EXPERIMENTAL_FLAG";