From b2806ee997b95f2ca944f4ca5225000bbe5b8d96 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 22:05:35 +0000 Subject: [PATCH 1/2] Initial plan From 00feabccaf6139795930ec8bbd9cae395fe456d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 22:06:20 +0000 Subject: [PATCH 2/2] fix: replace vim.deepcopy with vim.tbl_extend shallow copy in M.mutate Co-authored-by: sudo-tee <342110+sudo-tee@users.noreply.github.com> --- lua/opencode/state/store.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/opencode/state/store.lua b/lua/opencode/state/store.lua index d2b93988..b2e3f63f 100644 --- a/lua/opencode/state/store.lua +++ b/lua/opencode/state/store.lua @@ -210,7 +210,7 @@ function M.mutate(key, mutator) end local current = _state[key] - local old = vim.deepcopy(current) + local old = vim.tbl_extend('force', {}, current) mutator(current) queue_emit(key, current, old) return current