25 Commits
Author SHA1 Message Date
Sumit Gautam 84389bf841 Merge branch 'dev' 2026-06-27 21:45:24 +05:30
Sumit Gautam 783c571b20 Unify User-Agent across driver + browser to stabilize cf_clearance
cf_clearance is bound to the exact UA that earns it, but three surfaces
touched one cookie with three different UAs: the curl_cffi driver
(impersonate=chrome -> macOS Chrome/146), the headless refresh
(Windows Chrome/131), and the interactive login (Playwright native,
Windows Chrome/148). The driver always replayed clearance under a UA no
browser had earned it with, so Cloudflare distrusted it and gated every
turn behind a Turnstile -- surfacing as hourly clearance-expired churn
once that gate became fatal.

Collapse all three onto one string (copilot/useragent.py):
- driver pins a stable curl_cffi TLS profile (chrome146) and overrides
  the UA + client hints to Windows Chrome/148.
- both browser launches (headless and visible) advertise the same UA,
  so clearance earned by either is reusable by the driver.

Standardize on 148 (Playwright's bundled Chromium) so the browser UA
override does not contradict its native Sec-CH-UA hint. Re-auth path is
unchanged -- it now refreshes without degrading clearance.
2026-06-27 21:45:23 +05:30
Sumit Gautam 87baede9df Readme update 2026-06-24 22:05:01 +05:30
Sumit Gautam 9923a3b79b Merge branch 'master' of https://github.com/sumitgautam0101/WIndows-Copilot-API 2026-06-24 17:58:58 +05:30
Sumit Gautam 5f9c40919d Merge branch 'dev' 2026-06-24 17:57:33 +05:30
Sumit Gautam c0232f6853 gitignore mod 2026-06-24 17:55:22 +05:30
Sumit Gautam 878a2ff1ec Automatic CF clearance 2026-06-24 17:53:51 +05:30
Sumit Gautam dfbe3a9111 Google + msft account oauth 2026-06-24 13:38:14 +05:30
Sumit Gautam 6929491714 Readme Update 2026-06-23 23:57:47 +05:30
Sumit Gautam 68ac93aed0 Merge branch 'master' of https://github.com/sumitgautam0101/WIndows-Copilot-API 2026-06-23 23:44:00 +05:30
Sumit Gautam dd31f8f10c gitignore update 2026-06-23 23:04:21 +05:30
Sumit Gautam 4094d98110 Patch + diagnostic 2026-06-23 22:12:56 +05:30
Sumit Gautam da293cab9c CLI bug fix 2026-06-22 20:51:23 +05:30
Sumit Gautam 27f251ac51 Add Docker deployment support 2026-06-22 20:35:56 +05:30
Sumit Gautam 45d0da73c2 Readme update 2026-06-22 15:58:06 +05:30
Sumit Gautam ca9ee6bc15 Rate limiting 2026-06-22 15:11:21 +05:30
Sumit Gautam 854e8e6b10 GPQA + Troubleshooting 2026-06-22 13:50:43 +05:30
Sumit Gautam 3ca289ef7c Invalid event troubleshooting 2026-06-22 13:46:16 +05:30
Sumit Gautam 273c63cadf Merge branch 'yurilopes-codex/fix-host-port-env' 2026-06-22 09:39:17 +05:30
Sumit Gautam 2552683d47 Challenge bug fix 2026-06-21 13:00:16 +05:30
Sumit Gautam 43880f466a Stress test 2026-06-20 17:43:18 +05:30
Sumit Gautam d4a40caacf Installation setup 2026-06-20 14:37:44 +05:30
Sumit Gautam 2a8654a6e4 Token handling fix 2026-06-19 20:20:23 +05:30
Sumit Gautam f790ccbe04 Stable Client + OpenAI API 2026-06-19 18:54:38 +05:30
Sumit Gautam 1431ccafa5 First Stable Copilot API 2026-06-19 16:36:35 +05:30