Skip to content

Commit a8b8047

Browse files
committed
fix: delta context not using current context from state
1 parent 2d16c45 commit a8b8047

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/opencode/context/chat_context.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,8 @@ end
308308
-- This function creates a context snapshot with delta logic against the last sent context
309309
function M.delta_context(opts)
310310
local config = require('opencode.config')
311-
local state = require('opencode.state')
312311

313-
opts = opts or config.context
312+
opts = opts or state.current_context_config or config.context
314313
if opts.enabled == false then
315314
return {
316315
current_file = nil,

0 commit comments

Comments
 (0)