Refactor error handling and improve code readability in ServeSession and applyPatch

- Enhanced error logging in ServeSession by formatting warning messages for better clarity.
- Improved readability in applyPatch by restructuring conditional statements for clarity.
- Simplified assertions in tests for script pruning to maintain consistency and readability.

These changes aim to improve code maintainability and enhance the clarity of error messages.
This commit is contained in:
Joe 2026-02-28 06:44:37 -06:00
parent 9820ec6534
commit dcd48642be
5 changed files with 25 additions and 27 deletions

9
.cursor/hooks.json Normal file
View file

@ -0,0 +1,9 @@
{
"version": 1,
"hooks": {
"stop": [
{ "command": "cargo fmt" },
{ "command": "stylua plugin/src" }
]
}
}