Sourcegraph Cody Missing Context or 'File Is Ignored'

Share
Workaround available VS Code, JetBrains Updated November 14, 2026Based on 2 user reportsHow we research

Quick answer

Cody answers without your code when context filters exclude files, forks are not searched, or the repo is not indexed for the instance.

Most likely fix: Check what was included

How to fix it

Try these in order — the most common fix is first.

  1. 1. Check what was included

    1. Look at the Context row under your message
    2. Enable cody.debug.verbose and look for getEnhancedContext messages
    Did this fix it?
  2. 2. Ask your admin

    1. Ask which files contextFilters exclude
    2. If wrongly excluded, uninstall the extension, restart the IDE and reinstall the latest version
    Did this fix it?
  3. 3. Forked repos

    1. Add "search.includeForks": true to global settings
    Did this fix it?

Symptoms

Cody ignores your repo, shows 'file is ignored (due to cody.contextFilters)', or does not include files in context.

Why it happens

  • Admin contextFilters exclude the file
  • Forked repos are not searchable as context by default
  • Repo not indexed on the Enterprise instance

This guide also covers

  • cody file is ignored
  • cody context not working
  • cody contextFilters

Still not working?

If Sourcegraph keeps failing, you're not alone. See every Sourcegraph problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Sourcegraph errors

All 11 Sourcegraph errors and fixes →