8 Commits
Author SHA1 Message Date
raucao 4f3c4334bd Use only normal API keys for OpenRouter spend
OpenRouter now rejects management keys from the browser on both
/api/v1/keys and /api/v1/analytics/query, so the management-key flow can
no longer work in the extension. Read the configured key's own usage from
GET /api/v1/key instead, which returns UTC daily, weekly, and monthly
buckets and works from the browser.

Drop the key-type selection, key listing/selection, pagination, and the
management/analytics endpoints. Validate the key against /key before
persisting, and write a fresh record so legacy keyType/keyIds fields are
dropped. Keep the browser-block hint for anyone still storing a
management key.
2026-11-16 22:16:35 +04:00
raucao fc417b20e7 Stop sending target cookies from the HTTP service
Extension pages with host permissions are treated as same-origin, so the
target origin's cookies rode along on every request. OpenRouter's
Clerk-protected analytics endpoint then tried to read the management key in
the Authorization header as a session JWT and answered 403, breaking the
spend total on the dashboard.

Default the shared fetch to credentials "omit" (still overridable per call),
and surface OpenRouter's own error message for failed requests instead of a
generic status summary.
2026-11-16 12:22:55 +04:00
raucao 14b43ebfa6 Ignore navigation-cancelled requests and recover on restore 2026-10-29 23:50:10 +04:00
raucao 5643de9915 Support extension auth via launchWebAuthFlow and package app as extension page 2026-10-03 19:08:22 +02:00
raucao 8a0d8dde36 Add site icon fetching/caching, Discourse icons 2026-10-03 12:31:14 +02:00
raucao 44f4d78bfa Add Discourse reconnect/remove and harden auth callback 2026-10-02 14:08:37 +02:00
raucao a57336351d Add dev CORS proxy and selectable Bitcoin price source 2026-10-02 13:33:08 +02:00
raucao cb4373d05b Add Discourse notifications widget 2026-10-02 12:45:36 +02:00