fix(coding-agent): apply output padding to user messages

closes #6168
This commit is contained in:
Mario Zechner
2026-06-30 11:55:40 +02:00
parent 6564d94717
commit 9be55bc773
8 changed files with 60 additions and 23 deletions
@@ -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);