fix(cli): make commands, completion, and JSON output reliable (#116033)

* fix(cli): make commands, completion, and JSON output reliable

* fix(cli): reconcile completion coverage with current main

* test(cli): keep test routing stable across isolation lanes
This commit is contained in:
Peter Steinberger
2026-07-31 16:20:34 -07:00
committed by GitHub
parent 4645d4a487
commit 433bb3f954
70 changed files with 2789 additions and 551 deletions
+11 -1
View File
@@ -1163,7 +1163,17 @@ export async function runDevicesRejectCommand(
requestId: string,
opts: DevicesRpcOpts,
): Promise<void> {
const result = await callGatewayCli("device.pair.reject", opts, { requestId });
const normalizedRequestId = normalizeOptionalString(requestId);
if (!normalizedRequestId) {
defaultRuntime.error(
`requestId is required. Run ${formatCliCommand("openclaw devices list")} to choose a pending request.`,
);
defaultRuntime.exit(1);
return;
}
const result = await callGatewayCli("device.pair.reject", opts, {
requestId: normalizedRequestId,
});
if (opts.json) {
defaultRuntime.writeJson(result);
return;