Repository navigation
fix(api): 修复本机命令执行详情无法加载 - #455
Merged
Merged
Conversation
Qiyuanqiii
force-pushed
the
Qiyuanqiii/activity-network-contract
branch
5 times, most recently
from
October 23, 2026 16:58
f4a923e to
13475b1
Compare
Qiyuanqiii
force-pushed
the
Qiyuanqiii/activity-network-contract
branch
from
October 23, 2026 16:59
13475b1 to
9d4cc2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本机命令已经执行成功时,执行详情仍会显示加载失败:API 返回合法的
network: "host",但客户端和 OpenAPI 只接受disabled。现在两处响应契约都准确接受运行时支持的disabled | host,恢复命令详情、输出预览和保存 stdout 的读取。未知值与原始敏感字段仍被拒绝。依赖 #454,保持未合并。该依赖用于整合共享的 OpenAPI 生成文件,本 PR 只包含执行详情契约修复。
验证:新增 host 客户端用例和 OpenAPI 枚举断言在旧实现下失败,修复后通过;4 项相关客户端用例、Go OpenAPI 文档/生成/实际路由测试、TypeScript/Vite 生产构建及 API 生成检查通过。Astra 子 agent 审阅了两处生产改动、相关测试及生成差异,未发现问题。
真实 Windows Chrome + 生产 Go API/SQLite + 本机 PowerShell 执行,同一条已保存命令先后打开旧、新 bundle:旧页面在 HTTP 200 下仍报错,重试无效;新页面显示输出,并成功展开 87 B 已保存 stdout。没有替换 API 响应或修改 DOM。
已保存输出截图及验证范围。未运行原生打包窗口。
2026-10-22 基线同步:以保留祖先的合并方式同步 #454(
a07575e9ee863f94cf65d5add5623d27b7358d69),继承 #450 的113756e10125a84c619e226b68ec840415513eef及 #432 的fc0935d6fc03ca7abccbd148ce52d26c2bc154f8Chrome 握手/DMG Resource busy 修复。相对本 PR 同步前提交,仅增加该修复的 4 个文件;diff 检查通过,原功能说明、验证记录和截图保留。本次未重复运行测试或截图;最新提交的 CI 尚未完成,不能沿用旧提交的结果。CI 验证补充(
3d0f25e0):原 Windows 2022 Edge 检查 的握手返回context deadline exceeded。测试此前在连接后才创建既有的 45 秒期限,连接会使用无期限调用的 5 秒回退;现在连接和初始化共享这 45 秒预算,继续执行矩阵、故意回归检测和清理断言。本机 Windows/amd64、Go 1.26.10、真实 Edge 155.0.4283.62 下,超过 5 秒的成功握手、期限/主动取消,以及真实桌面/移动矩阵和故意回归检测均通过。CI 原失败环境为 Windows Server 2022、Edge 155.0.4283.45;该环境的修复结果以最新提交的 CI 为准。