# Snooze IME Enter real-app comparison

Use current main's scenario runner. Copy `snooze-ime-enter.e2e.ts` and
`snooze-ime-browser.ts` into `scripts/scenarios/`, then apply `browser-config.patch`.
The helper launches real Chromium with a free local CDP port; the scenario uses
Input.imeSetComposition and Input.dispatchKeyEvent, rather than page-dispatched
keyboard or input events. The event log records key, keyCode, isComposing,
isTrusted, focus transitions and input values.

Set T3_IME_CDP_ENDPOINT_FILE to a writable temporary file and T3CODE_DEV_SEED=0.
Run:

```
vp run scenarios:prove scripts/scenarios/snooze-ime-enter.e2e.ts --base 891bf1afa356ce994e3d81f6cb05a7979c72ac38 --head c282b2c86808e5a3a059eaff61e68b217628b256 --upload-command "ghdrop upload"
```

Both sides use fresh server-created databases, default snooze presets, a synthetic
demo project, Chromium on Linux, a 1280x800 viewport and the default light theme.
The CDP key event reproduces the reported macOS/Safari Enter shape (Enter, 229)
while browser IME composition is active. This does not exercise an OS input-source
picker or native Safari.
