From 50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3 Mon Sep 17 00:00:00 2001 From: Christopher Warner Date: Sat, 10 Oct 2026 18:40:56 -0400 Subject: fix: run create/status headless without a visible browser Use a saved storage-state session for note ops so only `login` opens a window; launchPersistentContext was flashing Chromium on Linux. Co-authored-by: Cursor --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b90b8f0..abb3fa0 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ icloud-note create --title "Hello" --body "From Linux" | Command | Purpose | |---|---| | `icloud-note setup` | Install Playwright Chromium + `~/.local/bin` wrapper | -| `icloud-note login` | Headed sign-in; saves session under `~/.config/icloud-notes/` | -| `icloud-note status` | Check whether the saved session can open Notes | -| `icloud-note create` | Create a note (`--title`, `--body` / `--body-file`) | +| `icloud-note login` | **Only** command that opens a visible browser (one-time Apple ID) | +| `icloud-note status` | Headless check that the saved session can open Notes | +| `icloud-note create` | Headless create (`--title`, `--body` / `--body-file`) — no window | ## Layout @@ -37,7 +37,8 @@ Runtime config (not in git): ```text ~/.config/icloud-notes/ - browser-profile/ Playwright persistent profile (private) + storage-state.json Cookies/session for headless create (private) + browser-profile/ Used only during `login` (private) node_modules/ Playwright install ``` -- cgit v1.2.3