Skip to content

remove elicitation prompt on timeout or when user interacts with it#268905

Merged
meganrogge merged 4 commits intomainfrom
merogge/hide-event
Sep 29, 2025
Merged

remove elicitation prompt on timeout or when user interacts with it#268905
meganrogge merged 4 commits intomainfrom
merogge/hide-event

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

@meganrogge meganrogge commented Sep 29, 2025

fix #268836

This regressed with a recent change I made. Also, noticed the disposes were not happening as expected.

demo-fix.mov

Before:

Screenshot 2025-09-29 at 1 10 43 PM

After:

Screenshot 2025-09-29 at 1 10 51 PM

The response always indicates what happened, so I don't think we should keep that prompt in the list.

Copilot AI review requested due to automatic review settings September 29, 2025 16:51
@meganrogge meganrogge self-assigned this Sep 29, 2025
@meganrogge meganrogge added this to the September 2025 milestone Sep 29, 2025
@meganrogge meganrogge enabled auto-merge (squash) September 29, 2025 16:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a regression where terminal command completion handling was incorrectly disposing of prompt parts instead of just hiding them. The changes standardize the cleanup behavior to only hide elicitation prompts when commands finish, avoiding premature disposal.

Key changes:

  • Remove explicit dispose() calls on prompt parts throughout the output monitor
  • Make hide() calls async where appropriate and add proper await handling
  • Refactor ChatElicitationRequestPart to use observable for hidden state instead of disposal tracking

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
outputMonitor.ts Remove dispose calls on prompt parts and make hide operations async
chatService.ts Remove return type from hide method signature
chatElicitationRequestPart.ts Replace disposal-based hiding with observable state management

@meganrogge meganrogge marked this pull request as draft September 29, 2025 16:53
auto-merge was automatically disabled September 29, 2025 16:53

Pull request was converted to draft

@meganrogge meganrogge marked this pull request as ready for review September 29, 2025 17:11
@meganrogge meganrogge enabled auto-merge (squash) September 29, 2025 17:11
@meganrogge meganrogge changed the title remove elicitation prompt when terminal command finishes remove elicitation prompt on timeout or when user interacts with it Sep 29, 2025
@meganrogge meganrogge merged commit 6ab4986 into main Sep 29, 2025
28 checks passed
@meganrogge meganrogge deleted the merogge/hide-event branch September 29, 2025 17:22
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Continue waiting..." controls still interactive after the command has completed

3 participants