Przeglądaj źródła

fix: MCP commands now added to history for ↑↓ navigation

nonvioce 3 miesięcy temu
rodzic
commit
a5333fd789
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/src/main/assets/console.js

+ 1 - 0
app/src/main/assets/console.js

@@ -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##')) {