- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.3k
activeCallback uses waitForQueuedToInProgress #1597
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ports changes from the vscode-pull-request-github repository to handle sessions in both 'queued' and 'in_progress' states. The key improvement is ensuring that the active response callback waits for queued sessions to transition to in_progress before streaming logs, preventing premature handling of sessions that haven't started yet.
Key Changes:
- Modified createActiveResponseCallbackto wait for queued sessions to transition to in_progress
- Updated session state checks to include both 'queued' and 'in_progress' states
- Added better logging and error handling for session state transitions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description | 
|---|---|
| src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts | Added waitForQueuedToInProgresscall in active callback, renamed variable for clarity, and improved state transition handling with additional logging | 
| src/extension/chatSessions/vscode-node/copilotCloudSessionContentBuilder.ts | Extended placeholder response logic to handle queued sessions in addition to in-progress sessions | 
        
          
                src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts
              
                Outdated
          
            Show resolved
            Hide resolved
        
      * activeCallback uses waitForQueuedToInProgres (related microsoft/vscode-pull-request-github@503e2b3) * do not await attaching to in progress session during creation * bring back null check
* activeCallback uses waitForQueuedToInProgres (related microsoft/vscode-pull-request-github@503e2b3) * do not await attaching to in progress session during creation * bring back null check
port over microsoft/vscode-pull-request-github@503e2b3