mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-31 01:37:28 +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.