Skip to content

feat(acp): separate prompt acceptance from session work completion - #189

Draft
YoungSx wants to merge 24 commits into
mainfrom
feat/acp-v2-session-runtime
Draft

feat(acp): separate prompt acceptance from session work completion#189
YoungSx wants to merge 24 commits into
mainfrom
feat/acp-v2-session-runtime

Conversation

@YoungSx

@YoungSx YoungSx commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

ACP v2 的 prompt 回复只表示已接收。此变更用同一会话状态 owner 分别记录接收与完成,直到权威 idle 才结束调用;取消期间仍接收尾部更新。V1 仍按原终态回复完成,公开入口继续在 connect/send 前拒绝 V2。

连接令牌贯穿请求写入、session/cancel 和取消时的入站回复清理。旧连接排队写入及迟到结果不会取消或完成新连接。元数据只在 schema 明确允许的位置按错误缺省处理;state_update 扁平序列化不重复输出判别字段或 _meta。

包含 #184#187 的协议前置及 #186 的取消/权限归属修复。权限提示沿原请求 callback 响应,旧提示、排队事件和迟到 dismiss 不会影响新请求;WASM 自动化在原生首帧后启用语义树。Refs #149#148,不关闭总单。

验证:当前整合提交 0b107f5f 的 SDK 901/901 通过,Release 分析器构建零警告、零错误。取消跨连接、metadata 和重复字段探针均先红后绿;共享权限 UI 的 Presentation 完整套件 3360/3360 通过。包消费及各平台门禁由本次提交 CI 再次核验。

保持 draft:内部确定性协议对端验证不能替代真实第三方 V2 Agent。公开 live V2、生产 bridge 和 Windows 登录 GUI 未验收。

Default only an absent v1 type to agent, reject non-string discriminators, and preserve unsupported strings and payload fields. Share version-aware authentication serialization across DTO, collection, and initialize roots so unknown fields cannot override the negotiated method identity.

Add raw initialize transport regressions, presentation selection coverage, and schema round-trip properties. Validation: 593 SDK tests, 26 presentation authentication tests, analyzer and package validation, external nupkg consumer, and a 9-case failing whitelist mutation.

Refs #147
Apply negotiated identifiers and required message identities across direct, collection, and parent contracts. Preserve unknown command and resource metadata, honor explicit schema recovery rules, and keep v1-only state off draft wire.

Keep live v2 disabled and preserve the published serialization surface. Validate 680 SDK tests, package compatibility against 1.0.0, and 38 draft consumer diagnostics; version-rule mutations fail 45 targeted cases.
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
salmonegg Ready Ready Preview Sep 9, 2026 3:17pm UTC

Wait for the native canvas and splash removal within the existing boot deadline before enabling accessibility once. Uno 6.7.103 (cd452e3ee242c9a2a8dee5e65ad8088b6f5dbf83) can retain initial sibling bounds when ancestor layout moves after early semantic activation, causing pointer gates to click an adjacent card.

Validated against the same Debug product with CPU throttle 4: early activation fails, late activation passes, restoring early fails, restoring late passes. The unchanged two-round pointer gate passes with the final helper at CPU rates 4 and 1. Product focus code is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant