feat(auth): add TWITTER_BROWSER env var to specify browser preference
Add TWITTER_BROWSER environment variable to allow users to control which browser's cookies are prioritized during extraction. Example: TWITTER_BROWSER=chrome twitter feed Supported values: arc, chrome, edge, firefox, brave. The specified browser is moved to the front of the extraction order. Also adds AGENTS.md developer guide for AI coding assistants. Co-authored-by: Agassi <413855+agassiyzh@users.noreply.github.com>
This commit is contained in:
@@ -135,7 +135,7 @@ def test_extract_via_subprocess_script_includes_arc(monkeypatch) -> None:
|
||||
cookies, diagnostics = auth._extract_via_subprocess()
|
||||
|
||||
assert cookies is None
|
||||
assert '("arc", browser_cookie3.arc)' in seen["script"]
|
||||
assert '"arc": browser_cookie3.arc' in seen["script"]
|
||||
|
||||
|
||||
def test_extract_via_subprocess_retries_uv_when_current_env_has_no_output(monkeypatch) -> None:
|
||||
|
||||
Reference in New Issue
Block a user