Skip to content

fix(client): correct history handling for headless ask - #1416

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:fix-history-headless
Sep 15, 2025
Merged

fix(client): correct history handling for headless ask#1416
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:fix-history-headless

Conversation

@deathbeam

Copy link
Copy Markdown
Collaborator

Refactors ask request construction to properly handle history in headless mode. Removes prompt parameter from internal request generation and ensures the prompt is included as a user message only when appropriate. Also updates token counting and history trimming logic to avoid removing the current prompt in headless scenarios.

Resolves: #1415

Refactors ask request construction to properly handle history in headless
mode. Removes prompt parameter from internal request generation and ensures
the prompt is included as a user message only when appropriate. Also
updates token counting and history trimming logic to avoid removing the
current prompt in headless scenarios.

Resolves: CopilotC-Nvim#1415
@deathbeam deathbeam added the bug Something isn't working label Sep 15, 2025
@deathbeam
deathbeam merged commit d5ea51d into CopilotC-Nvim:main Sep 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Callback in headless mode is broken after commit e9e426d6

1 participant