@@ -2062,6 +2062,7 @@ class SymjaConsole {
const events = JSON.parse(json);
events.forEach(ev => {
this.mcpEventCount++;
+ this.addToHistory(ev.expression);
this.addOutput(ev.expression, 'mcp-input', { seq: this.mcpEventCount });
// 检测 LaTeX 渲染
if (ev.result && ev.result.startsWith('##TEXFORM##')) {