Windows Terminal Chat does not consistently detect commands in responses from Azure OpenAI #21001

Closed
opened 2026-01-31 07:30:12 +00:00 by claunia · 3 comments
Owner

Originally created by @sirredbeard on GitHub (Dec 19, 2023).

Originally assigned to: @PankajBhojwani on GitHub.

Windows Terminal version

1.20.3491.0

Windows build number

10.0.22631.0

Other Software

Fedora Remix for WSL 39
Terminal Chat enabled with gpt-35-turbo Deployment

Steps to reproduce

Ask Terminal Chat: How do I install node on Fedora?

Expected Behavior

The AI assistant returns an answer with clickable commands.

Actual Behavior

Answers will vary, but occasionally the AI assistant will return an answer with code blocks that are not properly detected as commands that are then clickable:

image

Originally created by @sirredbeard on GitHub (Dec 19, 2023). Originally assigned to: @PankajBhojwani on GitHub. ### Windows Terminal version 1.20.3491.0 ### Windows build number 10.0.22631.0 ### Other Software Fedora Remix for WSL 39 Terminal Chat enabled with gpt-35-turbo Deployment ### Steps to reproduce Ask Terminal Chat: `How do I install node on Fedora?` ### Expected Behavior The AI assistant returns an answer with clickable commands. ### Actual Behavior Answers will vary, but occasionally the AI assistant will return an answer with code blocks that are not properly detected as commands that are then clickable: ![image](https://github.com/microsoft/terminal/assets/33820650/c4e38fd8-2e74-42f8-8b16-fda12b4dd0a0)
claunia added the Issue-BugNeeds-Tag-FixProduct-TerminalArea-Chat labels 2026-01-31 07:30:13 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2023):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (Dec 19, 2023): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Open similar issues: - [Attempt to configure "Terminal Chat" on second machine results in invalid Azure OpenAI endpoint error. (#16442)](https://github.com/microsoft/terminal/issues/16442), similarity score: 0.80 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@sirredbeard commented on GitHub (Dec 19, 2023):

An additional example. Here, it not only did not parse the code block, but it included newlines:

image

@sirredbeard commented on GitHub (Dec 19, 2023): An additional example. Here, it not only did not parse the code block, but it included newlines: ![image](https://github.com/microsoft/terminal/assets/33820650/368c8195-518e-4d87-8d97-512861eb0e3f)
Author
Owner

@PankajBhojwani commented on GitHub (Jul 2, 2025):

Fixed with #18220

@PankajBhojwani commented on GitHub (Jul 2, 2025): Fixed with #18220
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21001