Worktrees Auto-delete limit setting is ignored for SSH worktrees

Open 💬 0 comments Opened Aug 21, 2026 by faucct

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.814.41957

What subscription do you have?

Enterprise

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

The Mac Codex App has been prematurely deleting the remote worktrees on the server, I've made it SSH to.
I've changed the limit in the App to 150 and thought this will fix the problem, but the cleanup has happened again and there are 15 remote worktrees again.
Now I've tried copying the configuration to remote ~/.codex/config.toml, but don't know if it'll help:

[desktop]
worktree-keep-count = 150

What steps can reproduce the bug?

Add SSH connection to Mac Codex App, increase the worktrees limit and try creating more than 15 remote worktrees.

What is the expected behavior?

It will not remote the extra worktrees.

Additional information

_No response_

View original on GitHub ↗