diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 12:33:33 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 12:33:33 +0200 |
| commit | 44682cf3244b773c33037967bd028608eb7be6dd (patch) | |
| tree | 079ded323f34cbbbe778eeba055cc473a7879d9c | |
| parent | 49ac634d8984e4cf64280eb28e2adade4925ed18 (diff) | |
Fix macro persistent feedback
| -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) |
