mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
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:
committed by
GitHub
parent
4645d4a487
commit
433bb3f954
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user