fix(opencode): add opencode auto-approve flag#1950
Conversation
Greptile SummaryAdds the
Confidence Score: 5/5Single-field addition to a registry entry; the flag value is verified against OpenCode's published CLI docs and follows the same pattern used by every other provider in the file. The change touches one line in a data registry with no branching logic. The flag No files require special attention.
|
| Filename | Overview |
|---|---|
| src/shared/agent-provider-registry.ts | Adds autoApproveFlag: '--dangerously-skip-permissions' to the OpenCode provider entry — a single-field addition consistent with how other providers expose this flag; the value is confirmed in OpenCode's official CLI documentation. |
Sequence Diagram
sequenceDiagram
participant E as Emdash
participant R as agent-provider-registry
participant O as OpenCode CLI
E->>R: getProvider('opencode')
R-->>E: "{ autoApproveFlag: '--dangerously-skip-permissions', useKeystrokeInjection: true, ... }"
E->>O: opencode --dangerously-skip-permissions
O-->>E: TUI started (permissions auto-approved)
E->>O: keystroke injection (initial prompt)
O-->>E: response stream
Reviews (1): Last reviewed commit: "fix(opencode): add auto-approve flag" | Re-trigger Greptile
No description provided.