Skip to content

Conversation

@rwoll
Copy link
Member

@rwoll rwoll commented Aug 29, 2025

  • getIcon did not account for ToolConfirmKind.Setting (e.g. auto-approve)
  • completion promise was being changed to Canceled despite it already being resolved.

See my verbose(!) debugging comment
which walks you through states of ConfirmationKind
in getIcon under different commits.

Fixes #264023.
Relates #263314 (getIcon added by @connor4312).
Relates #262982 (ConfirmationKind.UserSetting added by @Tyriar).
Supercedes #264047 (revert of a commit that changed confirmation logic from sync -> async by @rwoll).

Reviewers: I'm not 100% on what the expected UI iconography experience is, so
please verify that the icons align with what y'all have in mind.

Suggested follow ups:

  • Tests - especially one around getIcon to ensure it handles ConfirmationKind
    exhaustively as folks add new kinds.

* `getIcon` did not account for `ToolConfirmKind.Setting` (e.g. auto-approve)
* `completion` promise was being changed to `Canceled` despite it already being resolved.

See my [verbose(!) debugging comment](microsoft#264023 (comment))
which walks you through states of `ConfirmationKind`
in `getIcon` under different commits.

Fixes microsoft#264023.
Relates microsoft#263314 (`getIcon` added by @connor4312).
Relates microsoft#262982 (`ConfirmationKind.UserSetting` added by @Tyriar).

Reviewers: I'm not 100% on what the expected UI iconography experience is, so
please verify that the icons align with what y'all have in mind.

Suggested follow ups:

- [ ] Tests - especially one around `getIcon` to ensure it handles `ConfirmationKind`
      exhaustively as folks add new kinds.
@vs-code-engineering vs-code-engineering bot added this to the August 2025 milestone Aug 29, 2025
@rwoll
Copy link
Member Author

rwoll commented Aug 29, 2025

@Tyriar - Hmmm… if I say:

Run the sleep command in the terminal for 30s

…and then click the Cancel button (next to the chat box) it's showing up as a checkmark next to the command. is that expected, or which icon are we expecting there?

@rwoll
Copy link
Member Author

rwoll commented Aug 29, 2025

…and then click the Cancel button (next to the chat box) it's showing up as a checkmark next to the command. is that expected, or which icon are we expecting there?

it looks like that's the behavior even with this (and my other commit reverted).

@Tyriar
Copy link
Member

Tyriar commented Aug 29, 2025

@Tyriar - Hmmm… if I say:

Run the sleep command in the terminal for 30s

…and then click the Cancel button (next to the chat box) it's showing up as a checkmark next to the command. is that expected, or which icon are we expecting there?

That sounds wrong. It should only ever get a tick if the command runs to completion

@rwoll
Copy link
Member Author

rwoll commented Aug 29, 2025

Closing this for now — there's still some edge cases not working (e.g. see above). I'll revert my commit to ensure it's not in Monday's build and then work more on it next week.

@rwoll rwoll closed this Aug 29, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 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.

All tool calls show canceled status in latest

3 participants