Skip to content

Conversation

@joshspicer
Copy link
Member

Copilot AI review requested due to automatic review settings October 24, 2025 21:36
Copy link
Contributor

Copilot AI left a 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 createActiveResponseCallback to 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 waitForQueuedToInProgress call 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

rebornix
rebornix previously approved these changes Oct 24, 2025
Tyriar
Tyriar previously approved these changes Oct 24, 2025
@joshspicer joshspicer enabled auto-merge October 24, 2025 21:40
@joshspicer joshspicer added this pull request to the merge queue Oct 24, 2025
@joshspicer joshspicer removed this pull request from the merge queue due to a manual request Oct 24, 2025
@joshspicer joshspicer dismissed stale reviews from Tyriar and rebornix via 8222232 October 24, 2025 21:48
@joshspicer joshspicer added this pull request to the merge queue Oct 25, 2025
Merged via the queue into main with commit 52d2beb Oct 25, 2025
16 checks passed
@joshspicer joshspicer deleted the joshspicer/queuedInProgress branch October 25, 2025 15:38
joshspicer added a commit that referenced this pull request Oct 25, 2025
* activeCallback uses waitForQueuedToInProgres (related microsoft/vscode-pull-request-github@503e2b3)

* do not await attaching to in progress session during creation

* bring back null check
rebornix pushed a commit that referenced this pull request Oct 25, 2025
* activeCallback uses waitForQueuedToInProgres (related microsoft/vscode-pull-request-github@503e2b3)

* do not await attaching to in progress session during creation

* bring back null check
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.

4 participants