Skip to content

Ensure reformat-on-submit is handled correctly#301

Merged
waf merged 1 commit into
mainfrom
auto-format-improvements
Jun 26, 2026
Merged

Ensure reformat-on-submit is handled correctly#301
waf merged 1 commit into
mainfrom
auto-format-improvements

Conversation

@waf

@waf waf commented Jun 26, 2026

Copy link
Copy Markdown
Owner

If the caller uses the autoformat callback at the same time as they're submitting the prompt, the autoformatted text is not rendered on screen and the returned text is also not autoformatted. This PR fixes both.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.4%. Comparing base (50fab93) to head (096f95f).

Files with missing lines Patch % Lines
src/PrettyPrompt/Panes/CodePane.cs 50.0% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #301     +/-   ##
=======================================
+ Coverage   86.3%   86.4%   +0.1%     
=======================================
  Files         47      47             
  Lines       4073    4081      +8     
  Branches     678     679      +1     
=======================================
+ Hits        3516    3530     +14     
+ Misses       392     384      -8     
- Partials     165     167      +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@waf waf merged commit 52d05d2 into main Jun 26, 2026
3 checks passed
@waf waf deleted the auto-format-improvements branch June 26, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant