@@ -39,7 +39,6 @@ import { IWorkbenchLayoutService, Parts } from '../../../../services/layout/brow
3939import { ILifecycleService } from '../../../../services/lifecycle/common/lifecycle.js' ;
4040import { IPreferencesService } from '../../../../services/preferences/common/preferences.js' ;
4141import { IOutputService } from '../../../../services/output/common/output.js' ;
42- import { ITextModelService } from '../../../../editor/common/services/resolverService.js' ;
4342import { IExtension , IExtensionsWorkbenchService } from '../../../extensions/common/extensions.js' ;
4443import { IWorkbenchIssueService } from '../../../issue/common/issue.js' ;
4544import { ChatContextKeys } from '../../common/actions/chatContextKeys.js' ;
@@ -52,14 +51,15 @@ import { ChatSetupAnonymous } from './chatSetup.js';
5251import { ChatSetupController } from './chatSetupController.js' ;
5352import { AICodeActionsHelper , AINewSymbolNamesProvider , ChatCodeActionsProvider , SetupAgent } from './chatSetupProviders.js' ;
5453import { ChatSetup } from './chatSetupRunner.js' ;
54+ import { ITextModelService } from '../../../../../editor/common/services/resolverService.js' ;
5555
5656const defaultChat = {
5757 chatExtensionId : product . defaultChatAgent ?. chatExtensionId ?? '' ,
5858 manageOveragesUrl : product . defaultChatAgent ?. manageOverageUrl ?? '' ,
5959 upgradePlanUrl : product . defaultChatAgent ?. upgradePlanUrl ?? '' ,
6060 completionsRefreshTokenCommand : product . defaultChatAgent ?. completionsRefreshTokenCommand ?? '' ,
6161 chatRefreshTokenCommand : product . defaultChatAgent ?. chatRefreshTokenCommand ?? '' ,
62- outputChannelId : 'GitHub Copilot Chat' ,
62+ outputChannelId : 'GitHub.copilot-chat.GitHub Copilot Chat.log ' ,
6363} ;
6464
6565export class ChatSetupContribution extends Disposable implements IWorkbenchContribution {
@@ -443,7 +443,7 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
443443
444444 let outputData = '' ;
445445 let channelName = '' ;
446-
446+
447447 // Try to get the GitHub Copilot Chat output channel first
448448 let channel = outputService . getChannel ( defaultChat . outputChannelId ) ;
449449 if ( channel ) {
@@ -460,8 +460,10 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
460460 // Use the text model service to get the channel content via its URI
461461 const model = await textModelService . createModelReference ( channel . uri ) ;
462462 try {
463- outputData = model . object . textEditorModel . getValue ( ) ;
464- logService . info ( `[chat setup] Retrieved ${ outputData . length } characters from ${ channelName } output channel` ) ;
463+ const rawOutput = model . object . textEditorModel . getValue ( ) ;
464+ // Wrap in markdown details block to avoid blowing out the issue
465+ outputData = `<details>\n<summary>GitHub Copilot Chat Output (${ channelName } )</summary>\n\n\`\`\`\n${ rawOutput } \n\`\`\`\n</details>` ;
466+ logService . info ( `[chat setup] Retrieved ${ rawOutput . length } characters from ${ channelName } output channel` ) ;
465467 } finally {
466468 model . dispose ( ) ;
467469 }
0 commit comments