Startup time 20 seconds and resume 20 seconds.

Open 💬 4 comments Opened Apr 21, 2026 by miniq15

What version of Codex CLI is running?

codex-cli 0.122.0

What subscription do you have?

pro

Which model were you using?

gpt-5-4

What platform is your computer?

Linux 6.17.0-22-generic x86_64 unknown

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

A terminal inside VScode and default linux terminal.

What issue are you seeing?

Codex starts 10 or more seconds. /resume takes 20 more seconds. then when i choose exact session another 10 sec of loading. It is not OKAY.

What steps can reproduce the bug?

Idk. i guess a lot of sessions and ubuntu.

What is the expected behavior?

_No response_

Additional information

codex`s answer

  • codex --help starts in 0.07s, so the binary/Homebrew/Node wrapper is fine.
  • This folder is tiny, so it is not scanning your university project.
  • You currently have about 8 active codex --yolo sessions still running, plus 1 stopped Codex process, plus 2 VS Code Codex app servers.
  • ~/.codex is 7.5 GB.
  • ~/.codex/sessions is 6.3 GB with 3067 session files. Some are huge: one is 415 MB, 117 are over 10 MB.
  • Codex TUI log is huge: about 714-748 MB.

› it works the same with any terminal. I dont use any plugins. Memories dont help, because i had the same delay before memories inside newest version.

codex`s answer
• Then terminal/plugins/memories are not the main cause.
Most likely common cause is Codex local state/session storage, because it affects every terminal and also affects resume.
Specifically: Codex startup touches:

  • ~/.codex/state_5.sqlite
  • ~/.codex/logs_2.sqlite
  • ~/.codex/sessions/**
  • big ~/.codex/log/codex-tui.log

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗