[PR #18201] Improve parsing of responses from the AI #31470

Open
opened 2026-01-31 09:47:28 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18201

State: closed
Merged: No


Summary of the Pull Request

Instead of manually parsing out code blocks from the response we receive, use the cmark library.

Validation Steps Performed

Responses are parsed as expected.

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18201 **State:** closed **Merged:** No --- ## Summary of the Pull Request Instead of manually parsing out code blocks from the response we receive, use the `cmark` library. ## Validation Steps Performed Responses are parsed as expected. ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:47:28 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31470