mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 07:29:42 +02:00
fix: use writeViaScreen for all programmatic console input
- Auto-compact now uses writeViaScreen with \r - Auto-clear now uses writeViaScreen with \r - Standardized respawn controller to use \r consistently - Removed session name input from options modal (use right-click to rename) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -839,9 +839,9 @@ export class Session extends EventEmitter {
|
||||
if (!this._isWorking) {
|
||||
// Send /compact command with optional prompt
|
||||
const compactCmd = this._autoCompactPrompt
|
||||
? `/compact ${this._autoCompactPrompt}\n`
|
||||
: '/compact\n';
|
||||
this.write(compactCmd);
|
||||
? `/compact ${this._autoCompactPrompt}\r`
|
||||
: '/compact\r';
|
||||
this.writeViaScreen(compactCmd);
|
||||
this.emit('autoCompact', {
|
||||
tokens: totalTokens,
|
||||
threshold: this._autoCompactThreshold,
|
||||
@@ -876,7 +876,7 @@ export class Session extends EventEmitter {
|
||||
const checkAndClear = () => {
|
||||
if (!this._isWorking) {
|
||||
// Send /clear command
|
||||
this.write('/clear\n');
|
||||
this.writeViaScreen('/clear\r');
|
||||
// Reset token counts
|
||||
this._totalInputTokens = 0;
|
||||
this._totalOutputTokens = 0;
|
||||
|
||||
Reference in New Issue
Block a user