Skip to content

[Bug] Write: Chat sidebar inherits stale context #835

Description

@felipevaz

Summary / 问题概述

The chat sidebar is often unaware of the text currently being worked on, and it just inherits previous context — often mentioning files that aren't there anymore.

Steps to reproduce / 复现步骤

Open a file in Write and have a conversation about it in the chat sidebar.
Close that file and open a different file.
Ask a question about the new file in the chat sidebar.
Observe that the assistant references the previous file or context instead of the current file.

Expected behavior / 期望行为

The chat sidebar should be aware of which file is currently open and base its context on the current text.

Actual behavior / 实际行为

The sidebar inherits stale context from previous conversations and mentions files that are no longer relevant and that were eventually deleted, as somehow the chat is continuing from a previous context.

Kun version / Kun 版本

0.2.25

Operating system / 操作系统

Mac OS 14.8.3

Logs / 日志

Checklist / 检查清单

  • I searched existing issues before opening this report. / 我已经搜索过现有 issue。
  • I removed sensitive information from logs and screenshots. / 我已经从日志和截图中移除敏感信息。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions