From 32b10d4539a0d183bd00722eb52447333b51c9f1 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sun, 14 Jun 2026 23:09:16 +0800 Subject: [PATCH 1/2] fix(session_info): fold the tool-name guard into the match arm Clears the clippy collapsible_match lint so the build passes under -D warnings; behavior is unchanged. --- src-tauri/src/commands/session_info.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src-tauri/src/commands/session_info.rs b/src-tauri/src/commands/session_info.rs index 31358eb9..c7a17328 100644 --- a/src-tauri/src/commands/session_info.rs +++ b/src-tauri/src/commands/session_info.rs @@ -293,15 +293,16 @@ fn compact_turn(turn: &MessageTurn) -> SessionMessageItem { parts.push(t); } } - ContentBlock::ToolUse { tool_name, .. } => { - // Bound the count per turn and each name's length; dedup on the - // truncated form so the collected `tools` can't exceed - // MAX_TOOLS_PER_TURN * MAX_TOOL_NAME_CHARS. - if tools.len() < MAX_TOOLS_PER_TURN && !tool_name.is_empty() { - let name = truncate_chars(tool_name, MAX_TOOL_NAME_CHARS); - if !tools.contains(&name) { - tools.push(name); - } + // Bound the count per turn and each name's length; dedup on the + // truncated form so the collected `tools` can't exceed + // MAX_TOOLS_PER_TURN * MAX_TOOL_NAME_CHARS. Once the cap is hit the + // guard fails and further ToolUse blocks fall through to `_`. + ContentBlock::ToolUse { tool_name, .. } + if tools.len() < MAX_TOOLS_PER_TURN && !tool_name.is_empty() => + { + let name = truncate_chars(tool_name, MAX_TOOL_NAME_CHARS); + if !tools.contains(&name) { + tools.push(name); } } // Tool results, images, and image-generation carry no useful plain From fd56d140b653b7075ca1938ab24369ba04a58cda Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sun, 14 Jun 2026 23:30:13 +0800 Subject: [PATCH 2/2] # Release version 0.15.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - feat(composer): The message input is now a rich-text composer — type @ for a mention panel that drops inline badges for files, sessions, commits, agents, and skills, with Markdown rendered as you type. - feat(chat): Attached files now show as inline, clickable badges in your sent messages. - feat(editor): Select lines in a file and add them to the conversation as a line-range badge. - feat(mcp): A new get_session_info tool resolves an @-mentioned session into its metadata, stats, and recent messages. - feat(appearance): The interface font now defaults to System Monospace. - fix(conversations): File links in conversation titles now fold to their label instead of raw Markdown. ----------------------------- # 发布版本 0.15.10 - 功能(输入框):消息输入框升级为富文本编辑器——输入 @ 打开提及面板,插入文件、会话、提交、智能体和技能的内联徽章,Markdown 边输入边渲染。 - 功能(聊天):附加的文件现在以内联、可点击的徽章显示在已发送的消息中。 - 功能(编辑器):在文件中选中若干行,即可作为行号区间徽章加入对话。 - 功能(MCP):新增 get_session_info 工具,将 @ 提及的会话解析为其元数据、统计信息和最近消息。 - 功能(外观):界面字体现在默认使用系统等宽字体(System Monospace)。 - 修复(会话):会话标题中的文件链接现在折叠为标签,不再显示原始 Markdown。 --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8f253842..80438d1b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "codeg", "private": true, - "version": "0.15.9", + "version": "0.15.10", "scripts": { "dev": "next dev --turbopack", "build": "next build", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7d2eab1e..49ee0e80 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -982,7 +982,7 @@ checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32" [[package]] name = "codeg" -version = "0.15.9" +version = "0.15.10" dependencies = [ "aes-gcm", "agent-client-protocol-schema", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d456296d..b8d4ae5c 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codeg" -version = "0.15.9" +version = "0.15.10" description = "Agent Code Generation App" authors = ["feitao"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0f7e2ddf..4d7659cc 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "codeg", - "version": "0.15.9", + "version": "0.15.10", "identifier": "app.codeg", "build": { "beforeDevCommand": "pnpm tauri:before-dev",