Skip to content

Clean up some parameters and stuff in Claude#312946

Merged
TylerLeonhardt merged 2 commits intomainfrom
tyler/visible-wren
Apr 28, 2026
Merged

Clean up some parameters and stuff in Claude#312946
TylerLeonhardt merged 2 commits intomainfrom
tyler/visible-wren

Conversation

@TylerLeonhardt
Copy link
Copy Markdown
Member

Just some debt.

Copilot AI review requested due to automatic review settings April 28, 2026 00:57
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) April 28, 2026 00:57
@TylerLeonhardt TylerLeonhardt self-assigned this Apr 28, 2026
vijayupadya
vijayupadya previously approved these changes Apr 28, 2026
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

Refactors the Claude chat session plumbing to simplify method signatures/constructor parameters and move more per-request setup (e.g., prompt resolution, server config lookup) into ClaudeCodeSession, with corresponding test updates.

Changes:

  • Simplifies ClaudeAgentManager.handleRequest and ClaudeCodeSession construction by removing redundant parameters and reading model/permission state from the session state service at invocation time.
  • Moves prompt block resolution into the session’s request-processing loop and fetches language-model-server config from ClaudeLanguageModelServer.getConfig() when starting the SDK session.
  • Updates Claude unit tests to match the new APIs and mocks (including adding getConfig() to the mock language model server).
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/vscode-node/claudeChatSessionContentProvider.ts Updates the handleRequest call site to match the simplified signature.
extensions/copilot/src/extension/chatSessions/claude/node/claudeCodeAgent.ts Refactors manager/session APIs and internal request queueing; shifts config/prompt resolution responsibilities into ClaudeCodeSession.
extensions/copilot/src/extension/chatSessions/claude/node/test/claudeCodeAgentOTel.spec.ts Updates OTel tests for new ClaudeCodeSession constructor/invoke signatures and server mock shape.
extensions/copilot/src/extension/chatSessions/claude/node/test/claudeCodeAgent.spec.ts Updates core agent/session tests for new signatures and removes obsolete expectations.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

@github-actions
Copy link
Copy Markdown
Contributor

blocks-ci screenshots changed

Replace the contents of test/componentFixtures/blocks-ci-screenshots.md with:

Updated blocks-ci-screenshots.md
<!-- auto-generated by CI — do not edit manually -->

#### editor/codeEditor/CodeEditor/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/cb32a3e854b5734fe5aaca2318f2e0a42ee821b05ea97883ea42c5ba95edb3c3)

#### editor/codeEditor/CodeEditor/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/42624fbba5e0db7f32c224b5eb9c5dd3b08245697ae2e7d2a88be0d7c287129b)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/4baed4b05eeb8aadc8bc2dc633abfc87054cdeea4c35b7a655766063bcfedfed)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/b9d098d8ccc2bdb6b816537f14b1f1f3c10dadf294fc0b28d03d6e5a34eaf4c8)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/4baed4b05eeb8aadc8bc2dc633abfc87054cdeea4c35b7a655766063bcfedfed)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/b9d098d8ccc2bdb6b816537f14b1f1f3c10dadf294fc0b28d03d6e5a34eaf4c8)

@TylerLeonhardt TylerLeonhardt merged commit ffadbb0 into main Apr 28, 2026
25 of 26 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/visible-wren branch April 28, 2026 05:46
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 28, 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.

4 participants