Fix backend stability and local sandbox regressions#1575
Open
corazzione wants to merge 1 commit intobytedance:mainfrom
Open
Fix backend stability and local sandbox regressions#1575corazzione wants to merge 1 commit intobytedance:mainfrom
corazzione wants to merge 1 commit intobytedance:mainfrom
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.
Fixes #1095
Fixes #1261
Fixes #1452
Fixes #1473
Fixes #1513
Fixes #1543
Summary
This PR batches several backend stability and local-sandbox fixes that were reported independently but share the same execution path.
Included fixes
tool_searchreturns their schema so the tool becomes callable on the next turnmake_lead_agentuses the same middleware/features as the reusable factory entrypointuploads/listtimeouts after heavy uploads/are handled as normal chat inputsandbox.mountspaths in LocalSandbox, while still enforcing read-only mounts at the tool gatewrite_filetool arguments sopathandcontentare the primary required fields exposed to the tool schemaRoot causes
write_fileexposed an unuseddescriptionfield as the first required schema parameterValidation
./.venv/Scripts/python.exe -m pytest tests/test_tool_search.py tests/test_create_deerflow_agent.py tests/test_lead_agent_model_resolution.py tests/test_file_conversion.py tests/test_feishu_parser.py tests/test_sandbox_tools_security.py -q./.venv/Scripts/python.exe -m ruff check packages/harness/deerflow/tools/builtins/tool_search.py packages/harness/deerflow/agents/factory.py packages/harness/deerflow/agents/features.py packages/harness/deerflow/agents/lead_agent/agent.py packages/harness/deerflow/utils/file_conversion.py packages/harness/deerflow/sandbox/tools.py packages/harness/deerflow/sandbox/local/local_sandbox_provider.py app/channels/feishu.py tests/test_tool_search.py tests/test_create_deerflow_agent.py tests/test_lead_agent_model_resolution.py tests/test_file_conversion.py tests/test_feishu_parser.py tests/test_sandbox_tools_security.pycmd /c scripts\\run-with-git-bash.cmd ./scripts/test_gateway_reload_flags.sh