The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(dashboard): keep mouse input out of IME fallback
Denis H874ae74a10fa
diff --git a/web/src/lib/pty-composition.ts b/web/src/lib/pty-composition.tsindex 7944b8cb556..6eec3d5a221 100644--- a/web/src/lib/pty-composition.ts+++ b/web/src/lib/pty-composition.ts@@ -27,7 +27,7 @@ export function createPtyCompositionForwarder(send: (data: string) => void) {if (committed) send(committed);}, 16);},- noteTerminalData(_data: string) {+ noteTerminalData() {// Any xterm input in the short grace window is its own composition// delivery (possibly chunked or normalization-different), so prefer it// over the fallback to avoid duplicate text.diff --git a/web/src/pages/ChatPage.tsx b/web/src/pages/ChatPage.tsxindex a67525234a8..00538e5915c 100644--- a/web/src/pages/ChatPage.tsx+++ b/web/src/pages/ChatPage.tsx@@ -1313,12 +1313,11 @@ export default function ChatPage({ isActive = true }: { isActive?: boolean }) {// The deferred composition fallback is already committed text, so it// must not consume the mobile replacement window intended for xterm's// normal onData path.- sendComposedText = (data) => {- forwardPtyData(data, false);- mobileReplacementInputUntilRef.current = 0;- };+ sendComposedText = (data) => forwardPtyData(data, false);onDataDisposable = term.onData((data) => {- compositionForwarder.noteTerminalData(data);+ if (!SGR_MOUSE_RE.test(data)) {+ compositionForwarder.noteTerminalData();+ }forwardPtyData(data);});