lulululu-debug opened a new pull request, #216:
URL: https://github.com/apache/casbin-gateway/pull/216

   ### What
   Adds a "switch provider" action to the Agent list page: pick a configured 
channel and Gateway writes it, as the upstream provider, into that agent's own 
config file (Claude Code → settings.json, Codex → config.toml) via the PR215 
agentconfig writer. This is the first user-facing consumer of that writer.
   ### Changes
   - New POST /api/switch-agent-provider: verifies the target is a discovered 
installation (so it can't write into an arbitrary account's home), loads the 
channel by channelId, maps it to an agentconfig.Provider (the key stays 
server-side), calls agentconfig.Switch, and returns whether the config changed 
and whether the original was backed up.
   - Agent list entries gain a switchable flag indicating which agents can be 
switched.
   - agentconfig exposes Supports(agentID).
   - New "Provider" column in the Agent list: a channel dropdown + 
confirm-to-switch button, shown only for switchable rows.
   - Result surfaced as a toast: provider switched / already selected 
(idempotent) / original config backed up + written path.
   - Added English and Chinese strings.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to