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
- Add prompt_guard configuration option (function that returns boolean)
- Check guard before sending prompts (ERROR notification if denied)
- Check guard before opening buffer first time (WARN notification if denied)
- Add util.check_prompt_allowed() helper functions
- Guard has no parameters, users can access vim state directly
- Proper error handling for guard callback failures
Copy file name to clipboardExpand all lines: lua/opencode/types.lua
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@
141
141
---@fielduiOpencodeUIConfig
142
142
---@fieldcontextOpencodeContextConfig
143
143
---@fielddebugOpencodeDebugConfig
144
+
---@fieldprompt_guard? fun(): boolean
144
145
145
146
---@classMessagePartState
146
147
---@fieldinputTaskToolInput|BashToolInput|FileToolInput|TodoToolInput|GlobToolInput|GrepToolInput|WebFetchToolInput|ListToolInput Input data for the tool
0 commit comments