{"record":{"id":"9d47f2d902120869","repo":"openclaw/openclaw","slug":"codex-native-btw-side-question-mode-is-unavailabl","errorCode":null,"errorMessage":"Codex-native /btw side-question mode is unavailable because the effective tool policy restricts Codex native tools for this session.","messagePattern":"Codex-native /btw side-question mode is unavailable because the effective tool policy restricts Codex native tools for this session\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"extensions/codex/src/app-server/side-question.ts","lineNumber":301,"sourceCode":"    : params;\n  const sideRunParams = buildSideRunAttemptParams(effectiveParams, {\n    cwd,\n    authProfileId,\n    runId,\n    timeoutMs: appServer.requestTimeoutMs,\n  });\n  const nativeExecutionBlock = resolveCodexNativeExecutionBlock({\n    config: sideRunParams.config,\n    sessionKey: sideRunParams.sandboxSessionKey?.trim() || sideRunParams.sessionKey,\n    sessionId: sideRunParams.sessionId,\n    surface: \"/btw side-question mode\",\n  });\n  if (nativeExecutionBlock) {\n    throw new Error(nativeExecutionBlock);\n  }\n  const nativeToolSurfaceEnabled = shouldEnableCodexAppServerNativeToolSurface(sideRunParams);\n  if (!nativeToolSurfaceEnabled) {\n    throw new Error(\n      \"Codex-native /btw side-question mode is unavailable because the effective tool policy restricts Codex native tools for this session.\",\n    );\n  }\n  const clientOptions = {\n    startOptions: appServer.start,\n    timeoutMs: appServer.requestTimeoutMs,\n    authRequirement: preparedRuntimeAuth.plan.modelRoute?.authRequirement,\n    ...(startupPreparedAuth\n      ? { preparedAuth: startupPreparedAuth }\n      : { authProfileId: connection.clientAuthProfileId }),\n    agentDir: params.agentDir,\n    config: params.cfg,\n    ...(params.opts?.abortSignal ? { abandonSignal: params.opts.abortSignal } : {}),\n  } satisfies CodexAppServerClientOptions;\n  let client = await getLeasedSharedCodexAppServerClient(clientOptions);\n  const clientLease: CodexAppServerClientLease = { client };\n  const collector = new CodexSideQuestionCollector(params, () => readRecentCodexRateLimits(client));\n  const runAbortController = new AbortController();","sourceCodeStart":283,"sourceCodeEnd":319,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/codex/src/app-server/side-question.ts#L283-L319","documentation":"Error \"Codex-native /btw side-question mode is unavailable because the effective tool policy restricts Codex native tools for this session.\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/codex/src/app-server/side-question.ts:301 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}