Repository navigation
Replies: 2 comments
|
Update: a third community plugin hit the same wall. |
|
第 1 条我能给你一条今天就能让 绕法:UI 走 slot,数据自己起路由白名单挡住的是 settings 的数据面( 所以可以把两半拆开:
我们(一个仓库外的第三方插件)在 DSH Web 里的管理页就是这么落地的,跑在真 DSH loop 上: 这条能立刻解掉你评论里那个"卡片永远 loading"——loading 卡死的原因是它在等一个永远不会到来的 代价必须说清(我们付了):你会丢掉 (你评论里那个 应该去汇合的地方#3114 已经把第 1 条写成了完整 RFC,带具体 API 设计: 你手上有那份 RFC 最缺的东西:被卡住的真实插件名单。 到目前为止这份名单是:
再加上 第 2 条我没有增量错误码到文案的映射(QUOTA / RATE_LIMIT / AUTH / ...)+ 可展开的原始详情,方向和实现你都做完了,而且 边界与利益相关我们不修 DSH 自家组件——apiproxy、settings seam、client runtime 都在 DSH 里。上面第一节是绕法不是修复,第二节是串联。 利益相关:我维护 pi2dsh(Pi 生态兼容层)。这条不推销: |
Uh oh!
There was an error while loading. Please reload this page.
Two small upstream improvements that community plugins currently work around with local patches. Since external PRs are not accepted at the moment, posting here for the team's consideration (upvote if useful).
1. Let a plugin expose its own settings namespace
packages/host/apiproxy/src/api-proxy.tsserves only namespaces on the hard-codedWEB_SETTINGS_NAMESPACESallowlist to configuration clients. A plugin (e.g. ourdsh-sampling-sliders) that registers a namespace via the settings seam getssettings-not-exposedon every browser write. The code comment already marks "moving that declaration tosettings.register()" as deferred work - this is a small step in that direction (allowlist addition, or an explicitexposeoption onregister()).2. Chinese-friendly, actionable model failure copy
displayFailureMessage(packages/client/runtime) currently projects raw English provider text (e.g. "Insufficient Balance") into the GUI. A code-to-copy map (QUOTA / RATE_LIMIT / AUTH / TIMEOUT / TRANSPORT / CONTEXT_WINDOW_EXCEEDED / SERVER ...) with concrete suggestions, plus an expandable raw-detail fold in the turn-error card, makes failures actionable. The harness already classifies failures into stable codes, so no free-text parsing is needed.Implementation is ready on fork branches:
Both improvements are already usable today as community plugins:
All reactions