网关增加启用/禁用开关,并让 sub-agent 按生效状态选择正确模型
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: Shinku
**客户端版本**: 0.1.6
---
## 使用场景
当前网关需要支持启用和禁用控制,但 sub-agent 的模型选择需要严格跟随网关的最新生效状态。
## 诉求
- 为网关增加启用 / 禁用开关
- 开关状态保存并生效后,sub-agent 只从当前启用的网关或模型中进行选择
- 已禁用的网关不应再被 sub-agent 命中;重新启用后可恢复参与选择
- 开关显示状态和实际路由行为需要保持一致
## 建议方案
- 在网关配置层增加启用 / 禁用字段,并提供对应操作入口
- 在 sub-agent 的选模逻辑中读取已生效的网关状态,过滤掉禁用网关下的模型
- 在状态变更后补齐必要的刷新或缓存失效逻辑,避免前后端状态不一致
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN
Contributor guide
Research direction
Locate the gateway configuration and its enable/disable operation entry point, then trace the sub-agent model-selection path and any refresh or cache handling. Verify that persisted status, the displayed switch, and routing all agree: disabled gateways are excluded, and re-enabled gateways participate again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, backend-api-design, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100