mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #338] [MERGED] feat: add sandbox logs API #360
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#360
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/338
Author: @zlzGithub-0801
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @yingdi-shan
Base:
main← Head:feat/sandbox-logs📝 Commits (1)
394f40afeat: add sandbox logs API📊 Changes
23 files changed (+1715 additions, -80 deletions)
View changed files
📝
services/gateway/internal/server.go(+3 -0)📝
services/gateway/internal/server_test.go(+3 -0)📝
src/api/generated/src/apis/sandboxes.rs(+28 -0)📝
src/api/generated/src/models.rs(+359 -0)📝
src/api/generated/src/server/mod.rs(+170 -0)📝
src/api/impls/image_build/tests.rs(+8 -11)📝
src/api/impls/mod.rs(+22 -0)📝
src/api/impls/sandbox.rs(+52 -0)📝
src/api/impls/template.rs(+5 -23)📝
src/api/openapi.yml(+91 -0)📝
src/api/proxy.rs(+52 -0)📝
src/api/server.rs(+26 -0)📝
src/image/buildkit/history.rs(+13 -12)📝
src/logging.rs(+11 -0)📝
src/orchestrator/service.rs(+77 -1)📝
src/orchestrator/tests.rs(+113 -0)📝
src/sandbox/backend.rs(+15 -0)📝
src/sandbox/envd.rs(+276 -4)📝
src/sandbox/firecracker/sandbox.rs(+18 -0)➕
src/sandbox/logs.rs(+315 -0)...and 3 more files
📄 Description
What
Add the E2B-compatible
GET /v2/sandboxes/{sandboxID}/logsAPI for querying logs from a running sandbox.Why
AgentENV previously had no sandbox log query API compatible with E2B. This allows callers to inspect envd operational logs and stderr without storing sandbox logs in host memory or persistent files.
Related issue
#5
Scope and non-goals
Included:
currentand rotated files./var/log/agentenv/envd.stderr.log.Excluded:
Design and behavior changes
For a running sandbox, AgentENV uses its sandbox-specific
EnvdInstanceto query the guest filesystem.Normal envd logs are read from:
These files contain structured envd logs collected by
svlogd.Envd stderr is read from:
Compatibility and operations
GET /v2/sandboxes/{sandboxID}/logsand corresponding generated server/models.Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetRisks and reviewer notes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.