{"record":{"id":"ee1441dc97b37764","repo":"can1357/oh-my-pi","slug":"cloud-pull-requires-a-configuration-id","errorCode":null,"errorMessage":"cloud pull requires a configuration id","messagePattern":"cloud pull requires a configuration id","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/coding-agent/src/slash-commands/helpers/security.ts","lineNumber":317,"sourceCode":"\t\t\t}\n\t\t\tconst configuration = await client.startScan({\n\t\t\t\trepositoryId: options.repositoryId,\n\t\t\t\trepositoryUrl: options.repositoryUrl,\n\t\t\t\tenvironmentId: options.environmentId,\n\t\t\t\tlookbackDays: options.lookbackDays,\n\t\t\t});\n\t\t\tawait runtime.output(\n\t\t\t\t`Codex Security cloud scan ${configuration.id} started for ${configuration.repositoryUrl}. This consumes cloud scan allowance.`,\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\t\tcase \"status\": {\n\t\t\tif (!options.configurationId) throw new Error(\"cloud status requires a configuration id\");\n\t\t\tawait runtime.output(JSON.stringify(await client.getStats(options.configurationId), null, 2));\n\t\t\treturn;\n\t\t}\n\t\tcase \"pull\": {\n\t\t\tif (!options.configurationId) throw new Error(\"cloud pull requires a configuration id\");\n\t\t\tconst store = await SecurityStore.openForCwd(runtime.cwd);\n\t\t\tconst bundle = await pullCodexSecurityCloudResults({\n\t\t\t\tclient,\n\t\t\t\tconfigurationId: options.configurationId,\n\t\t\t\tstore,\n\t\t\t});\n\t\t\tawait runtime.output(\n\t\t\t\t`Imported ${bundle.findings.length} Codex Security cloud finding(s) as security scan ${bundle.scan.id}.`,\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\t\tdefault:\n\t\t\tthrow new Error(\"Usage: /security cloud <scans|start|status|pull>\");\n\t}\n}\n\nasync function updateDisposition(runtime: SlashCommandRuntime, rest: string): Promise<void> {\n\tconst [scanId, findingId, status, ...rationaleParts] = parseCommandArgs(rest);","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/can1357/oh-my-pi/blob/969062200754ea02cfac922e5ebb8c608c079e15/packages/coding-agent/src/slash-commands/helpers/security.ts#L299-L335","documentation":"Thrown by handleCloudCommand's `pull` case when no configuration id was provided. Like `status`, `pull` takes the id only as a bare positional token; without it, results cannot be fetched, so the handler rejects before opening the local SecurityStore or calling the cloud client.","triggerScenarios":"Run `/security cloud pull` with no arguments, or with only flags such as `/security cloud pull --credential 2`.","commonSituations":"Assuming `pull` imports all configurations' results; omitting the id after copying only the flag part of an example; not knowing the id (find it via `/security cloud scans`).","solutions":["Pass the configuration id positionally: `/security cloud pull secconf_abc`.","List configurations and their ids with `/security cloud scans` first.","Optionally combine with --credential: `/security cloud pull secconf_abc --credential 2`."],"exampleFix":"// before\n/security cloud pull\n// after\n/security cloud pull secconf_abc","handlingStrategy":"validation","validationCode":"if (sub === \"pull\" && args.trim().split(/\\s+/).filter(Boolean).length === 0) {\n\tthrow new Error(\"usage: /security cloud pull <configuration-id>\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Provide the configuration id positionally: `/security cloud pull <id>`.","Look up ids with `/security cloud scans` first.","Note `pull` imports results locally; it does not fan out across all configurations."],"tags":["cli","missing-argument","usage"],"backgroundTag":"missing-required-argument","analyzedSha":"969062200754ea02cfac922e5ebb8c608c079e15","analyzedAt":"2026-08-31T10:29:35.737Z","schemaVersion":2},"datasetVersion":"2026-08-31T14:17:45.589Z"}