# Manual smoke — F12 document-edit flow Covers the document-edit-flow cluster (`specs/coauthoring-document-edit-flow.md`, #42 · #47 · #46). This file is filled in slice by slice. ## SLICE-1 — #42 (reach): selection-aware Ask-Claude from body + tab (INV-38) Run the extension (F5) on a markdown document under the sandbox workspace. 1. **Body, with selection (PUC-2).** Select a paragraph, right-click the editor **body**. Expect **Ask Claude to Edit Selection** in the menu (and **not** "Edit Document"). Pick it → instruct → submit; a single proposal lands over the selection (existing F11 behavior, unchanged). 2. **Body, no selection (PUC-1).** Clear the selection (click once), right-click the editor **body**. Expect **Ask Claude to Edit Document** (and **not** "Edit Selection"). Pick it → instruct → submit; the whole-document rewrite surfaces as F4 proposal(s) in the preview. 3. **Tab, with selection (PUC-3).** With a selection active, right-click the editor **tab**. Expect **Ask Claude to Edit Selection**, acting on that tab's document. 4. **Tab, no selection (PUC-3).** With no selection, right-click the editor **tab**. Expect **Ask Claude to Edit Document**, acting on **that tab's** document — even if a *different* editor is the active one. Open two markdown tabs A and B, make A active, right-click B's tab → Edit Document → the proposals land on **B**, not A. 5. **Markdown-gated.** Open a non-markdown file (e.g. `.txt`). Right-click body or tab: neither **Ask Claude to Edit Selection** nor **Edit Document** appears. 6. **Single edit path.** Both entries route through the same `runEditAndPropose` path — there is no second edit code path (INV-38). Nothing is written to the document or sidecar by merely invoking the menu (INV-10/20/35) until you accept. ### Pass criteria The body and tab menus show exactly one Ask-Claude edit entry, matching the live selection state (selection → Edit Selection; none → Edit Document); the tab gesture targets the clicked tab's document, not the active editor; both are absent on non-markdown docs; no console errors.