Skip to content

What is the point of watcher.ignore #6740

@Bazmundi

Description

@Bazmundi

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions