File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -556,12 +556,18 @@ export class CopilotRemoteAgentManager extends Disposable {
556
556
title = titleMatch [ 1 ] . trim ( ) ;
557
557
}
558
558
559
+ const formatBodyPlaceholder = ( problemContext : string ) : string => {
560
+ const header = vscode . l10n . t ( 'Coding agent has begun work on **{0}** and will replace this description as work progresses.' , title ) ;
561
+ const collapsedContext = `<details><summary>${ vscode . l10n . t ( 'See problem context' ) } </summary>\n\n${ problemContext } \n\n</details>` ;
562
+ return `${ header } \n\n${ collapsedContext } ` ;
563
+ } ;
564
+
559
565
const problemStatement : string = `${ prompt } ${ problemContext ? `: ${ problemContext } ` : '' } ` ;
560
566
const payload : RemoteAgentJobPayload = {
561
567
problem_statement : problemStatement ,
562
568
pull_request : {
563
569
title,
564
- body_placeholder : problemContext ,
570
+ body_placeholder : formatBodyPlaceholder ( problemContext ) ,
565
571
base_ref,
566
572
body_suffix,
567
573
...( hasChanges && { head_ref : ref } )
You can’t perform that action at this time.
0 commit comments