Files
codex/codex-rs
Dmitriy Kovalenko 036e160181 Allow concurrent readers of the installation ID (#59021)
## Why

Resolving an existing installation ID takes an exclusive file lock, unnecessarily serializing readers.

## What changed

Read `installation_id` under a shared lock. If its contents are missing or invalid, acquire an exclusive lock and reread the file before generating a UUID, so an ID initialized by another process is reused.

## Testing

Extend the existing UUID reuse test to verify that resolution completes while another shared lock is held on Unix and still restores file permissions to `0o644`.

GitOrigin-RevId: e787d775eddb4d05653d42e809816be9536a94a3
2026-11-03 01:18:58 +00:00
..
…
…
…
…