@@ -3128,11 +3128,16 @@ export class InteractiveMode {
|
||||
const userComponent = new UserMessageComponent(
|
||||
skillBlock.userMessage,
|
||||
this.getMarkdownThemeWithSettings(),
|
||||
this.outputPad,
|
||||
);
|
||||
this.chatContainer.addChild(userComponent);
|
||||
}
|
||||
} else {
|
||||
const userComponent = new UserMessageComponent(textContent, this.getMarkdownThemeWithSettings());
|
||||
const userComponent = new UserMessageComponent(
|
||||
textContent,
|
||||
this.getMarkdownThemeWithSettings(),
|
||||
this.outputPad,
|
||||
);
|
||||
this.chatContainer.addChild(userComponent);
|
||||
}
|
||||
if (options?.populateHistory) {
|
||||
@@ -4070,15 +4075,19 @@ export class InteractiveMode {
|
||||
onOutputPadChange: (padding) => {
|
||||
this.settingsManager.setOutputPad(padding);
|
||||
this.outputPad = padding;
|
||||
for (const child of this.chatContainer.children) {
|
||||
if (child instanceof AssistantMessageComponent) {
|
||||
child.setOutputPad(padding);
|
||||
if (this.streamingComponent || this.session.isStreaming) {
|
||||
for (const child of this.chatContainer.children) {
|
||||
if (child instanceof AssistantMessageComponent || child instanceof UserMessageComponent) {
|
||||
child.setOutputPad(padding);
|
||||
}
|
||||
}
|
||||
if (this.streamingComponent) {
|
||||
this.streamingComponent.setOutputPad(padding);
|
||||
}
|
||||
this.ui.requestRender();
|
||||
return;
|
||||
}
|
||||
if (this.streamingComponent) {
|
||||
this.streamingComponent.setOutputPad(padding);
|
||||
}
|
||||
this.ui.requestRender();
|
||||
this.rebuildChatFromMessages();
|
||||
},
|
||||
onAutocompleteMaxVisibleChange: (maxVisible) => {
|
||||
this.settingsManager.setAutocompleteMaxVisible(maxVisible);
|
||||
|
||||
Reference in New Issue
Block a user