Implement terminal restart functionality and enhance model settings menu in InkApp. Add methods for restarting the terminal and adjusting model settings, improving user interaction and menu navigation. Update state management for better handling of model settings adjustments.

This commit is contained in:
sebseb7
2025-08-13 01:57:11 +00:00
parent 83ac8709b7
commit b49c798fc7
2 changed files with 74 additions and 16 deletions

View File

@@ -118,10 +118,16 @@ class TerminalService extends EventEmitter {
this.ptyProcess.kill();
this.ptyProcess = null;
}
this.started = false;
} catch {
// ignore
}
}
restart() {
try { this.dispose(); } catch {}
try { this.start(); } catch {}
}
}
const terminalService = new TerminalService();