@@ -10,7 +10,6 @@ import { ConfigKey, IConfigurationService } from '../../../../platform/configura
1010import { isGpt51Family , isGpt5Family , isGpt5PlusFamily , isGptCodexFamily , isGptFamily , isVSCModelA , modelNeedsStrongReplaceStringHint } from '../../../../platform/endpoint/common/chatModelCapabilities' ;
1111import { CacheType } from '../../../../platform/endpoint/common/endpointTypes' ;
1212import { IEnvService , OperatingSystem } from '../../../../platform/env/common/envService' ;
13- import { getGitHubRepoInfoFromContext , IGitService } from '../../../../platform/git/common/gitService' ;
1413import { ILogService } from '../../../../platform/log/common/logService' ;
1514import { IChatEndpoint } from '../../../../platform/networking/common/networking' ;
1615import { IAlternativeNotebookContentService } from '../../../../platform/notebook/common/alternativeContent' ;
@@ -23,7 +22,6 @@ import { isDefined } from '../../../../util/vs/base/common/types';
2322import { IInstantiationService } from '../../../../util/vs/platform/instantiation/common/instantiation' ;
2423import { ChatRequestEditedFileEventKind , Position , Range } from '../../../../vscodeTypes' ;
2524import { GenericBasePromptElementProps } from '../../../context/node/resolvers/genericPanelIntentInvocation' ;
26- import { GitHubPullRequestProviders } from '../../../conversation/node/githubPullRequestProviders' ;
2725import { ChatVariablesCollection } from '../../../prompt/common/chatVariablesCollection' ;
2826import { getGlobalContextCacheKey , GlobalContextMessageMetadata , RenderedUserMessageMetadata , Turn } from '../../../prompt/common/conversation' ;
2927import { InternalToolReference } from '../../../prompt/common/intents' ;
@@ -355,7 +353,6 @@ export class AgentUserMessage extends PromptElement<AgentUserMessageProps> {
355353 { hasTodoTool && < TodoListContextPrompt sessionId = { this . props . sessionId } /> }
356354 </ Tag >
357355 < CurrentEditorContext endpoint = { this . props . endpoint } />
358- < RepoContext />
359356 < Tag name = 'reminderInstructions' >
360357 { /* Critical reminders that are effective when repeated right next to the user message */ }
361358 < KeepGoingReminder modelFamily = { this . props . endpoint . family } />
@@ -539,35 +536,6 @@ class CurrentEditorContext extends PromptElement<CurrentEditorContextProps> {
539536 }
540537}
541538
542- class RepoContext extends PromptElement < { } > {
543- constructor (
544- props : { } ,
545- @IGitService private readonly gitService : IGitService ,
546- @IInstantiationService private readonly instantiationService : IInstantiationService ,
547- ) {
548- super ( props ) ;
549- }
550-
551- async render ( state : void , sizing : PromptSizing ) {
552- const activeRepository = this . gitService . activeRepository ?. get ( ) ;
553- const repoContext = activeRepository && getGitHubRepoInfoFromContext ( activeRepository ) ;
554- if ( ! repoContext || ! activeRepository ) {
555- return ;
556- }
557- const prProvider = this . instantiationService . createInstance ( GitHubPullRequestProviders ) ;
558- const repoDescription = await prProvider . getRepositoryDescription ( activeRepository . rootUri ) ;
559-
560- return < Tag name = 'repoContext' >
561- Below is the information about the current repository. You can use this information when you need to calculate diffs or compare changes with the default branch.< br />
562- Repository name: { repoContext . id . repo } < br />
563- Owner: { repoContext . id . org } < br />
564- Current branch: { activeRepository . headBranchName } < br />
565- { repoDescription ? < > Default branch: { repoDescription ?. defaultBranch } < br /> </ > : '' }
566- { repoDescription ?. pullRequest ? < > Active pull request (may not be the same as open pull request): { repoDescription . pullRequest . title } ({ repoDescription . pullRequest . url } )< br /> </ > : '' }
567- </ Tag > ;
568- }
569- }
570-
571539class WorkspaceFoldersHint extends PromptElement < BasePromptElementProps > {
572540 constructor (
573541 props : BasePromptElementProps ,
0 commit comments