opencode icon indicating copy to clipboard operation
opencode copied to clipboard

What is the point of watcher.ignore

Open Bazmundi opened this issue 2 weeks ago • 4 comments

Question

So in my project directory I have .opencode/opencode.json with the following contents:

{
  "$schema": "https://opencode.ai/config.json",
  "watcher": {
    "ignore": [
      ".git/**",
      "crcdb/**",
      "dist/**",
      "in-memoria-vectors.db/**",
      "in-memoria.db",
      "node_modules/**",
      "src/**",
      "scripts/**"
    ]
  }
}

And yet I have the console output:

 General Task "Design practical ID system improvements"
├ Read crc-schema.json
├ Read crcdb/crcdb.py  << should have ignored
├ Read scripts/class_editor_app.py   << should have ignored
├ Read scripts/class_editor_app.py   << should have ignored
├ Read scripts/validate_crc.py   << should have ignored
├ Read samples/crc/valid/valid01.json
├ Read samples/crc/valid/valid05.json
├ Read samples/crc/valid/valid12_interfaces.json
├ Read tests/test_crc_schema.py
├ Glob 
├ Read samples/crc/invalid/invalid01.json
├ Read samples/crc/invalid/invalid02.json
├ Read samples/crc/invalid/invalid12_interface_missing_kind.json
├ Read scripts/class_editor_app.py   << should have ignored
├ Edit scripts/class_editor_app.py   << should have certainly have ignored as we're in Plan mode
├ Edit scripts/class_editor_app.py   << should have certainly have ignored as we're in Plan mode
├ Edit scripts/class_editor_app.py   << should have certainly have ignored as we're in Plan mode
├ Read scripts/class_editor_app.py    << should have ignored
├ Edit scripts/class_editor_app.py    << should have certainly have ignored as we're in Plan mode
├ Read scripts/class_editor_app.py   << should have ignored
├ Read scripts/class_editor_app.py   << should have ignored
├ Grep slug\(
├ Grep resp.*id
├ Read scripts/class_editor_app.py   << should have ignored
├ Read scripts/class_editor_app.py   << should have ignored
├ Read scripts/class_editor_app.py   << should have ignored
├ Grep def ensure_package_facade_responsibility
├ Read scripts/class_editor_app.py   << should have ignored
├ Edit scripts/class_editor_app.py << should have certainly have ignored as we're in Plan mode
├ Read scripts/class_editor_app.py  << should have ignored
├ Read scripts/class_editor_app.py  << should have ignored
├ Read scripts/class_editor_app.py  << should have ignored
├ Edit scripts/class_editor_app.py << should have certainly have ignored as we're in Plan mode
├ Read scripts/class_editor_app.py << et cetera Yul B
├ Read scripts/class_editor_app.py
├ Edit scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Edit scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Edit scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Edit scripts/class_editor_app.py
├ Read scripts/class_editor_app.py
├ Bash Run all tests to verify our changes
├ Bash Run validation to see detailed errors
├ Read samples/crc/valid/valid12_interfaces.json
└ Edit samples/crc/valid/valid12_interfaces.json

So what on earth is the point of watcher.ignore if it isn't to have opencode skip these files? Have I just put the ignore in the wrong place?

Bazmundi avatar Jan 03 '26 07:01 Bazmundi