Skip to content

feat(desktop): show automatic context compaction status during streaming, consistent with manual compaction #5970

Open

Description

@faga295

Problem

When automatic context compaction occurs during a streaming turn, the UI should clearly show its status. Without this feedback, users cannot tell whether output has paused because context is being compacted or because execution is stuck.

Manual compaction already provides status feedback. Automatic compaction during streaming should offer a consistent experience.

Desired outcome

Reuse or align with the existing manual compaction status UI when context compaction occurs during streaming:

  • Show “Compacting context…” with an in-progress indicator as soon as compaction begins.
  • When compaction completes, clear the in-progress indicator and update the result using the existing manual compaction presentation. Streaming execution should then continue normally.
  • If compaction fails or execution is canceled, promptly clear the in-progress indicator and show feedback that reflects the actual outcome.
  • If compaction occurs multiple times within one turn, reflect each occurrence correctly without duplicate in-progress indicators.

Acceptance criteria

  1. Automatic context compaction during a streaming turn displays in-progress feedback consistent with manual compaction.
  2. When compaction ends, the status updates promptly and subsequent output is displayed normally.
  3. Failure or cancellation leaves no stale compaction indicator.
  4. Existing manual compaction behavior continues to work correctly.

Alternatives or workarounds

Users can initiate manual compaction and observe its status, but this does not replace real-time feedback for automatic compaction during streaming.

Activity

  1. faga295 commented on Oct 5, 2026

    @faga295
    ContributorAuthor

    take

  2. changed the title [-]feat(desktop): 流式执行期间展示自动上下文压缩状态,与手动压缩一致[/-] [+]feat(desktop): show automatic context compaction status during streaming, consistent with manual compaction[/+] on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions