You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve structured sandbox-denial metadata for command and filesystem-worker failures instead of collapsing them into generic tool errors.
Present sandbox-blocked tool rows and output panels with dedicated warning copy, while suppressing the duplicate generic failed-turn banner.
Keep strict RuntimeEvent persistence lossless by omitting absent context-budget counters, and use bundle-safe Node builtin imports required by the desktop build.
Verification
npm run build:test
npm run typecheck
Focused Core, Runtime, UI, and Desktop tests: 294 passed
Biome check for all 29 changed TypeScript files
npm run test:checks -w @maka/desktop (console, accessibility, and copy checks)
Desktop development app starts successfully
Review focus
The new status is diagnostic only: it does not automatically retry or elevate a command.
Ordinary filesystem permission errors remain generic failures; only explicit or likely sandbox denials receive the sandbox-specific presentation.
Partial command effects remain visible, and the copy asks users to inspect output and workspace state before retrying.
[P2] filesystem-worker/operations.ts calls isLikelySandboxDenial with sandboxed: true even when the worker is running with sandboxType: none. Under bypass or another unrestricted profile, an OS ACL or TCC error containing Operation not permitted is persisted and shown as a sandbox denial. Only emit this signal when the client actually used macos-seatbelt or linux, and cover the unrestricted case.
[P2] Background shell_run failures do not get the new row treatment. overlayShellRunUpdates() replaces the result but keeps the original Bash item status as completed; isSandboxDeniedTool() then rejects it because the item is not errored. A failed background command with sandboxDenial therefore looks completed while collapsed. Derive the presentation from the structured result, or update the projected status, and test the overlay-to-summary path.
[P2] isSandboxOnlyToolFailure() also suppresses the turn failure banner when errorClass is missing or unknown. That does not establish that the turn failed because of the sandboxed tool. A sandbox-denied tool followed by an unrelated unknown provider or transport failure loses both failure labels. Limit suppression to explicit tool/sandbox error classes and keep unknown failures visible.
The schema and propagation seam otherwise look sound, and CI is green.
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
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.
Summary
Verification
npm run build:testnpm run typechecknpm run test:checks -w @maka/desktop(console, accessibility, and copy checks)Review focus
中文说明
改动内容
undefined后导致 RuntimeEvent 无法持久化的问题。行为边界
“可能被沙箱阻止”只是一项诊断结果,不会自动提权或重试。Agent 仍需发起新的、显式声明权限的工具调用,并经过既有审批流程。普通运行失败不会被错误标记为 sandbox denial。
验证结果
构建、全仓类型检查、Biome、Desktop 静态检查,以及 294 个相关自动化测试均已通过。