opensumi / core

🚀 A framework helps you quickly build AI Native IDE products. https://preview.opensumi.com
https://opensumi.com
MIT License
2.81k stars 354 forks source link

fix: inline chat code blocks controller #3809

Closed Ricbet closed 3 weeks ago

Ricbet commented 3 weeks ago

Types

Background or solution

之前处理模型回答的代码块逻辑有问题,现调整成更合理的方式

Changelog

修复 inline chat 流式渲染偶现代码块不完整的问题

railway-app[bot] commented 3 weeks ago

This PR was not deployed automatically as @Ricbet does not have access to the Railway project.

In order to get automatic PR deploys, please add @Ricbet to the project inside the project settings page.

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 55.08%. Comparing base (5a66542) to head (14771f1).

Files Patch % Lines
...owser/widget/inline-chat/inline-chat-controller.ts 0.00% 19 Missing and 3 partials :warning:
...rowser/widget/inline-diff/inline-diff-previewer.ts 0.00% 9 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3809 +/- ## ========================================== - Coverage 55.08% 55.08% -0.01% ========================================== Files 1550 1550 Lines 94558 94559 +1 Branches 19375 19371 -4 ========================================== - Hits 52088 52085 -3 - Misses 35272 35277 +5 + Partials 7198 7197 -1 ``` | [Flag](https://app.codecov.io/gh/opensumi/core/pull/3809/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | Coverage Δ | | |---|---|---| | [jsdom](https://app.codecov.io/gh/opensumi/core/pull/3809/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | `50.52% <0.00%> (-0.01%)` | :arrow_down: | | [node](https://app.codecov.io/gh/opensumi/core/pull/3809/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi) | `15.56% <0.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensumi#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.