Why: a composed base binary must apply plugin startup defaults and plugin-owned flags without a downstream main.
Evidence: go test ./pkg/extension/ ./cmd/agent-system/ -count=1 (SELF, this commit's parent tree plus these files).
Impact: blank-imported plugins can set HostOptions and a CLI hook; GET /api/registry gains a compiled id list; explicit serve flags still win.
Refs: plugins/registry compose deploy
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: RDM's sandbox policy must run after HostOptions are merged and be able to refuse startup when bwrap is missing.
Evidence: go test ./pkg/extension/ ./cmd/agent-system/ -count=1 passed on this tree (SELF).
Impact: InProc.Prepare and PrepareCompiled; serve applies plugin rewrites before app.Run.
Refs: feature/svc-plugin-host-options
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: waitRunTerminal can return before run.completed is stored, so that event may land between the appended tool output and the child events.
Evidence: CI run 3274 failed twice on TestRunProcessEventsAreOrderedAndBoundToConversation with run.completed ahead of the child progress and result. Local go test of that test passed after this assertion.
Impact: the test still rejects leaked child tool output and still requires child progress then result, in that order.
Refs: Agent-System-Backend pulls/201
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen
merged commit 9fd079388b into main2026-10-15 03:54:16 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
摘要
组合二进制需要基座接受插件声明的启动默认值、专属旗标和启动前准备,且不覆盖调用方显式参数。
InProc.HostOptions/CLIHook/Prepare,以及MergeHostOptions、RegisterCLIFlags、RunCLIHooks、PrepareCompiled。2.14.0-experimental,保留2.13.0的账户目录接口。GET /api/registry增加compiled插件 id 列表。Review
作者审阅
origin/main...8c60ed0(5 个文件)。布尔默认值按“任一为 true 则 true”合并;ExecBackend冲突时报错。已访问的 CLI 旗标优先于插件默认。Prepare在合并之后运行,错误拒绝启动。CLI 钩子看到的是解析后的旗标值,早于配置文件合并;这与 RDM 自有bootstrap-admin使用旗标数据目录的既有行为一致。未发现应阻塞合入的问题。合入仍以本 PR 当前 HEAD 的 CI 为准。证据
本地
go test ./pkg/extension/ ./cmd/agent-system/ -count=1在合并origin/main之后通过(SELF)。权威结果是本 PR HEAD 的 CI。