Skip to content

I want OpenAI to investigate a session where a simple audit expanded into nearly five hours of repeated reviews, approval requests and corrections. #61478

Open

Description

@lawdam10

What version of Codex CLI is running?

codex-cli 0.169.0

What subscription do you have?

plus

Which model were you using?

gpt-6.1-sol — high effort

What platform is your computer?

Linux 7.3.3-200.fc44.x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

VTE, reported version 8401; TERM=xterm-256color; no tmux, screen or Zellij detected.

Codex doctor report

{
"schemaVersion": 1,
"generatedAt": "1794638608s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.169.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is running",
"details": {
"app-server version": "0.169.0",
"control socket": "[HOME]/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "[HOME]/.codex/app-server-daemon",
"dedicated pid file": "[HOME]/.codex/app-server-daemon/daemon.pid (file)",
"dedicated update-loop pid file": "[HOME]/.codex/app-server-daemon/daemon-updater.pid (file)",
"mode": "ephemeral",
"pid file": "[HOME]/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "[HOME]/.codex/app-server-daemon/settings.json (missing)",
"status": "running",
"update-loop pid file": "[HOME]/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 1
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "[HOME]/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "[HOME]/.codex",
"active thread overrides": "not inspected",
"config.toml": "[HOME]/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "4",
"configuration scope": "invocation config, including cloud-managed policy",
"configured TUI mode": "fullscreen",
"cwd": "[WORKSPACE]",
"enabled feature flags": "daemon_auto_start, shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, shell_snapshot, content_item_kinds, untrusted_as_tool_output, code_mode_host, code_mode_host_grpc, code_mode_host_output_truncation, code_mode_interrupt, instant_interrupt, terminal_resize_reflow, sqlite, write_stdin_approval, hooks, api_key_model_discovery, cli_daybreak, api_key_cyber_access_programs, enable_request_compression, unbounded_connection_retries, worktrees, system_proxy_fallback, multi_agent, apps, mcp_oauth_refresh_coordination, tool_search_always_defer_mcp_tools, deferred_tool_world_state, incremental_tools, incremental_tools_legacy_gcp, prediction_preserve_parent_tools, tool_suggest, plugins, in_app_browser, browser_annotation_api, in_app_chat, in_app_dictation, in_app_voice, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, unified_image_budget, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, guardian_include_additional_context, guardian_reuse_parent_compaction, goals, reasoning_effort_override, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, bedrock_setup_wizard, fast_mode, ultrafast_mode, realtime_conversation, tui_app_server, compaction_image_budget, retain_client_tool_outputs, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "72",
"log dir": "[HOME]/.codex/log",
"mcp servers": "0",
"model": "gpt-6.1-sol",
"model provider": "openai",
"sqlite home": "[HOME]/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "[HOME]/.npm/_npx/c8ab89660c602c20/node_modules/.bin/codex",
"PATH codex #2": "[HOME]/.local/bin/codex",
"PATH codex entries": "2",
"current executable": "[HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install context": "npm (package [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "[HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex",
"npm update target": "not inspected (PATH helpers are not executed)"
},
"remediation": null,
"durationMs": 0
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/ reachable (HTTP 405)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 134
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv6",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 731
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "[HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install method": "npm (package [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path [HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.169.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "[HOME]/.npm/_npx/c8ab89660c602c20/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.filesystem_paths": {
"id": "sandbox.filesystem_paths",
"category": "sandbox",
"status": "ok",
"summary": "no explicit filesystem paths to probe",
"details": {},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, skill_approval: false, request_permissions: false, mcp_elicitations: false })",
"codex-linux-sandbox helper": "[HOME]/.codex/tmp/arg0-linux/codex-arg0btsDoy/codex-linux-sandbox",
"denied-read glob rules": "0",
"denied-read rules": "0",
"filesystem sandbox": "unrestricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "endpoint protection is not inspected on this platform",
"details": {
"endpoint products": "not inspected on this platform"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "[HOME]/.codex (dir)",
"active rollout files": "124 files, 296796765 total bytes, 2393522 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "[HOME]/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "[HOME]/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "[HOME]/.codex/log (dir)",
"memories DB": "[HOME]/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "[HOME]/.codex/memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "[HOME]/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "[HOME]/.codex (dir)",
"state DB": "[HOME]/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "[HOME]/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 300
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "124",
"rollout DB active rows": "120",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread id sample": "01a18305-513f-7442-bac2-c5ac078533f6",
"rollout DB duplicate rollout thread ids": "1",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "4",
"rollout DB missing active sample": [
"[HOME]/.codex/sessions/2026/11/08/rollout-2026-11-08T12-15-22-01a1bc28-55b1-7ed2-b84f-31f5d345766b.jsonl",
"[HOME]/.codex/sessions/2026/10/28/rollout-2026-10-28T00-03-12-01a180ad-2011-7033-9c46-0039a0169736.jsonl",
"[HOME]/.codex/sessions/2026/10/28/rollout-2026-10-28T10-58-46-01a18305-513f-7442-bac2-c5ac078533f6.jsonl",
"[HOME]/.codex/sessions/2026/10/26/rollout-2026-10-26T15-11-28-01a1799f-f603-7073-aca8-38de9fb926aa.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=120",
"rollout DB rows": "120",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=76, cli=42, subagent:thread_spawn=2",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "4 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "duplicate thread inventory entries found",
"measured": "1 duplicate rollout thread ids, 0 duplicate DB paths",
"expected": "one rollout path and thread id per thread",
"remedy": "Attach the doctor report to a bug report so support can inspect samples.",
"fields": []
}
],
"remediation": null,
"durationMs": 46
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (89.4 GiB)",
"details": {
"CODEX_HOME available": "148.4 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "89.4 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language C",
"details": {
"EDITOR": "set",
"GH_PAGER": "set",
"GIT_PAGER": "set",
"LANG": "en_US.UTF-8",
"LC_ALL": "C.UTF-8",
"LC_CTYPE": "C.UTF-8",
"PAGER": "set",
"VISUAL": "not set",
"os": "Fedora 44.0.0 [64-bit]",
"os language": "C",
"os type": "Fedora",
"os version": "44.0.0"
},
"remediation": null,
"durationMs": 1
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"DISPLAY": "present",
"NO_COLOR": "1",
"WAYLAND_DISPLAY": "present",
"color output": "disabled (NO_COLOR)",
"effective locale": "C.UTF-8",
"stderr is terminal": "false",
"stdin is terminal": "false",
"stdout is terminal": "false",
"terminal": "VTE",
"terminal size": "80x24",
"terminal version": "8401"
},
"remediation": null,
"durationMs": 1
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "[WORKSPACE]",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.169.0",
"check for update on startup": "true",
"last checked at": "2026-11-14T01:40:36.320159227Z",
"latest version": "0.169.0",
"latest version status": "current version is not older",
"npm update target": "not inspected (PATH helpers are not executed)",
"update action": "npm install -g @openai/codex",
"version cache": "[HOME]/.codex/version.json"
},
"remediation": null,
"durationMs": 318
}
}
}

What issue are you seeing?

A workflow that began as a simple audit became an extended cycle of reviews, wording corrections and approval requests. The session exceeded 4 hours 50 minutes and continued afterward.

Codex repeatedly declared proposals ready, then discovered additional issues when the next step was about to execute. It encouraged separate approval rounds for minor corrections instead of consolidating findings and execution scope.

One example: after several runner reviews, syntax checks and regression tests, Codex discovered that the failure branch could print raw logs after the secret scanner detected a secret. This was a substantive issue that should have been caught during the initial comprehensive review.

The assistant acknowledged:

“I over-applied the approval process and reviewed the runner in fragments.”

I explicitly said the task was taking too long and that I wanted it finished so I could go to bed. The repeated loops consumed substantial time, tokens and attention.

There was no CLI crash or error message. This is an agent workflow and reliability issue.

What steps can reproduce the bug?

Uploaded thread: 01a1d7b6-abe2-75a0-9a7d-2dd56f9a3af6

What is the expected behavior?

Perform a consolidated review before declaring readiness. Batch related findings, distinguish substantive blockers from minor wording changes, and continue routine work within authorized scope.

Preserve necessary security and approval controls while avoiding repeated approvals for corrections that could have been handled together. Report clearly when work is complete or blocked.

Additional information

The scope expanded during the session into repository cleanup and verification. The complaint concerns the repeated review failures and approval loops within that work.

Please investigate the uploaded thread, unnecessary usage, premature readiness claims and the assistant’s handling of authorization boundaries.

Activity

  1. added
    CLIIssues related to the Codex CLI
    model-behaviorIssues related to behaviors exhibited by the model
    on Nov 14, 2026
  2. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. AbdoSAAD55 commented on Nov 18, 2026

    @AbdoSAAD55

    Thank you for raising this issue. I'd like to add a related experience from a Windows Codex CLI 0.169.0 development workflow.

    During an isolated browser-testing project, we encountered several rounds of preparation, verification, approval and retry.

    Some attempts never reached the application tests because of working-directory mismatches, relative file-path errors or browser startup failures. These were correctly classified as NOT_RUN rather than application failures.

    Not all repeated steps were Codex defects. Some resulted from our own task orchestration and deliberately narrow authorization scopes. Codex generally respected those boundaries.

    However, this experience suggests some useful improvements:

    • Consolidate related preflight checks before declaring a task ready.
    • Verify the actual working directory, required files, executable paths and artifact version before execution.
    • Distinguish environment blockers from application failures.
    • Avoid repeating unsuccessful approaches without new evidence.
    • Preserve explicit user approval requirements while reducing unnecessary intermediate steps.

    A more consolidated, evidence-driven workflow could save time and usage without weakening safety.

    This is supporting workflow feedback, not a claim that we independently reproduced every failure described in this issue.

    Thank you for considering it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingmodel-behaviorIssues related to behaviors exhibited by the model

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions