diff --git a/frontend/packages/dashboard/src/flow.js b/frontend/packages/dashboard/src/flow.js index 1d8a23f1..5c5cfdf9 100644 --- a/frontend/packages/dashboard/src/flow.js +++ b/frontend/packages/dashboard/src/flow.js @@ -380,8 +380,14 @@ import { if (!flow) return; const row = document.createElement('div'); row.className = 'msgrow meta'; - row.textContent = msg; - flow.insertBefore(row, flow.firstChild); + row.textContent = '✗ ' + msg; + // Append at the bottom so the error is visible — the terminal + // renders newest-last, so inserting before firstChild would place + // the error at the top (oldest end) and hide it from view. + flow.append(row); + // Scroll the terminal wrap so the error is in view. + const wrap = flow.parentElement; + if (wrap) wrap.scrollTop = wrap.scrollHeight; } input.addEventListener('input', () => { autosize(); updateSuggest(); }); input.addEventListener('keydown', (e) => {