diff options
| -rw-r--r-- | lua/clever_f/acquisition_service.lua | 3 | ||||
| -rw-r--r-- | tests/run.lua | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lua/clever_f/acquisition_service.lua b/lua/clever_f/acquisition_service.lua index e82adda..e0a6291 100644 --- a/lua/clever_f/acquisition_service.lua +++ b/lua/clever_f/acquisition_service.lua @@ -840,7 +840,8 @@ local function acquire_in_scope(record, request, scope) ) ) local persistent_feedback_request - if record.policy:sample_markers().mark_char + if interactive + and record.policy:sample_markers().mark_char and feedback_service.persistent_context_eligible(request.context) then local window = scope.cursor_marker diff --git a/tests/run.lua b/tests/run.lua index 444a310..a03556f 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -5676,9 +5676,11 @@ test("Macro acquisition skips direct planning and all redraws", function() }, input_packets = { { kind = "text", text = "b" } }, }) + local feedback = feedback_service.new(host) local service = acquisition_service.new({ host = host, direct_planner = direct_planner, + feedback = feedback, }) local result = service:acquire( @@ -5693,6 +5695,7 @@ test("Macro acquisition skips direct planning and all redraws", function() same(nil, service:last_temporary_scope().direct_marker) same(nil, service:last_temporary_scope().cursor_marker) same(0, map_size(host:highlights())) + same(0, #feedback:persistent_requests()) list_same({ "suppressed" }, host:redraws()) end) |
