-
Notifications
You must be signed in to change notification settings - Fork 9
Support DCP config in $OPENCODE_CONFIG_DIR #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…t-pruning into rewrite-to-use-experimental.chat.messages.transform
|
Hey, this is definitely a good idea, I didn't know even know $OPENCODE_CONFIG_DIR existed. I'm in the middle of a big rewrite due to #5207 getting merged in opencode so I'm going to hold off on this PR until that's done, but i'll definitely get to this after. |
|
Perfect! not in a hurry for it, I'll just wait ;) thanks! |
…-and-config-update implement nudge and config update
…nts-to-use-plugin Disallow subagents to use plugin
…-unused-reason-param refactor: remove unused reason parameter from buildAnalysisPrompt
…-unused-reason-param fix: simplify prune tool schema for OAuth plugin compatibility
The nudge counter now correctly resets to zero when prune is used and only counts tools invoked since the last prune. Previously, the counter could become inaccurate across session reloads. Also increased tool cache size to 1000.
…er-reset fix: properly reset nudge counter after prune tool is used
…beta.2 v1.0.0-beta.2 - Fix nudge counter reset
|
Hey @didacog, if you want I can merge this if you rebase it from the dev branch and PR into dev as well, otherwise I'll try to implement it in the next few days :) |
1cd7cfe to
c517f0c
Compare
…ool-pruning fix: prevent protected tools from being pruned
…prompt-transform Add system prompt transformation hook
Bump version to 1.0.0-beta.3
…ble-tools-list fix: skip inserting prunable tools list when empty
…une-thinking-blocks chore: remove pruneThinkingBlocks from config
c517f0c to
e1eb62e
Compare
Support DCP config in $OPENCODE_CONFIG_DIR (updated from PR #112 to latest dev branch rebase)
|
moved to #135, thank you for the help! |
Summary
This PR adds support for loading DCP config from
$OPENCODE_CONFIG_DIR/dcp.jsonc(ordcp.json), aligning the plugin with OpenCode’s custom config directory behavior.Details
lib/config.ts:getConfigPathsto also resolve a config path from$OPENCODE_CONFIG_DIR/dcp.jsoncordcp.jsonwhenOPENCODE_CONFIG_DIRis set.getConfignow merges config in this order:~/.config/opencode/dcp.jsonc$OPENCODE_CONFIG_DIR/dcp.jsonc.opencode/dcp.jsonc~/.config/opencode/dcp.jsoncis still created automatically on first run.OPENCODE_CONFIG_DIR.This makes DCP configuration placement align with OpenCode’s OPENCODE_CONFIG_DIR behavior, without changing any existing defaults or project-level overrides.