Repository navigation
fix: keep the finish-required plugin across a paused sandbox - #832
Merged
Merged
Conversation
Contributor
|
Warning Your comment is too long (maximum is 65536 characters), so the coverage report was not added. See the job log for how to reduce it. |
2 tasks
all-hands-bot
approved these changes
Dec 1, 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.
Prompt and plugin preset runs pass the agent server a small local plugin that makes the run end with the finish tool. The service wrote it to
/tmpin the sandbox. Only the workspace volume survives a paused sandbox, so after a resume the conversation could not load its plugins and refused the next message with HTTP 500 (Local plugin path does not exist: /tmp/automation-<run id>-finish-required).For an event automation with
destination: continue_conversationthis meant that any event arriving after the sandbox had been paused started a new run in a new sandbox, with a fresh clone, instead of continuing the conversation. A message sent to such a conversation from the UI after a pause takes the same path in the agent server; that case was not tried.The plugin now goes to
/workspace/.automation/automation-<run id>-finish-required: on the workspace volume, next to the project directory and outside any checkout.Compatibility: conversations started before this change keep the
/tmppath they were created with. They behave as before (the next event after a pause falls back to a new run), and the new run's conversation gets the new path. Nothing else in the start request changes. Local mode does not write this plugin and is not affected.Tests:
tests/test_finish_plugin.pypasses (4 tests), including a new test that the plugin directory is on the workspace volume and outside the project directory; that test and the path test fail without the change. Pre-commit passes on the changed files. The tests that need the PostgreSQL container were not run locally. Seen live on a self-hosted install running 1.30.2: sandbox resumed in 13 seconds, the turn got the 500 above, and a second run started. On the same install, two conversations were started through the app server with the plugin files this code generates, at the old and at the new path, then paused, resumed and sent one more message: the/tmpone answered 500, the/workspace/.automationone accepted the message and the agent carried on in the same workspace. The automation service image from this PR has not been deployed to a live install.Jev-Fast-Audit
⚡ Jev fast audit · estimates · 0.25s · commit 1a47f6e
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage: complete supplied coverage; 6/6 hunks, 3/3 files.
All estimates and evidence