Skip to content

refactor(command): 移除 exec_command 返回体中无意义的 sandbox 字段 - #268

Merged
uvwt merged 1 commit into
mainfrom
refactor/remove-exec-sandbox-field
Nov 26, 2026
Merged

uvwt merged 1 commit into
mainfrom
refactor/remove-exec-sandbox-field

Conversation

@uvwt

@uvwt uvwt commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #262.

Remove the hardcoded, always-disabled sandbox metadata block from exec_command results (running and exited paths), along with the unused session.PreparationStatus / PrepareFunc plumbing that only existed to emit that static disclaimer.

  • Cuts repeated boilerplate context overhead on every exec_command invocation without changing any execution semantics or other result fields.
  • Adds cross-platform tests (TestExecCommandOmitsSandboxFieldAcrossExecutionModes) covering sync, auto (exited/running), and async paths.

Verification

  • gofmt, go vet ./..., Linux cross-compile check, go build ./cmd/agentdock, and unit tests for ./internal/tool/command/..., ./internal/app/..., ./internal/mcp/..., ./cmd/... passed locally.

@uvwt
uvwt merged commit a0eeff6 into main Nov 26, 2026
14 of 15 checks passed
@uvwt
uvwt deleted the refactor/remove-exec-sandbox-field branch November 26, 2026 16:33
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.

Option to omit the sandbox field from exec_command results (AGENTDOCK_EXEC_SANDBOX_FOOTER=0)

1 participant