File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/chat/browser/agentSessions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55
6+ import { renderAsPlaintext } from '../../../../../base/browser/markdownRenderer.js' ;
67import { coalesce } from '../../../../../base/common/arrays.js' ;
78import { CancellationToken } from '../../../../../base/common/cancellation.js' ;
89import { Codicon } from '../../../../../base/common/codicons.js' ;
@@ -150,7 +151,7 @@ export class LocalAgentsSessionsProvider extends Disposable implements IChatSess
150151 const sessionItem = this . toChatSessionItem ( history ) ;
151152 return sessionItem ? {
152153 ...sessionItem ,
153- //todo@bpasero comment
154+ //todo@bpasero remove this property once classic view is gone
154155 history : true
155156 } : undefined ;
156157 } ) ) ;
@@ -176,7 +177,7 @@ export class LocalAgentsSessionsProvider extends Disposable implements IChatSess
176177 if ( ! description ) {
177178 const responseValue = lastResponse ?. response . toString ( ) ;
178179 if ( responseValue ) {
179- description = truncate ( responseValue . replace ( / \r ? \n / g, ' ' ) , 100 ) ;
180+ description = truncate ( renderAsPlaintext ( { value : responseValue } ) . replace ( / \r ? \n / g, ' ' ) , 100 ) ; // ensure to strip any markdown
180181 }
181182 }
182183
You can’t perform that action at this time.
0 commit comments