Skip to content

feat: async/parallel prompts with per-request lifecycle (#13)#37

Merged
cachebag merged 2 commits into
masterfrom
feat/parallel-prompts
Jul 21, 2026
Merged

feat: async/parallel prompts with per-request lifecycle (#13)#37
cachebag merged 2 commits into
masterfrom
feat/parallel-prompts

Conversation

@cachebag

Copy link
Copy Markdown
Owner

Replace the global loading/job state with a request registry so multiple prompts can run in parallel across buffers. Requests targeting the same file are blocked while one is in flight, responses apply against fresh buffer lines, completions no longer steal the cursor from other buffers, and the jumpy quickfix list refreshes as hunks land. Adds :JumpyCancel and a refcounted spinner that shows in-flight request count.

Closes #13

@cachebag
cachebag requested a review from LOTaher July 20, 2026 21:49
@cachebag cachebag self-assigned this Jul 20, 2026
@cachebag cachebag added feature New functionality area:llm Providers, API calls, system prompt area:prompt Floating prompt window labels Jul 20, 2026
@cachebag
cachebag force-pushed the feat/parallel-prompts branch 4 times, most recently from 217bb8c to 2802907 Compare July 20, 2026 21:58
cachebag added 2 commits July 20, 2026 18:00
Replace the global loading/job state with a request registry so multiple
prompts can run in parallel across buffers. Requests targeting the same
file are blocked while one is in flight, responses apply against fresh
buffer lines, completions no longer steal the cursor from other buffers,
and the jumpy quickfix list refreshes as hunks land. Adds :JumpyCancel
and a refcounted spinner that shows in-flight request count.
Rename the shadowed `lines` upvalue in the multi-file apply loop and
collapse the visual-selection ternary onto one line for stylua.
@cachebag
cachebag force-pushed the feat/parallel-prompts branch from 2802907 to 7937052 Compare July 20, 2026 22:00
@cachebag
cachebag merged commit 1f7e4ae into master Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:llm Providers, API calls, system prompt area:prompt Floating prompt window feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

async/parallel prompts with single- and multi-buffer scope

1 participant