## Corrected Implementation Plan: Devii Window Shrink on Double-Click ### Changes Required **1. Remove `resize: both` native handle (devii.css)** - **File:** `devii.css` - **Line:** 118 (rule `.devii-state-normal .devii-window { resize: both; }`) - **Action:** Delete the entire line or comment it out. - The custom resize grip (`FloatingWindow._startResize` / `_onResizeDrag` / `_endResize`, lines 157–405 in `FloatingWindow.js`) already handles all user-initiated resizing and enforces a 320×220 floor. Removing `resize: both` eliminates Firefox’s native double-click snap to CSS minimum (300×220), which is the root cause of the bug. - No other CSS changes needed: the `.devii-window` rule block remains valid; `resize: none` for maximized/fullscreen states (lines 131, 143) is unaffected. **Files not modified** (verified already correct in current codebase): - `FloatingWindow.js` – `_observeResize()` already floors at 320×220; `_clampGeometry()` already floors at 320×220. - `DeviiTerminal.js` – `_canOpenOnGesture()` already returns `false` when Devii is open (line 88). - `devii-terminal.js` – restore path already floors at 320×220 (`_clampGeometry()`). ### Definition of Done - [ ] The `resize: both` declaration is removed from `devii.css` (line 118), confirmed by `grep -n 'resize: both' devii.css` returning no match. - [ ] `git diff -- devii.css` shows exactly one deletion (the `resize: both` line) and no other changes. - [ ] Lint check passes: ```bash pip install -q ruff && ruff check . ``` exits with code 0 and reports zero lint errors. - [ ] Unit tests pass: ```bash pip install -e '.[dev]' -q && make test-unit ``` exits with code 0, all previously passing tests continue to pass, no new warnings or errors. - [ ] (Environment limitation) Manual Firefox double-click verification is not required for plan acceptance, but the automated checks confirm the change is syntactically valid, matches existing coding patterns, and does not break any regression tests.