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 {
556556 title = titleMatch [ 1 ] . trim ( ) ;
557557 }
558558
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+
559565 const problemStatement : string = `${ prompt } ${ problemContext ? `: ${ problemContext } ` : '' } ` ;
560566 const payload : RemoteAgentJobPayload = {
561567 problem_statement : problemStatement ,
562568 pull_request : {
563569 title,
564- body_placeholder : problemContext ,
570+ body_placeholder : formatBodyPlaceholder ( problemContext ) ,
565571 base_ref,
566572 body_suffix,
567573 ...( hasChanges && { head_ref : ref } )
You can’t perform that action at this time.
0 commit comments