{"record":{"id":"392057220b343bc9","repo":"Yeachan-Heo/oh-my-codex","slug":"autoresearch-deprecation-message-n-n-autoresea","errorCode":null,"errorMessage":"${AUTORESEARCH_DEPRECATION_MESSAGE}\\n\\n${AUTORESEARCH_HELP}","messagePattern":"\\$\\{AUTORESEARCH_DEPRECATION_MESSAGE\\}\\\\n\\\\n\\$\\{AUTORESEARCH_HELP\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/cli/autoresearch.ts","lineNumber":110,"sourceCode":"    return { missionDir: values[1]?.trim() || null, runId: null, codexArgs: values.slice(2), runSubcommand: true };\n  }\n  if (first.startsWith('-')) {\n    return { missionDir: null, runId: null, codexArgs: [], guided: true, seedArgs: parseInitArgs(values) };\n  }\n  return { missionDir: first, runId: null, codexArgs: values.slice(1) };\n}\n\nfunction shouldShowHelp(args: readonly string[]): boolean {\n  return args.length > 0 && args.every((arg) => arg === '--help' || arg === '-h' || arg === 'help');\n}\n\nexport async function autoresearchCommand(args: string[]): Promise<void> {\n  if (shouldShowHelp(args)) {\n    console.log(AUTORESEARCH_HELP);\n    return;\n  }\n\n  throw new Error(`${AUTORESEARCH_DEPRECATION_MESSAGE}\\n\\n${AUTORESEARCH_HELP}`);\n}\n","sourceCodeStart":92,"sourceCodeEnd":112,"githubUrl":"https://github.com/Yeachan-Heo/oh-my-codex/blob/3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2/src/cli/autoresearch.ts#L92-L112","documentation":"The `autoresearch` CLI command has been removed/deprecated in this version of the tool. Any invocation that is not a help request (`--help`/`-h`) immediately throws, with the deprecation message and help text bundled into the error. This is a hard removal guard, not a runtime failure.","triggerScenarios":"Running `omx autoresearch <anything>` (any args other than help flags) via the CLI entrypoint; calling `autoresearchCommand(args)` programmatically with non-help args.","commonSituations":"Scripts, CI pipelines, or shell aliases still calling the autoresearch command after upgrading to a version where the feature was removed; docs or tutorials referencing the old command.","solutions":["Run the command with --help or -h to print help text instead of throwing","Check the deprecation/help text in the error message for the replacement command and migrate to it","Update scripts and CI configs to stop invoking autoresearch","Pin to an older version of the CLI if you temporarily still need autoresearch"],"exampleFix":"# before\nomx autoresearch --topic x\n\n# after\nomx autoresearch --help   # see the recommended replacement in the help text","handlingStrategy":"validation","validationCode":"import { autoresearchCommand } from './src/cli/autoresearch';\nconst HELP_ONLY = new Set(['--help', '-h']);\nconst isSafe = (args: string[]) => args.length === 0 || args.every(a => HELP_ONLY.has(a));\nif (!isSafe(myArgs)) throw new Error('autoresearch is deprecated; use the replacement command');","typeGuard":null,"tryCatchPattern":"try {\n  await autoresearchCommand(args);\n} catch (e) {\n  // Deprecated command always throws; surface help text and migrate.\n  console.error((e as Error).message);\n  process.exitCode = 1;\n}","preventionTips":["Search codebase/CI for 'autoresearch' before upgrading the CLI","Gate deprecated commands behind a version check in wrapper scripts"],"tags":["cli","deprecation","autoresearch"],"backgroundTag":"deprecated-command-invoked","analyzedSha":"3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2","analyzedAt":"2026-08-27T22:18:39.783Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}