CommandCodeAI / CommandCodeAI/desktop

[Bug]: Conversation not compacting

未关闭
#97 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Shell
星标
80
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

GUI version

0.1.35

Operating system

Linux (other)

Reproduction steps
  1. Open Command Code
  2. Get into a conversation
  3. run /compact
Expected behavior

It should compact the conversation in order to save tokens

Actual behavior

It isn't compacting the conversation and prints "Compacted to n messages to n+1 messages, saved 0 tokens" just like the attached screenshot

Image
Screenshots, recordings, or sanitized logs

No response

Safety check
  • I removed credentials and private project information from this report.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先从桌面 GUI 跟踪 /compact 命令,并检查会话压缩和令牌计数路径。使用 GUI 版本 0.1.35 在 Linux 上重现该问题,然后验证 /compact 会缩短会话,并报告节省的令牌数而不是零。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。