mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
* fix(usage): discover configured custom provider accounts with strict source scoping and locator env allowlist Host Usage listings previously scanned only the daemon's default login stores, leaving custom Claude and Codex providers configured with their own CLAUDE_CONFIG_DIR, CLAUDE_SECURESTORAGE_CONFIG_DIR, or CODEX_HOME invisible in Usage until one of their agents was opened. Host Usage now discovers enabled providers that configure usage-locator environment variables, while enforcing two strict security boundaries: - Provider-matched dispatch: each configured provider scope is sent ONLY to usage sources whose declared `providers` list includes that provider's base provider ID (never broadcast to unrelated or third-party usage plugins). - Explicit locator env allowlist: only non-secret config-directory / credential-store locator environment variables (including CLAUDE_CONFIG_DIR, CLAUDE_SECURESTORAGE_CONFIG_DIR, CODEX_HOME, OPENCODE_CONFIG_DIR, XDG_CONFIG_HOME, XDG_DATA_HOME, HOME, etc.) cross into usage discovery. Raw auth tokens, API keys, and arbitrary custom env vars are stripped, and foreign-endpoint providers are excluded daemon-side. Also adds CLAUDE_SECURESTORAGE_CONFIG_DIR support to Claude Keychain route derivation and preserves cached usage, recovery history, sidebar summary, and source-toggle behavior across provider renames. Closes #3589 Co-authored-by: Qichang Zheng <qichang.zheng2000@gmail.com> * refactor(usage): keep provider env allowlist filtering solely inside UsageSourceRegistry * fix(usage): allow OPENCODE_DB in host usage discovery locator env allowlist --------- Co-authored-by: Qichang Zheng <qichang.zheng2000@gmail.com>