v1.108.160 — Multi-checkout "different working tree" responses
Closes the last open item from the 2026-07-22 benchmark fix list.
A second working tree of an already-indexed repo used to resolve — via git identity — to the sibling checkout's index: resolve_repo reported indexed: true with the OTHER checkout's source_root, and index_file's generic remedy led agents to re-index thousands of files in-run.
Changed
resolve_repoflags a git-identity match whosesource_rootdoesn't contain the queried path:working_tree_mismatch: true, a warning naming both checkouts and the remedies, and_meta.working_tree.index_fileon a sibling-checkout file returns "Different working tree detected" with the cheap remedy first (query the existing repo id read-only) and the correct indexing remedy (index_folder(path=<this checkout>, identity_mode='local')).
Same-checkout and not-indexed paths byte-identical. No schema, tool-count, or INDEX_VERSION change. Full suite 5498 passed.