@@ -1761,9 +1761,6 @@ export class ClineProvider
17611761
17621762 const packageJSON = this . context . extension ?. packageJSON
17631763
1764- // Get git repository information
1765- const gitInfo = await getWorkspaceGitInfo ( )
1766-
17671764 return {
17681765 appName : packageJSON ?. name ?? Package . name ,
17691766 appVersion : packageJSON ?. version ?? Package . version ,
@@ -1776,7 +1773,6 @@ export class ClineProvider
17761773 modelId : task ?. api ?. getModel ( ) . id ,
17771774 diffStrategy : task ?. diffStrategy ?. getName ( ) ,
17781775 isSubtask : task ? ! ! task . parentTask : undefined ,
1779- ...gitInfo , // Include Git information in all telemetry events
17801776 }
17811777 }
17821778
@@ -1785,8 +1781,16 @@ export class ClineProvider
17851781 * This method is called by cloud telemetry clients to get extended context
17861782 */
17871783 public async getCloudTelemetryProperties ( ) : Promise < CloudTelemetryProperties > {
1788- // Since getTelemetryProperties now includes Git information with defaults,
1789- // we can simply return its result as CloudTelemetryProperties
1790- return ( await this . getTelemetryProperties ( ) ) as CloudTelemetryProperties
1784+ // Get base telemetry properties
1785+ const baseProperties = await this . getTelemetryProperties ( )
1786+
1787+ // Get git repository information
1788+ const gitInfo = await getWorkspaceGitInfo ( )
1789+
1790+ // Return combined properties
1791+ return {
1792+ ...baseProperties ,
1793+ ...gitInfo , // Add Git information only for cloud telemetry events
1794+ }
17911795 }
17921796}
0 commit comments