Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.329 ·

Cloud sessions running as root point cd - at a safe empty folder

On Linux cloud sessions running as root, the shell's previous folder is set to a root-owned empty folder or to /

You'll notice Bug Fixes
JSON All of v2.1.329
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
Bug FixesKind: in v2.1.329,
Bug FixesSection of the release
What

In a shell, cd - takes you back to the previous folder, which the shell remembers in a value called OLDPWD. On Linux remote sessions that run as root, the all-powerful system user, Claude Code now sets that value up front:

  • With a remote switch on, it points at /var/lib/claude-code-previous/empty/no-previous-folder, a folder created and owned by root.
  • With the switch off, it points at /.

Sandboxed commands, ones run inside a walled-off area, are also refused if the session is moving folders while it is still setting up.

Why

This is a safety change for remote sessions. It changes where cd - takes you at the start.

See this entry in the whole of v2.1.329 →

Feedback