github / github/copilot-cli

/compact: agent activity indicator fires immediately when next message is queued, making it look like the message was sent mid-compact

未关闭
#3,915 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:context-memory area:terminal-rendering
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

## Summary
When `/compact` is running and the user types and submits a new message, the message appears in BOTH the queued-message stack AND the main chat history, and the "working" activity indicator kicks on right away — as if the message had been sent to the LLM mid-compaction.

## Actual behavior (verified)
Functionally this is correct: the agent does not actually receive or respond to the queued message until `/compact` finishes. The bug is purely visual / UX.

## Expected
While `/compact` is still running, a newly typed message should:
- Stay visible only in the queued stack
- NOT appear duplicated in the main chat transcript
- NOT trigger the "working" / activity indicator

The activity indicator and transcript echo should only fire once `/compact` completes and the message is actually dispatched to the model.

## Why this matters
Users currently believe their message was sent prematurely and either re-send it, cancel, or assume `/compact` silently failed. The deceptive UI undermines trust in `/compact`.

贡献指南

打开贡献指南

调研方向

Start at the /compact command flow and reproduce the issue by submitting a message during compaction. Trace when the queued-message stack, main transcript, and working indicator update. Done means the message stays only in the queue and the transcript and indicator update only after compaction dispatches it.

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

评估

领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

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