• Stefy Lanza (nextime / spora )'s avatar
    Stop the admin provider UI from silently dropping cli_credentials_file; bump to 0.99.86 · 294a7273
    Stefy Lanza (nextime / spora ) authored
    The CLI credentials upload stored claude_config.cli_credentials_file server-side,
    but the path was then lost and CLI mode fell back to the OAuth2 credentials file:
    
    - uploadClaudeCliFile() only showed a toast; unlike its sibling
      uploadFileChunked(), it never mirrored the stored path into providersData.
    - saveProvider() posts providersData wholesale, and api_provider_save replaced
      the provider config outright, so a page loaded before the upload wiped the key
      on the next save.
    - There was no field for cli_credentials_file — it appeared only in help text —
      so the value was invisible and unrecoverable once lost.
    
    Preserve keys inside *_config blocks the client did not send, which fixes the
    whole class rather than this one key: any server-set key would have been dropped
    the same way. Only merges into a block the client actually sent, so a provider
    type change still drops the old block and nothing is resurrected. A key the
    client does send always wins, including falsy values like use_cli_mode=false.
    
    Add the missing text field (admin only — DB users keep CLI credentials in
    user_oauth2_credentials, not in claude_config), and mirror the upload result
    into providersData. The chunk endpoint now also returns config_path, the tilde
    form actually written to providers.json; file_path is absolute, so mirroring it
    would post back a value that disagrees with what the server stored.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    294a7273
Name
Last commit
Last update
..
admin_market.html Loading commit data...
admin_payment_settings.html Loading commit data...
admin_tier_form.html Loading commit data...
admin_tiers.html Loading commit data...
analytics.html Loading commit data...
autoselect.html Loading commit data...
billing.html Loading commit data...
cache_settings.html Loading commit data...
change_email.html Loading commit data...
change_password.html Loading commit data...
delete_account.html Loading commit data...
docs.html Loading commit data...
edit_config.html Loading commit data...
error.html Loading commit data...
forgot_password.html Loading commit data...
index.html Loading commit data...
login.html Loading commit data...
market.html Loading commit data...
paypal_connect.html Loading commit data...
pricing.html Loading commit data...
profile.html Loading commit data...
prompt_analytics.html Loading commit data...
prompts.html Loading commit data...
provider_quotas.html Loading commit data...
providers.html Loading commit data...
rate_limits.html Loading commit data...
reset_password.html Loading commit data...
response_cache.html Loading commit data...
rotations.html Loading commit data...
settings.html Loading commit data...
signup.html Loading commit data...
studio.html Loading commit data...
subscription.html Loading commit data...
traffic_visits.html Loading commit data...
usage.html Loading commit data...
user_autoselects.html Loading commit data...
user_index.html Loading commit data...
user_providers.html Loading commit data...
user_rotations.html Loading commit data...
user_tokens.html Loading commit data...
users.html Loading commit data...
verify.html Loading commit data...
wallet.html Loading commit data...