You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by "lulululu-debug (via GitHub)" <gi...@apache.org> on 2026/08/20 04:53:57 UTC
[PR] feat(agent): switch a discovered agent to a channel provider [casbin-gateway]
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: commits-unsubscribe@casbin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org
Re: [PR] feat(agent): switch a discovered agent to a channel provider [casbin-gateway]
Posted by "hsluoyz (via GitHub)" <gi...@apache.org>.
hsluoyz closed pull request #216: feat(agent): switch a discovered agent to a channel provider
URL: https://github.com/apache/casbin-gateway/pull/216
--
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: commits-unsubscribe@casbin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org