microsoft / microsoft/intelligent-terminal

Preserve agent progress status throughout streamed turns

Open
#494 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-AgentPane Issue-Bug Needs-Tag-Fix
Dominant language
C++
Stars
2k
Forks
159
Avg merge
21h 42m
Merged PRs (30d)
120

Description

Problem

AppEvent::AgentMessageChunk clears tab.progress_status for every streamed message chunk. That can erase an agent-supplied ProgressStatus while the same turn is still active, even though the turn-state helpers describe progress as lasting until turn close or overwrite.

Expected behavior

Keep the current turn's progress status while chunks stream, and clear it only at the established turn boundaries or when a newer progress update replaces it.

Context

Found during review of #491: https://github.com/microsoft/intelligent-terminal/pull/491#discussion_r3644975519

The line existed in the original app.rs before #491 and was moved unchanged into app_events.rs; track the behavior fix separately so #491 remains a file-splitting-only PR.

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 reading app_events.rs and the original handling in app.rs, then inspect the turn-state helpers that define progress lifetime. Trace AppEvent::AgentMessageChunk during a streamed turn and verify that progress remains until turn close or a newer update replaces it, while established boundaries still clear it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.