Auto resume wakeable sandbox snapshots for admins - #918
Merged
yaozheng-fang merged 1 commit intoAug 17, 2026
Conversation
yaozheng-fang
approved these changes
Aug 17, 2026
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.
背景
管理员打开 Sandbox/智能体列表时,过期但可恢复的 sandbox snapshot 会显示为“可唤醒”,需要用户手动点击唤醒。这个 PR 将管理员列表页的可恢复 snapshot 自动拉起,避免用户感知到“可唤醒”中间态。
变更
autoResumeSnapshots=true,同时后端默认兜底,避免旧前端或缓存漏传参数时仍显示“可唤醒”。测试
uv run pre-commit run --files frontend/src/adk/sandbox.ts frontend/src/ui/MyAgents.tsx frontend/src/ui/new-chat-modes/NewChatAgentPicker.tsx frontend/tests/myAgents.test.mjs frontend/tests/sandboxThreadsClient.test.mjs tests/cli/test_frontend_sandbox.py veadk/cli/frontend_sandbox.pyuv run pytest tests/cli/test_frontend_sandbox.py -qnpm testnpm run build备注
npm run build仍有既有 Vite chunk size / dynamic import warning,本 PR 未引入新的阻断错误。.gitignore既有改动。