mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why `/diff` runs Git through standalone app-server commands, so it can pick up the server's default permissions even when the active session uses a different profile. ## What changed - Use the session's named profile for all Git commands when the local daemon can resolve it for the session's single workspace root. Use server defaults when the profile depends on session-only settings or the workspace cannot be represented by the command's working directory. - Disable Git transports and lazy fetching for profiled diff commands. Surface repository discovery errors under the selected profile. - Display asynchronous diff results only when both the thread and working directory still match. ## Testing Cover profile fallback after reattaching to a live thread, missing blobs without lazy fetching, and stale results from another thread or directory. GitOrigin-RevId: be8259d8d7af536c2d542d2edce2c601ed4482d0