Repository navigation
fix(agent): diagnose empty replies and harden ask lifecycle - #170
Merged
Merged
Conversation
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.
概要
补齐空响应诊断,区分上游未返回内容、内容未被组装及未知响应结构,并按实际原因显示重试提示。修复工具参数缺失及询问跳过后的运行生命周期,让用户重新发送消息时能够沿用已有进度。
关联文档
类型
变更内容
read仅将字段明确的单文件参数补成files;ask仅生成缺失的中性 ID,拒绝无效或重复的显式 ID。补齐后的询问仅认用户所选选项的显式mode,不推断审批选项或权限档位。验证
pnpm prepr(macOS;退出码 0)。cargo test --workspace:1469 通过、3 个既有忽略;Rust fmt / clippy 通过,无 warning。git diff --check通过。风险与迁移说明
run:retry.reason、ask:opened.explicit_mode_only为可选字段;旧完整参数继续兼容。跳过为独立动作,在审批判定前处理;不会生成批准语义或提升权限。无需数据迁移。3 个忽略项为现有真实额度探测、macOS 通知探测及技能缓存失效回归。前端构建仍有现有
@tauri-apps/api/window同时静态/动态导入的 Vite 提示。当前本地验证只覆盖 macOS;Windows/Linux 由 CI 复核。