Skip to content

fix: skip synthetic message injection for GitHub Copilot when last message is user role#252

Merged
Tarquinen merged 1 commit into
devfrom
fix/skip-github-copilot-user-role-injection
Jan 13, 2026
Merged

fix: skip synthetic message injection for GitHub Copilot when last message is user role#252
Tarquinen merged 1 commit into
devfrom
fix/skip-github-copilot-user-role-injection

Conversation

@Tarquinen
Copy link
Copy Markdown
Collaborator

@Tarquinen Tarquinen commented Jan 13, 2026

Adds early return in insertPruneToolContext to skip synthetic message injection when the provider is GitHub Copilot and the last message in the conversation is a user role
Fixes DCP significantly reducing copilot usage, expect usage to drain faster same as base opencode

@Tarquinen Tarquinen merged commit 3b3de42 into dev Jan 13, 2026
1 check passed
@Tarquinen Tarquinen deleted the fix/skip-github-copilot-user-role-injection branch January 13, 2026 19:43
BubbleBuffer pushed a commit to BubbleBuffer/opencode-dynamic-context-pruning that referenced this pull request Apr 19, 2026
…-copilot-user-role-injection

fix: skip synthetic message injection for GitHub Copilot when last message is user role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant