Vibe Coding
In headless Claude Code, a cd now survives to the next user message
2.1.265 fixes non-interactive sessions (-p with stream-json input, the Agent SDK, and cloud sessions) resetting the shell working directory at every new user message. Multi-turn headless scripts that changed directory in turn one and assumed it held were silently running turn two from the original cwd. If you drive Claude Code from a pipeline, audit any prompt sequence that relied on a persistent cd and remove the defensive absolute-path rewriting you probably added as a workaround.
↳ Follow the thread