mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 23:49:41 +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:
@@ -416,7 +416,7 @@ export class RespawnController extends EventEmitter {
|
||||
this.terminalBuffer = ''; // Clear buffer for fresh detection
|
||||
|
||||
this.stepTimer = setTimeout(() => {
|
||||
const input = this.config.updatePrompt + '\r\n'; // CRLF for screen + Claude CLI
|
||||
const input = this.config.updatePrompt + '\r'; // \r triggers Enter in Ink/Claude CLI
|
||||
this.log(`Sending update prompt: "${this.config.updatePrompt}"`);
|
||||
this.session.writeViaScreen(input);
|
||||
this.emit('stepSent', 'update', this.config.updatePrompt);
|
||||
@@ -432,7 +432,7 @@ export class RespawnController extends EventEmitter {
|
||||
|
||||
this.stepTimer = setTimeout(() => {
|
||||
this.log('Sending /clear');
|
||||
this.session.writeViaScreen('/clear\r\n'); // CRLF for screen + Claude CLI
|
||||
this.session.writeViaScreen('/clear\r'); // \r triggers Enter in Ink/Claude CLI
|
||||
this.emit('stepSent', 'clear', '/clear');
|
||||
this.setState('waiting_clear');
|
||||
this.promptDetected = false;
|
||||
@@ -445,7 +445,7 @@ export class RespawnController extends EventEmitter {
|
||||
|
||||
this.stepTimer = setTimeout(() => {
|
||||
this.log('Sending /init');
|
||||
this.session.writeViaScreen('/init\r\n'); // CRLF for screen + Claude CLI
|
||||
this.session.writeViaScreen('/init\r'); // \r triggers Enter in Ink/Claude CLI
|
||||
this.emit('stepSent', 'init', '/init');
|
||||
this.setState('waiting_init');
|
||||
this.promptDetected = false;
|
||||
|
||||
Reference in New Issue
Block a user