Repository navigation
Conversation
📊 Automated PR Analysis
SummaryThis PR modifies the OpenCode plugin hook so that when a bash command is rewritten with the rtk prefix, the corresponding bash permission entries are also carried over with the prefixed pattern. This keeps OpenCode's permission decisions consistent with the original (unprefixed) rules after rewriting, addressing a case where a fallback command like Review Checklist
Linked issues: #4195 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
|
Thanks for working on this, @mmfallacy. #4349 is merged and covers the root-level case a different way: What this PR still does that develop does not is the agent-scoped case. On OpenCode 1.18.34, with I'm closing this one because OpenCode 2.0 hands If you would rather keep this open for 1.x, feel free to reopen it; the branch conflicts with develop in |
Summary
rtk *: allowCloses #4195
Test plan
Sample permissions for my
staged-reviewagent:Behavior
Before:
After:
opencode debug agent staged-reviewalso reflects the added prefixed permission entries when the hook modification is active.cargo fmt --all && cargo clippy --all-targets && cargo testrtk <command>output inspected