Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codeg",
"private": true,
"version": "0.15.9",
"version": "0.15.10",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codeg"
version = "0.15.9"
version = "0.15.10"
description = "Agent Code Generation App"
authors = ["feitao"]
edition = "2021"
Expand Down
19 changes: 10 additions & 9 deletions src-tauri/src/commands/session_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading