Merge pull request #444 from DodgyBadger/feat/mobile-prompt-composer

feat(mobile): add manual prompt composer
This commit is contained in:
Codeman maintainer
2026-09-21 04:23:15 +02:00
9 changed files with 787 additions and 27 deletions
+3 -2
View File
@@ -4075,8 +4075,9 @@ Object.assign(CodemanApp.prototype, {
this._localEchoOverlay.suppressBufferDetection();
this._flushedOffsets?.delete(this.activeSessionId);
this._flushedTexts?.delete(this.activeSessionId);
if (flushed.count > 0) {
this.sendInput('\x7f'.repeat(flushed.count)).catch(() => {});
const flushedLength = Array.from(flushed.text || '').length;
if (flushedLength > 0) {
this.sendInput('\x7f'.repeat(flushedLength)).catch(() => {});
}
} else {
// In non-local-echo mode the TUI already owns the editable buffer. Ctrl+U