Skip to content

agentHost: coordinate overlapping sessions - #330289

Closed
Megan Rogge (meganrogge) wants to merge 7 commits into
mainfrom
megrogge/coordinate-overlapping-agent-sessions
Closed

agentHost: coordinate overlapping sessions#330289
Megan Rogge (meganrogge) wants to merge 7 commits into
mainfrom
megrogge/coordinate-overlapping-agent-sessions

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Fixes #330292

Summary

  • align Agent Host overlap coordination with the GitHub Copilot app workflow
  • align Agent Host session coordination with a staged overlap workflow: identify the current session, discover active peers across the same project or repository, and exclude the current session
  • compare session titles, activity, branches, pull requests, and changed files before loading conversation context
  • inspect and message only plausible overlaps, agree on ownership or sequencing before editing shared files, and continue independently without waiting when work does not conflict
  • clarify the overlap-relevant metadata returned by list_sessions and keep a short check-first reminder in create_session

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds cross-session coordination guidance to prevent overlapping Agent Host work.

Changes:

  • Adds universal session-coordination prompt guidance.
  • Expands session tool descriptions.
  • Updates prompt composition tests.
Show a summary per file
File Description
toolInstructions.test.ts Tests coordination prompt composition.
sessionServerTools.ts Adds overlap checks to session tools.
toolInstructions.ts Registers universal coordination guidance.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/vs/platform/agentHost/node/shared/sessionServerTools.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@meganrogge

Megan Rogge (meganrogge) commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

/requires-eval-assessment vscbench gpt-5.5,claude-opus-4.7,claude-opus-4.8

sessionTarget: agent-host-copilotcli

@meganrogge Megan Rogge (meganrogge) added ~requires-eval-assessment Evals will be run and will generate a report upon completion and removed ~requires-eval-assessment Evals will be run and will generate a report upon completion labels Aug 11, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@meganrogge Megan Rogge (meganrogge) added the ~requires-eval-assessment Evals will be run and will generate a report upon completion label Aug 11, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

⏳ Queued vscode build for 635ebb8f6a11f82da5a95b43a0ed68898778baa3 (step 1/2).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
@vs-code-engineering

Copy link
Copy Markdown
Contributor

🚀 Queued eval-assessment publish build for ff9e69f270673cb44bd28ccdab494e0f23e62088 (step 2/2).

@vs-code-engineering

Copy link
Copy Markdown
Contributor

❌ Eval-assessment build did not succeed (result: failed).

@vs-code-engineering vs-code-engineering Bot removed the ~requires-eval-assessment Evals will be run and will generate a report upon completion label Aug 11, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aa352131-aed7-4160-a87f-4aa9a424de5c
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.

Agent Host should coordinate overlapping sessions

2 participants