Respect expand state for custom messages

This commit is contained in:
Gurpartap Singh 2026-02-04 21:29:13 +05:30
parent 0404a93e33
commit 864bdb5c1d

View file

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