Files: lua/model_cmp/modelapi/request.lua:13-24
Feature Introduction: end_request() and end_all() are defined but never called. Multiple requests can be in-flight simultaneously, wasting server resources and causing stale suggestions to overwrite newer ones.
Feature Description:
- When the debounce fires a new request, cancel any in-flight request first
- Call
job:shutdown() or uv.kill(job.pid) on the active job
- Clean up the job entry from
M.current_jobs
- Then start the new request
Is your feature possible with the current status of repo? Yes. end_request() already exists — just needs to be wired into the debounce pipeline in commands.lua.
Files:
lua/model_cmp/modelapi/request.lua:13-24Feature Introduction:
end_request()andend_all()are defined but never called. Multiple requests can be in-flight simultaneously, wasting server resources and causing stale suggestions to overwrite newer ones.Feature Description:
job:shutdown()oruv.kill(job.pid)on the active jobM.current_jobsIs your feature possible with the current status of repo? Yes.
end_request()already exists — just needs to be wired into the debounce pipeline incommands.lua.