Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: only record db content if it is the last chunk in stream#1091

Merged
yrobla merged 2 commits into
mainstacklok/codegate:mainfrom
issue-936stacklok/codegate:issue-936Copy head branch name to clipboard
Feb 19, 2025
Merged

fix: only record db content if it is the last chunk in stream#1091
yrobla merged 2 commits into
mainstacklok/codegate:mainfrom
issue-936stacklok/codegate:issue-936Copy head branch name to clipboard

Conversation

@yrobla

@yrobla yrobla commented Feb 18, 2025

Copy link
Copy Markdown
Contributor

For copilot chat, we are actually receiving multiple streams, and we were recording entries and alerts for each one, repeating those. So detect if we are in the last chunk and propagate it to the pipeline, so we can record it only in this case, avoiding dupes. In the case of other providers, we only receive one request, so always force saving it

Closes: #936

For copilot chat, we are actually receiving multiple streams, and
we were recording entries and alerts for each one, repeating those.
So detect if we are in the last chunk and propagate it to the
pipeline, so we can record it only in this case, avoiding dupes.
In the case of other providers, we only receive one request, so
always force saving it

Closes: #936
@yrobla yrobla requested review from JAORMX, aponcedeleonch and jhrozek and removed request for aponcedeleonch and jhrozek February 18, 2025 14:56

@aponcedeleonch aponcedeleonch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@yrobla yrobla merged commit b23effd into main Feb 19, 2025
@yrobla yrobla deleted the issue-936 branch February 19, 2025 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server-sent events fired 1000s times per conversation

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.