You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4ffe3d3
Browse filesBrowse the repository at this point in the historyBrowse files
docs: publish from GitHub, document plugins-directory auto-discovery (v1.0.1) (#2)
- Installation now leads with the github: plugin specifier, the same distribution path
as opencode-antigravity-auth. Verified end to end in an isolated HOME: OpenCode cloned
the repository into its cache, loaded index.ts, and completed a model turn (loading
plugin id=github:JoshRob297/opencode-commandcode, 0 failures). No npm publish, no build.
- README/docs (EN and ES) document the three install paths: GitHub specifier, local
clone, plugins directory.
- New troubleshooting entry for the auto-discovery asymmetry: removing the config entry
or renaming a directory inside ~/.config/opencode/plugins does not unload a plugin;
the directory must leave plugins/, and then the watcher drops it live without a
restart. Includes a verification command and the note that a duplicated
commandcode_quota is harmless because the sanitizer is idempotent.
- Version bumped to 1.0.1.
An empty sanitizer log is the normal state: it only gets an entry when a payload
179
179
actually needed repair.
180
+
181
+
## Plugin loaded twice, or a removed plugin still runs
182
+
183
+
OpenCode loads plugins from two places: the `plugins` array in `opencode.json`**and**
184
+
every directory under `~/.config/opencode/plugins/` (auto-discovery). That asymmetry
185
+
explains the two confusing cases:
186
+
187
+
| Symptom | Cause |
188
+
| --- | --- |
189
+
| A plugin removed from `plugins` is still listed by `opencode plugin list`| It lives in `~/.config/opencode/plugins/` and is picked up by the directory scan |
190
+
| A plugin renamed to `.disabled` inside that directory still loads | The scan takes any subdirectory, not only `.ts` files or the old name |
Un log de sanitizador vacio es el estado normal: solo recibe una entrada cuando un
181
181
payload realmente necesito reparacion.
182
+
183
+
## Plugin cargado dos veces, o un plugin eliminado sigue corriendo
184
+
185
+
OpenCode carga plugins desde dos lugares: el array `plugins` de `opencode.json`**y**
186
+
todo directorio dentro de `~/.config/opencode/plugins/` (auto-descubrimiento). Esa
187
+
asimetria explica los dos casos confusos:
188
+
189
+
| Sintoma | Causa |
190
+
| --- | --- |
191
+
| Un plugin que quitaste de `plugins` sigue apareciendo en `opencode plugin list`| Vive en `~/.config/opencode/plugins/` y lo toma el scan de directorio |
192
+
| Un plugin renombrado a `.disabled` dentro de ese directorio igual se carga | El scan toma cualquier subdirectorio, no solo archivos `.ts` ni el nombre original |
193
+
194
+
Que funciona y que no:
195
+
196
+
```bash
197
+
# NO lo descarga
198
+
# - quitar la entrada de opencode.json
199
+
# - renombrar el directorio dentro de plugins/
200
+
# - reescribir opencode.json para forzar un reload
0 commit comments