Skip to content

Commit 3f4a871

Browse files
committed
fix(context): add missing function after rebase
clear_subagents and clear_subagents were missing after rebase This causes history navigation to throw an error
1 parent a37c99b commit 3f4a871

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/opencode/context.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ function M.remove_file(file)
143143
state.context_updated_at = vim.uv.now()
144144
end
145145

146+
function M.clear_files()
147+
M.context.mentioned_files = nil
148+
end
149+
146150
function M.add_subagent(subagent)
147151
if not M.context.mentioned_subagents then
148152
M.context.mentioned_subagents = {}
@@ -168,6 +172,10 @@ function M.remove_subagent(subagent)
168172
state.context_updated_at = vim.uv.now()
169173
end
170174

175+
function M.clear_subagents()
176+
M.context.mentioned_subagents = nil
177+
end
178+
171179
---@param opts? OpencodeContextConfig
172180
function M.delta_context(opts)
173181
opts = opts or config.context

0 commit comments

Comments
 (0)