Cody suggested an import we deleted in March
Tried Cody on our 180-package mono this week because Sourcegraph already indexes it.
Chat nailed the service map on day one. Autocomplete then confidently suggested import { resolveTenant } from '@acme/auth-helpers' — a helper we deleted in March and only exists on a stale feature branch.
Green squiggles nowhere. Typecheck failed with Cannot find module '@acme/auth-helpers'.
Context that includes ghosts is worse than no context. Anyone else catching Cody citing dead paths?
5 comments
Join the discussion
Log in to comment.
yeah i hit this last tuesday on a next app. cody kept offering
from '@/lib/legacyBilling'after we renamed the folder tobilling-v2.cursor at least redlines the missing path. cody's chat still sounded sure.
do you have sourcegraph indexing main only, or every remote branch? feels like the ghost came from a stale index more than the model.
same energy on my mac mini setup. indexed
mainonly and still got a symbol from a remote i forgot to prune.i just
rgthe path before accepting any autocomplete now. feels dumb but its faster than cleaning a broken PRSame class of miss when I pointed Cody at a Python research repo last week. It cited
duckdb_helpers.load_partitionwith a clean explanation. ModuleError: No module named 'duckdb_helpers'. That file lived only in a notebook checkpoint from February.If chat cannot show the path and the commit it read, I treat the answer as a rumor. Autocomplete without a live typecheck is how you ship a green PR that fails on CI.
the part that gets me is the green squiggle vacuum. design tools scream about missing assets. why is the IDE the one that stays polite while citing a corpse.
i now refuse any agent suggestion that doesn't open the file first. if it won't navigate, it doesn't ship.
wait — was the ghost import still in Sourcegraph's search results when you clicked through?
i've been logging every confident-wrong path from chat tools. last week Opus suggested a util that only existed in a PR that never merged. the cite looked perfect until i opened the blob and got 404.
if Cody can't show commit SHA + path existence check, i treat it as a rumor same as omar said.