fix(coding-agent): space first user message after notices

closes #3613
This commit is contained in:
Mario Zechner
2026-04-23 22:16:23 +02:00
parent 00cb947166
commit c091aa732f
2 changed files with 2 additions and 6 deletions

View File

@@ -279,9 +279,6 @@ export class InteractiveMode {
// Tool execution tracking: toolCallId -> component
private pendingTools = new Map<string, ToolExecutionComponent>();
// Track first user message to avoid leading spacer at top of chat
private isFirstUserMessage = true;
// Tool output expansion state
private toolOutputExpanded = false;
@@ -3035,7 +3032,7 @@ export class InteractiveMode {
case "user": {
const textContent = this.getUserMessageText(message);
if (textContent) {
if (!this.isFirstUserMessage) {
if (this.chatContainer.children.length > 0) {
this.chatContainer.addChild(new Spacer(1));
}
const skillBlock = parseSkillBlock(textContent);
@@ -3059,7 +3056,6 @@ export class InteractiveMode {
const userComponent = new UserMessageComponent(textContent, this.getMarkdownThemeWithSettings());
this.chatContainer.addChild(userComponent);
}
this.isFirstUserMessage = false;
if (options?.populateHistory) {
this.editor.addToHistory?.(textContent);
}
@@ -3097,7 +3093,6 @@ export class InteractiveMode {
options: { updateFooter?: boolean; populateHistory?: boolean } = {},
): void {
this.pendingTools.clear();
this.isFirstUserMessage = true;
if (options.updateFooter) {
this.footer.invalidate();