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

Ouverte
#3,915 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:context-memory area:terminal-rendering
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

## 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`.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
50/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.