The design language that makes your AI harness better at design.
JavaScript
Sync generated provider output
github-actions[bot]1f9687c0c6d4
diff --git a/.agent/skills/impeccable/scripts/live-browser-dom.js b/.agent/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.agent/skills/impeccable/scripts/live-browser-dom.js+++ b/.agent/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.agent/skills/impeccable/scripts/live-browser.js b/.agent/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.agent/skills/impeccable/scripts/live-browser.js+++ b/.agent/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.agents/skills/impeccable/scripts/live-browser-dom.js b/.agents/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.agents/skills/impeccable/scripts/live-browser-dom.js+++ b/.agents/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.agents/skills/impeccable/scripts/live-browser.js b/.agents/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.agents/skills/impeccable/scripts/live-browser.js+++ b/.agents/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.claude/skills/impeccable/scripts/live-browser-dom.js b/.claude/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.claude/skills/impeccable/scripts/live-browser-dom.js+++ b/.claude/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.claude/skills/impeccable/scripts/live-browser.js b/.claude/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.claude/skills/impeccable/scripts/live-browser.js+++ b/.claude/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.cursor/skills/impeccable/scripts/live-browser-dom.js b/.cursor/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.cursor/skills/impeccable/scripts/live-browser-dom.js+++ b/.cursor/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.cursor/skills/impeccable/scripts/live-browser.js b/.cursor/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.cursor/skills/impeccable/scripts/live-browser.js+++ b/.cursor/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.dsh/skills/impeccable/scripts/live-browser-dom.js b/.dsh/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.dsh/skills/impeccable/scripts/live-browser-dom.js+++ b/.dsh/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.dsh/skills/impeccable/scripts/live-browser.js b/.dsh/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.dsh/skills/impeccable/scripts/live-browser.js+++ b/.dsh/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.gemini/skills/impeccable/scripts/live-browser-dom.js b/.gemini/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.gemini/skills/impeccable/scripts/live-browser-dom.js+++ b/.gemini/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.gemini/skills/impeccable/scripts/live-browser.js b/.gemini/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.gemini/skills/impeccable/scripts/live-browser.js+++ b/.gemini/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.github/skills/impeccable/scripts/live-browser-dom.js b/.github/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.github/skills/impeccable/scripts/live-browser-dom.js+++ b/.github/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.github/skills/impeccable/scripts/live-browser.js b/.github/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.github/skills/impeccable/scripts/live-browser.js+++ b/.github/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.grok/skills/impeccable/scripts/live-browser-dom.js b/.grok/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.grok/skills/impeccable/scripts/live-browser-dom.js+++ b/.grok/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.grok/skills/impeccable/scripts/live-browser.js b/.grok/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.grok/skills/impeccable/scripts/live-browser.js+++ b/.grok/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.hermes/skills/impeccable/scripts/live-browser-dom.js b/.hermes/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.hermes/skills/impeccable/scripts/live-browser-dom.js+++ b/.hermes/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.hermes/skills/impeccable/scripts/live-browser.js b/.hermes/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.hermes/skills/impeccable/scripts/live-browser.js+++ b/.hermes/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.kiro/skills/impeccable/scripts/live-browser-dom.js b/.kiro/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.kiro/skills/impeccable/scripts/live-browser-dom.js+++ b/.kiro/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.kiro/skills/impeccable/scripts/live-browser.js b/.kiro/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.kiro/skills/impeccable/scripts/live-browser.js+++ b/.kiro/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.opencode/skills/impeccable/scripts/live-browser-dom.js b/.opencode/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.opencode/skills/impeccable/scripts/live-browser-dom.js+++ b/.opencode/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.opencode/skills/impeccable/scripts/live-browser.js b/.opencode/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.opencode/skills/impeccable/scripts/live-browser.js+++ b/.opencode/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.pi/skills/impeccable/scripts/live-browser-dom.js b/.pi/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.pi/skills/impeccable/scripts/live-browser-dom.js+++ b/.pi/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.pi/skills/impeccable/scripts/live-browser.js b/.pi/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.pi/skills/impeccable/scripts/live-browser.js+++ b/.pi/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.qoder/skills/impeccable/scripts/live-browser-dom.js b/.qoder/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.qoder/skills/impeccable/scripts/live-browser-dom.js+++ b/.qoder/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.qoder/skills/impeccable/scripts/live-browser.js b/.qoder/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.qoder/skills/impeccable/scripts/live-browser.js+++ b/.qoder/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.rovodev/skills/impeccable/scripts/live-browser-dom.js b/.rovodev/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.rovodev/skills/impeccable/scripts/live-browser-dom.js+++ b/.rovodev/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.rovodev/skills/impeccable/scripts/live-browser.js b/.rovodev/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.rovodev/skills/impeccable/scripts/live-browser.js+++ b/.rovodev/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.trae-cn/skills/impeccable/scripts/live-browser-dom.js b/.trae-cn/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.trae-cn/skills/impeccable/scripts/live-browser-dom.js+++ b/.trae-cn/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.trae-cn/skills/impeccable/scripts/live-browser.js b/.trae-cn/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.trae-cn/skills/impeccable/scripts/live-browser.js+++ b/.trae-cn/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.trae/skills/impeccable/scripts/live-browser-dom.js b/.trae/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.trae/skills/impeccable/scripts/live-browser-dom.js+++ b/.trae/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.trae/skills/impeccable/scripts/live-browser.js b/.trae/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.trae/skills/impeccable/scripts/live-browser.js+++ b/.trae/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.veto/skills/impeccable/scripts/live-browser-dom.js b/.veto/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.veto/skills/impeccable/scripts/live-browser-dom.js+++ b/.veto/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.veto/skills/impeccable/scripts/live-browser.js b/.veto/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.veto/skills/impeccable/scripts/live-browser.js+++ b/.veto/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/.vibe/skills/impeccable/scripts/live-browser-dom.js b/.vibe/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/.vibe/skills/impeccable/scripts/live-browser-dom.js+++ b/.vibe/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/.vibe/skills/impeccable/scripts/live-browser.js b/.vibe/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/.vibe/skills/impeccable/scripts/live-browser.js+++ b/.vibe/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/cursor-plugin/skills/impeccable/scripts/live-browser-dom.js b/cursor-plugin/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/cursor-plugin/skills/impeccable/scripts/live-browser-dom.js+++ b/cursor-plugin/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/cursor-plugin/skills/impeccable/scripts/live-browser.js b/cursor-plugin/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/cursor-plugin/skills/impeccable/scripts/live-browser.js+++ b/cursor-plugin/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)diff --git a/plugin/skills/impeccable/scripts/live-browser-dom.js b/plugin/skills/impeccable/scripts/live-browser-dom.jsindex 63e222180..864694498 100644--- a/plugin/skills/impeccable/scripts/live-browser-dom.js+++ b/plugin/skills/impeccable/scripts/live-browser-dom.js@@ -242,6 +242,15 @@rootEl.addEventListener('focusin', stop);}+ // The half of the defang that cannot sit on the chrome: a focus trap (Radix /+ // Reka FocusScope) also hears the page's own focusout as focus leaves its+ // modal for our chrome, and pulls it back. Register on the document in+ // capture, ahead of the trap. The page's own focusout handlers miss that+ // one transition too; blur still fires.+ function stopFocusOutIntoChrome(e) {+ if (own(e.relatedTarget)) e.stopPropagation();+ }+return {own,pickable,@@ -261,6 +270,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,};}diff --git a/plugin/skills/impeccable/scripts/live-browser.js b/plugin/skills/impeccable/scripts/live-browser.jsindex 8a0318ccb..c7eed77fb 100644--- a/plugin/skills/impeccable/scripts/live-browser.js+++ b/plugin/skills/impeccable/scripts/live-browser.js@@ -300,6 +300,7 @@uiGetById,activeElementDeep,defangOutsideHandlers,+ stopFocusOutIntoChrome,} = domHelpers;window.__IMPECCABLE_LIVE_CHROME_CORE__ = {@@ -868,8 +869,15 @@setTimeout(() => input.focus(), 0);}+ // The Enter that commits an IME candidate (Zhuyin, Pinyin, kana, Hangul) is+ // not a submit. Safari fires that keydown after compositionend, so+ // isComposing is already false there and keyCode 229 is the only signal.+ function isImeKeydown(e) {+ return e.isComposing || e.keyCode === 229;+ }+function onAnnotInputKey(e) {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault(); e.stopPropagation();finalizeEditingPin();} else if (e.key === 'Escape') {@@ -2463,7 +2471,7 @@input.addEventListener('focus', () => syncConfigureInputChrome());input.addEventListener('blur', () => syncConfigureInputChrome());input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.stopPropagation(); e.preventDefault(); handleGo(); return; }+ if (e.key === 'Enter' && !isImeKeydown(e)) { e.stopPropagation(); e.preventDefault(); handleGo(); return; }if (e.key === 'Escape') {e.stopPropagation();e.preventDefault();@@ -2549,7 +2557,7 @@try { input.focus({ preventScroll: true }); } catch { input.focus(); }});input.addEventListener('keydown', (e) => {- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.stopPropagation(); e.preventDefault();if (isInsertCreateEnabled()) handleInsertCreate();return;@@ -11441,7 +11449,7 @@ void main() {}return;}- if (e.key === 'Enter') {+ if (e.key === 'Enter' && !isImeKeydown(e)) {e.preventDefault();submitSteerMessage();}@@ -12297,6 +12305,7 @@ void main() {document.removeEventListener('mousemove', handleMouseMove, true);document.removeEventListener('click', handleClick, true);document.removeEventListener('keydown', handleKeyDown, true);+ document.removeEventListener('focusout', stopFocusOutIntoChrome, true);window.removeEventListener('message', onDetectMessage);// Remove detection overlayswindow.postMessage({ source: 'impeccable-command', action: 'remove' }, '*');@@ -13482,6 +13491,7 @@ void main() {document.addEventListener('mousemove', handleMouseMove, true);document.addEventListener('click', handleClick, true);document.addEventListener('keydown', handleKeyDown, true);+ document.addEventListener('focusout', stopFocusOutIntoChrome, true);connectSSE();// Check for an active session to resume (variant wrapper already in DOM after HMR)