dd0aca4602
The forked-grant heal treated a profile auth.json that is an *alias* of the root store (symlink, hardlink, bind-mount) as a forked copy: it loaded the same file as both the profile store and the root store, matched every OAuth row against itself, stripped the profile rows / providers.<id> block, and _save_auth_store() wrote that strip back through the alias — deleting the shared credential (openai-codex reported). #100339 / PR #100929 fixed *copied* stores; a shared store has no other side to consolidate. Guard the heal with _is_same_auth_store(), which reuses the resolving _same_path() (covers symlinks and equivalent paths) and falls back to device+inode identity (covers hardlinks), and return None without writing. Regression tests cover an openai-codex pool row plus providers block behind a symlinked and a hardlinked profile auth.json; the copied-fork heals from #100339 are unchanged. Fixes #101356