picoclaw/pkg/providers/oauth
Thomas Beaudouin d9e643f472 fix: enable ChatGPT subscription (OAuth) in picoclaw
## Summary
- Always use chatgpt.com/backend-api/codex for OAuth/auth_method=token providers
- Handle response.output_text.delta streaming for Codex backend (fixes empty responses)
- Add PICOCLAW_CODEX_HTTP_DEBUG env var for opt-in HTTP request/response logging
- Simplify: remove ShouldUseCodexBackend (always returned true)

## Problem
- ChatGPT Plus subscriptions use OAuth tokens, which only work on chatgpt.com backend
- The Codex backend returns streaming text in response.output_text.delta events, but picoclaw
  was only parsing response.completed.output (which can be empty)
- This caused empty responses even when the model was generating text
2026-04-26 22:36:26 +08:00
..
antigravity_provider.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
antigravity_provider_test.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
claude_provider.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
claude_provider_test.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
codex_provider.go fix: enable ChatGPT subscription (OAuth) in picoclaw 2026-04-26 22:36:26 +08:00
codex_provider_test.go fix: enable ChatGPT subscription (OAuth) in picoclaw 2026-04-26 22:36:26 +08:00
types.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00