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

feat: support concurrent chat progress messages #212300

Merged
merged 3 commits into from
May 8, 2024

Conversation

joyceerhl
Copy link
Collaborator

No description provided.

@joyceerhl joyceerhl self-assigned this May 8, 2024
@joyceerhl joyceerhl marked this pull request as ready for review May 8, 2024 22:36
@joyceerhl joyceerhl enabled auto-merge (squash) May 8, 2024 22:36
@vscodenpa vscodenpa added this to the May 2024 milestone May 8, 2024
@joyceerhl joyceerhl merged commit 9cb0df2 into main May 8, 2024
6 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/western-bandicoot branch May 8, 2024 22:50
this._proxy.$handleProgressChunk(this._request.requestId, progress)
.then((handle) => {
if (typeof handle === 'number' && task) {
task().then((res) => {
Copy link
Member

Choose a reason for hiding this comment

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

Can you call task() before waiting for $handleProgressChunk?

@@ -106,6 +106,21 @@ export interface IChatProgressMessage {
kind: 'progressMessage';
}

export interface IChatTask extends IChatTaskDto {
task?: () => Promise<string | void>;
Copy link
Member

Choose a reason for hiding this comment

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

Can these be non-optional? I don't see where they are undefined

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, fixing both in #212372

@microsoft microsoft locked and limited conversation to collaborators Jun 22, 2024
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.

4 participants