ccproxy-api icon indicating copy to clipboard operation
ccproxy-api copied to clipboard

fix(copilot): add missing custom_path param to save_credentials

Open marcobazzani opened this issue 6 months ago • 1 comments

Fixes #67

Problem

DeviceCodeFlow.run() (and other OAuth flows) call provider.save_credentials(credentials, save_path) with two arguments. ClaudeOAuthProvider and CodexOAuthProvider both accept custom_path: Any | None = None, but CopilotOAuthProvider.save_credentials() only accepted one positional argument, causing:

TypeError: CopilotOAuthProvider.save_credentials() takes 2 positional arguments but 3 were given

This broke ccproxy auth login copilot entirely on v0.2.10.

Fix

Add custom_path: Any | None = None to CopilotOAuthProvider.save_credentials() for interface compatibility. The Copilot provider ignores the value (it always writes to its own storage) — this is purely a signature alignment fix.

How it was introduced

Commit 9e44f249 added --file / custom save-path support to the OAuth flows and updated the Claude and Codex providers but missed the Copilot provider.

marcobazzani avatar May 11 '26 09:05 marcobazzani

so ? will you merge it ?

marcobazzani avatar May 19 '26 08:05 marcobazzani