Merge pull request #1258 from Gurpartap/fix/custom-message-expand-state

Respect expand state for custom messages
This commit is contained in:
Mario Zechner 2026-02-04 17:10:43 +01:00 committed by GitHub
commit 7c39a12a28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2333,9 +2333,9 @@ export class InteractiveMode {
case "custom": { case "custom": {
if (message.display) { if (message.display) {
const renderer = this.session.extensionRunner?.getMessageRenderer(message.customType); const renderer = this.session.extensionRunner?.getMessageRenderer(message.customType);
this.chatContainer.addChild( const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings());
new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings()), component.setExpanded(this.toolOutputExpanded);
); this.chatContainer.addChild(component);
} }
break; break;
} }