Skip to content

Update confirmations to use new proposed terminal style #260770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Aug 9, 2025

Part of #257468
Fixes #260705
Fixes #260776
Fixes #259088

This adds ChatCustomConfirmationWidget2 that aims to be this new style for all tools.

I did not test the following:

  • InstallExtensionsTool/ExtensionsInstallConfirmationWidgetSubPart as it's not hooked up. Adoption for others didn't have any problems though.
  • kind: 'confirmation types as defined in here, not sure where they show up

Initial state:

image

Dropdown:

image

Delayed hover on command:

image

Terminal output polling:

image

Extension install (from copilot ext):

image

Task run:

image

Test run:

image

MCP (disclaimer wrapping is existing issue #260806):

image

@Tyriar Tyriar added this to the August 2025 milestone Aug 9, 2025
@Tyriar Tyriar self-assigned this Aug 9, 2025
this._getUniqueCodeBlockUri(),
true
);
textModelService.createModelReference(model.uri).then(ref => {
Copy link
Member

Choose a reason for hiding this comment

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

See my helper thenifNotDisposed

Copy link
Member

Choose a reason for hiding this comment

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

The fact that we have to do this is confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think I can use that since I need to call dispose on it to free the reference when the chat part is disposed?

@Tyriar Tyriar changed the title Update terminal confirmation part to new style Update confirmations to use new proposed terminal style Aug 9, 2025
@Tyriar Tyriar marked this pull request as ready for review August 9, 2025 23:22
@Tyriar Tyriar marked this pull request as draft August 9, 2025 23:30
@connor4312
Copy link
Member

THe last screenshot has odd word wrap

image

@Tyriar
Copy link
Member Author

Tyriar commented Aug 10, 2025

@connor4312 mentioned that above, actually not a regression #260806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants