Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.

LANG-138: Initialize LocalAgent Box only on attachment or tool use - #61

Merged
RockChinQ merged 4 commits into
mainfrom
task/LANG-138-lazy-box
Oct 20, 2026
Merged

RockChinQ merged 4 commits into
mainfrom
task/LANG-138-lazy-box

Conversation

@RockChinQ

Copy link
Copy Markdown
Member

Closes LANG-138

Tracking: LANG-138, child of LANG-131.

Changes

Single prepare lock; explicit export_box_files(paths), delivery failure latch, and no implicit finish/export. Includes isolated loopback SDK regression; no real model or container calls.

Already upstream

Core #2706/#2718/#2725 and SDK #183 remain untouched. Summary transaction and explicit selected-path export protocol preserved.

Tests

162 passed; plugins-final.log.

n/
class PluginContainer(pydantic.BaseModel):

../../../../langbot-plugin-sdk/src/langbot_plugin/runtime/plugin/container.py:100
/home/rock/multica_workspaces/langbot-app-edb069796238/lang-131-daf85ff93baf/workdir/langbot-plugin-sdk/src/langbot_plugin/runtime/plugin/container.py:100: PydanticDeprecatedSince20: Support for class-based config is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class ComponentContainer(pydantic.BaseModel):

../../../../langbot-plugin-sdk/src/langbot_plugin/api/proxies/query_based_api.py:11
/home/rock/multica_workspaces/langbot-app-edb069796238/lang-131-daf85ff93baf/workdir/langbot-plugin-sdk/src/langbot_plugin/api/proxies/query_based_api.py:11: PydanticDeprecatedSince20: Support for class-based config is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class QueryBasedAPIProxy(pydantic.BaseModel):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
162 passed, 10 warnings in 5.41s

Risks

Single prepare lock; explicit export_box_files(paths), delivery failure latch, and no implicit finish/export. Includes isolated loopback SDK regression; no real model or container calls.
No actual Docker, real-model, deployment or release validation; no CI wait.

Reproduce focused checks

cd Runner/LocalAgent && python -m pytest tests/test_box.py tests/test_box_lazy.py tests/test_box_recovery.py tests/test_runner.py tests/test_shared_runtime.py -q

Early restricted-sandbox runs used an external polling-loop harness for thread wakeups; final busy/SDK/LocalAgent regressions ran without that harness after network was enabled.

@RockChinQ
RockChinQ merged commit f1fc2ed into main Oct 20, 2026
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant