INNER CODE UNIT · TypeScript

redactHandoffClaimToken

openai/codex-security · plugins/codex-security/mcp-app/server.ts:2171

function redactHandoffClaimToken(result: JsonObject) {
  const scan = isJsonObject(result.scan) ? result.scan : undefined;
  if (scan) {
    delete scan.handoffClaimToken;
  }
  const workspace = isJsonObject(result.workspace)
    ? result.workspace
    : undefined;
  const workspaceResults =
    workspace && isJsonObject(workspace.results)
      ? workspace.results
      : undefined;
  if (workspaceResults) {
    delete workspaceResults.handoffClaimToken;
  }
  return result;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…