mirror of https://github.com/garrytan/gstack.git
Bug 1 — Headed Chromium window closes immediately on macOS 26 (Sequoia): macOS 26 tightened window activation policy. Chromium windows spawned by a non-app process (Bun server) close immediately unless properly registered via NSApplicationActivateIgnoringOtherApps. Two fixes: 1. Add --disable-features=MacControlledWindowBehavior to headed launch args on darwin. This flag suppresses the new OS-level window-hiding behavior while Playwright's NSApp startup sequence handles activation normally. No-op on macOS < 26 and non-macOS platforms. 2. Fix raiseHeadedWindowMacOS() — it tried to activate "Google Chrome for Testing" via osascript, but launchHeaded() patches the Info.plist to rename it to "GStack Browser". The activation silently failed, leaving the window unraised. Now tries "GStack Browser" first with fallback to the original name. Bug 2 — cookie-import-browser fails when no Default profile exists: Chrome on macOS 26 and some multi-profile installations never create a Default directory. Every account lands in a numbered profile (Profile 4, Profile 12, etc.). cookie-import-browser.ts only looked for Default/Cookies, so it threw "Chrome is not installed" even though cookies were present. Fix: when getBrowserMatch() can't find Default, call findFirstNumberedProfile() which scans for Profile N directories, sorts by number (lowest first so the primary account wins), and returns the first one with a Cookies file. The fallback is only triggered when the caller explicitly requested "Default" — an explicit non-default profile name still fails fast as before. Also adds tests for: numbered-profile fallback on Linux Chromium, lowest-number wins when multiple numbered profiles exist, listDomains falling back correctly. Closes #2138 |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||