Background (usability feedback, R21)
A tester ran uloop hot-reload without --files and got:
{
"Methods": [], "Warnings": [], "PatchedTotal": 0, "ActivePatchTotal": 0, "UnchangedTotal": 0,
"ClearedCount": 0, "AddedFields": [],
"Message": "Files is required unless --revert-all or --status is set. Pass project-relative .cs paths with --files, e.g. 'uloop hot-reload --files Assets/Scripts/Player.cs'.",
"Success": false
}
The message itself is good (includes an example). Two asks:
- Error envelope consistency: other commands (
find-game-objects, simulate-keyboard) return a structured error with Error.ErrorCode / Error.NextActions, while hot-reload argument errors reuse the success-shaped payload with Success: false. Callers cannot rely on one uniform error-detection rule (Success vs presence of Error).
--files default: when omitted, defaulting to "all .cs files changed since the last compile" would remove the need to retype paths the caller obviously knows.
Why deferred
Unifying the error envelope touches the hot-reload response shape broadly; the --files default is a behavior change worth its own design pass. Reported severity was low (3/10) and recovery was one round-trip thanks to the message quality.
Background (usability feedback, R21)
A tester ran
uloop hot-reloadwithout--filesand got:{ "Methods": [], "Warnings": [], "PatchedTotal": 0, "ActivePatchTotal": 0, "UnchangedTotal": 0, "ClearedCount": 0, "AddedFields": [], "Message": "Files is required unless --revert-all or --status is set. Pass project-relative .cs paths with --files, e.g. 'uloop hot-reload --files Assets/Scripts/Player.cs'.", "Success": false }The message itself is good (includes an example). Two asks:
find-game-objects,simulate-keyboard) return a structured error withError.ErrorCode/Error.NextActions, while hot-reload argument errors reuse the success-shaped payload withSuccess: false. Callers cannot rely on one uniform error-detection rule (Successvs presence ofError).--filesdefault: when omitted, defaulting to "all .cs files changed since the last compile" would remove the need to retype paths the caller obviously knows.Why deferred
Unifying the error envelope touches the hot-reload response shape broadly; the
--filesdefault is a behavior change worth its own design pass. Reported severity was low (3/10) and recovery was one round-trip thanks to the message quality.