diff --git a/lua/opencode/core.lua b/lua/opencode/core.lua index f68af3e8..76783859 100644 --- a/lua/opencode/core.lua +++ b/lua/opencode/core.lua @@ -93,6 +93,7 @@ M.open = Promise.async(function(opts) if opts.new_session then state.active_session = nil state.last_sent_context = nil + context.unload_attachments() state.current_model = nil state.current_mode = nil