social-autoposter 1.6.37 → 1.6.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skill/lib/twitter-backend.sh +10 -0
package/package.json
CHANGED
|
@@ -196,10 +196,20 @@ ensure_twitter_browser_for_backend() {
|
|
|
196
196
|
_extra+=(--window-size="${BH_WINDOW_SIZE:-1024,1013}")
|
|
197
197
|
;;
|
|
198
198
|
esac
|
|
199
|
+
# --password-store=basic + --use-mock-keychain: encrypt the cookie store
|
|
200
|
+
# with Chrome's fixed obfuscation key instead of the macOS Keychain
|
|
201
|
+
# ("Chrome Safe Storage"). Without this, a keychain lock/re-lock leaves
|
|
202
|
+
# Chrome unable to decrypt its Cookies SQLite on the next launch, so it
|
|
203
|
+
# discards the session and the harness comes up logged out. With it, the
|
|
204
|
+
# x.com cookies persist + decrypt across restarts natively, no
|
|
205
|
+
# re-injection needed. Matches the flags the Playwright browser agents
|
|
206
|
+
# already use. (Root-cause persistence fix, 2026-06-02; the cookie
|
|
207
|
+
# mirror + restore_twitter_session.py remain as the safety net.)
|
|
199
208
|
"$_chrome_bin" \
|
|
200
209
|
--remote-debugging-port=9555 \
|
|
201
210
|
--user-data-dir="$HOME/.claude/browser-profiles/browser-harness" \
|
|
202
211
|
--no-first-run --no-default-browser-check \
|
|
212
|
+
--password-store=basic --use-mock-keychain \
|
|
203
213
|
--disable-features=ChromeWhatsNewUI \
|
|
204
214
|
"${_extra[@]}" \
|
|
205
215
|
about:blank >/dev/null 2>&1 &
|