| 140 | * the agent is already reading — a multi-line block would bury the result. |
| 141 | */ |
| 142 | export function worktreeMismatchNotice(m: WorktreeIndexMismatch): string { |
| 143 | return ( |
| 144 | `⚠ CodeGraph results below come from a different git worktree (${m.indexRoot}), ` + |
| 145 | `not where you're working (${m.worktreeRoot}) — they may reflect another branch, ` + |
| 146 | `and symbols changed only here are missing. Run "codegraph init -i" here for a ` + |
| 147 | `worktree-local index.` |
| 148 | ); |
| 149 | } |
| 150 | |
| 151 | /** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */ |
| 152 | function realpath(p: string): string { |