fix(web): scroll to the prompt on toolbar Enter, retire app.sendInput (#830)

submitFromToolbar() puts the CR on the FIFO, bypassing xterm scrollOnUserInput; scroll the focused pane before sending.
Remove app.sendInput(), which has no production caller; update @dependency headers and test stubs.
Retarget the codex predictive-echo recorders to _enqueueReliableInput.
Correct the docs and the _sendInputAsync JSDoc for the session FIFO; drop stale _pendingInput stubs.
This commit is contained in:
Hadrien Kerlero committed 2026-11-21 01:34:27 +01:00
1 parent ddb5a647ba
commit 05fc2f990b
16 files changed
+86 -95

No files matched your search

-1
View File
@@ -49,7 +49,6 @@ function loadToolbar(sessionId: string | null = 'session-1', localEcho = true, k
const app = new CodemanApp();
app.activeSessionId = sessionId;
app.showToast = vi.fn();
app.sendInput = vi.fn(async () => {});
app.terminal = { focus: vi.fn() };
app._isMobileTerminalInputFocused = vi.fn(() => keyboardUp);
app._blurMobileTerminalInput = vi.fn();