mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
9fc1a1d94c
A plain Error thrown when no changes are found became an untyped defect through EffectBridge.fromPromise, which the error middleware masked as a generic 500 "Unexpected server error". Declare a CommitMessageNoChangesError (Schema.ErrorClass, httpApiStatus 422) on the endpoint and translate the domain NoChangesError defect into that typed failure, so the real message surfaces. The extension now shows it directly instead of prepending a redundant prefix.
294 B
294 B
@kilocode/cli, kilo-code
| @kilocode/cli | kilo-code |
|---|---|
| patch | patch |
Show a clear "No changes found to generate a commit message for" error instead of a generic "Unexpected server error" when there is nothing to commit. The endpoint now returns a typed 422, and the extension surfaces the real message directly.