# Fix CWD override semantics and greedy regex in diff path parsing · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/bb9371d3c9500bf035b7df5da0969b82aac5a1fc)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: bb9371d3c9500bf035b7df5da0969b82aac5a1fc

Requested commit: bb9371d3c9500bf035b7df5da0969b82aac5a1fc

Commit: bb9371d3c9500bf035b7df5da0969b82aac5a1fc

Tree: c0696a92b446648cf4d38805bb5ac1fc4e14bd56

Author: Cursor Agent

Committer: Julius Marminge

## Message

```
Fix CWD override semantics and greedy regex in diff path parsing

- Restore null CWD in sessionOverrides for thread/start and thread/resume
  so the Codex app server can distinguish 'no override' from an explicit
  path (e.g., to reuse a resumed thread's original CWD).
- Use backreference in diff --git fallback regex to correctly parse paths
  containing ' b/' (e.g., binary diffs without +++ b/ lines).
- Add test exercising the git header fallback for binary diffs with ' b/'
  in the path.

Applied via @cursor push command
```

## Parents

- [bd1c7e1d9ae77e1c047e19ef895c089c00d87aa5](https://git.cafe/gitcafe/t3code/commit/bd1c7e1d9ae77e1c047e19ef895c089c00d87aa5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/bb9371d3c9500bf035b7df5da0969b82aac5a1fc?format=markdown)
