Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeepCody: clean up and fix stream #5815

Merged
merged 4 commits into from
Oct 4, 2024
Merged

DeepCody: clean up and fix stream #5815

merged 4 commits into from
Oct 4, 2024

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Oct 4, 2024

FIX: https://sourcegraph.slack.com/archives/C07CNJTGB3Q/p1727983740644479

Updated to wait for streaming is done before starting the context retrieval process.

Also included some minor refactoring on namings

Test plan

Check the output channel to verify each tool is only run once after the streaming is completed.

Changelog

@abeatrix abeatrix requested a review from hitesh-1997 October 4, 2024 22:18
Copy link
Contributor

@hitesh-1997 hitesh-1997 left a comment

Choose a reason for hiding this comment

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

LGTM !!

public async getContext(
chatAbortSignal: AbortSignal,
loop = 2,
maxNewItems = 20
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we put a comment why we decide these numbers and see if they can be constant somewhere.

@abeatrix abeatrix enabled auto-merge (squash) October 4, 2024 23:38
@abeatrix abeatrix merged commit dedc573 into main Oct 4, 2024
19 checks passed
@abeatrix abeatrix deleted the bee/fix-deep-cody branch October 4, 2024 23:40
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.

2 participants