MoonshotAI / MoonshotAI/kimi-code

web: 浏览历史会话时,偶发收到早已结束的会话的「任务已完成」通知(似乎与会话首次加载有关)

Open
#3,557 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

你运行的 Kimi Code 版本是?

0.41.0

你使用的是哪个开放平台/订阅?

第三方 OpenAI 兼容 provider(阿里云百炼)。看起来是 web UI 前端的问题,应该与 provider/模型无关。

你使用的是哪个模型?

bailian/qwen3.8-flash

你的电脑平台是?

Microsoft Windows NT 10.0.26100.0 x64

你遇到了什么问题?

环境:Chrome 浏览器 + kimi web(127.0.0.1 本地访问)。

kimi web 里浏览历史会话时,偶尔会收到针对早已结束的历史会话(可能几天前就完成了)的「任务已完成」通知,而实际上并没有任何 agent 活动在运行。

我这边观察到的大致模式是:正停留在会话 A 时,点进一个当前页面内还没有加载过的历史会话 B,B 加载完成的那一刻,会弹出针对 A 的「任务已完成」通知。似乎只在会话首次加载时出现——该会话加载过一次之后,再来回切换就不太弹了;有些长会话虽然也会重新加载,但同样没有触发。

这个规律不确定是否普遍,以上仅为我机器上的观察,供定位参考。

复现步骤?
  1. 打开 kimi web,进入任意会话 A,等待其加载完成、正常显示
  2. 点击一个当前页面生命周期内尚未打开过的历史会话 B
  3. B 加载完成时,偶发弹出针对 A 的「任务已完成」通知

说明:非每次必现;在我这边似乎只在会话首次加载时触发,已加载过的会话之间切换不再出现。

示例会话:session_beb9ec0a-495b-4274-a7b3-25010968c609。上下文用量:不适用(纯 UI 前端问题,与会话上下文大小无关)。

期望的行为是什么?

没有进行中任务的会话不应收到「任务已完成」通知;通知应只对应实时发生的 agent 活动。

补充信息
  • 猜测(仅供参考):事件日志中存在 event.session.work_changed 一类事件,怀疑是会话加载/激活完成时,「工作结束」状态事件的归属会话弄错了(记到了前一个活动会话上)。
  • 影响:不影响数据,但通知有误导性,容易让人以为有任务刚跑完。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue through the kimi web entry point while switching from session A to an unvisited session B. Trace event.session.work_changed during the first load and verify which session owns the completion event. Done means a completed historical session no longer produces a notification unless a real agent activity has just ended.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.