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 --- SKILL.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'SKILL.md') diff --git a/SKILL.md b/SKILL.md index c4acb87..403e43f 100644 --- a/SKILL.md +++ b/SKILL.md @@ -24,12 +24,15 @@ Linked as: `~/.agents/skills/iphone-icloud-notes` → that repo ```bash icloud-note status -icloud-note login # one-time / when session expired (headed browser) +icloud-note login # ONE-TIME only — only command that opens a window icloud-note create --title "Title" --body "Body text" icloud-note create --title "Title" --body-file /path/to.txt icloud-note create --title "Title" --body-file - # stdin ``` +`create` / `status` are **always headless** (no visible browser). Never pass flags +to force a window. Never run `login` unless the user must re-authenticate. + If `icloud-note` is missing from PATH: ```bash @@ -69,5 +72,5 @@ Browser profile: `~/.config/icloud-notes/browser-profile/` icloud-note login ``` -Requires a graphical session for `login` (DISPLAY/Wayland). After that, `create` -can run headed or headless using the saved profile. +Requires a graphical session for `login` only. After that, `create` / `status` +use `~/.config/icloud-notes/storage-state.json` headlessly — no window. -- cgit v1.2.3