Skip to content

fix restoring a session on restart#317166

Merged
sandy081 merged 1 commit into
mainfrom
sandy081/autonomous-leopon
May 19, 2026
Merged

fix restoring a session on restart#317166
sandy081 merged 1 commit into
mainfrom
sandy081/autonomous-leopon

Conversation

@sandy081
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 20:56
@sandy081 sandy081 enabled auto-merge (squash) May 18, 2026 20:56
@sandy081 sandy081 self-assigned this May 18, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionsManagementService.ts

Copy link
Copy Markdown
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 is intended to fix restoring the last active agent session on restart within the Agents window sessions layer.

Changes:

  • Adjustes restoreLastActiveSession()’s “wait until session becomes available” logic to only react to provider registration changes.
Show a summary per file
File Description
src/vs/sessions/services/sessions/browser/sessionsManagementService.ts Modifies the restore wait loop by removing the onDidChangeSessions trigger used to retry restore attempts.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 686 to 691
}
};

disposables.add(this.onDidChangeSessions(() => tryRestore()));
disposables.add(this.sessionsProvidersService.onDidChangeProviders(() => tryRestore()));

// Call immediately in case the session became available between the
@sandy081 sandy081 merged commit b8b5144 into main May 19, 2026
29 checks passed
@sandy081 sandy081 deleted the sandy081/autonomous-leopon branch May 19, 2026 06:52
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 19, 2026
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.

3 participants