fix(core): use dynamic CLI version for IDE client instead of hardcoded '1.0.0' (#24414)

Co-authored-by: cynthialong0-0 <82900738+cynthialong0-0@users.noreply.github.com>
This commit is contained in:
Kishan Patel
2026-04-22 22:13:48 +05:30
committed by GitHub
parent 607180bfb2
commit 0758a5eb28
+3 -4
View File
@@ -31,6 +31,7 @@ import {
createProxyAwareFetch,
type StdioConfig,
} from './ide-connection-utils.js';
import { getVersion } from '../utils/version.js';
const logger = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -588,8 +589,7 @@ export class IdeClient {
logger.debug(`Server URL: ${serverUrl}`);
this.client = new Client({
name: 'streamable-http-client',
// TODO(#3487): use the CLI version here.
version: '1.0.0',
version: await getVersion(),
});
transport = new StreamableHTTPClientTransport(new URL(serverUrl), {
fetch: await createProxyAwareFetch(ideServerHost),
@@ -623,8 +623,7 @@ export class IdeClient {
logger.debug('Attempting to connect to IDE via stdio');
this.client = new Client({
name: 'stdio-client',
// TODO(#3487): use the CLI version here.
version: '1.0.0',
version: await getVersion(),
});
transport = new StdioClientTransport({