Skip to content

fix: keep the finish-required plugin across a paused sandbox - #832

Merged
ak684 merged 1 commit into
mainfrom
alona/finish-plugin-survives-pause
Dec 3, 2026
Merged

ak684 merged 1 commit into
mainfrom
alona/finish-plugin-survives-pause

Conversation

@ak684

@ak684 ak684 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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 /tmp in 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_conversation this 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 /tmp path 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.py passes (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 /tmp one answered 500, the /workspace/.automation one 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
Estimate Likelihood / value Direct evidence
SQL injection 4.0% No direct hunk selected
Command injection 35.0% No direct hunk selected
Weakened authentication 4.0% No direct hunk selected
Weakened authorization 7.0% No direct hunk selected
Contract regression 18.0% No direct hunk selected
Data loss 7.0% No direct hunk selected
Sensitive data disclosure 4.0% No direct hunk selected
Unexpected data transfer 4.0% No direct hunk selected
Credential misuse 5.0% No direct hunk selected
Untrusted instruction authority 3.0% No direct hunk selected
Package source redirection 3.0% No direct hunk selected
Unverified remote execution 4.0% No direct hunk selected
Privileged environment access 5.0% No direct hunk selected
Security assessment bypass 4.0% No direct hunk selected
Prohibited workload 2.0% No direct hunk selected
Primary concern None selected; confidence 81.0% No primary concern to locate

@github-actions github-actions Bot added the type: fix A bug fix label Dec 1, 2026
@ak684
ak684 requested a review from all-hands-bot December 1, 2026 21:23
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Coverage

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.

@ak684
ak684 marked this pull request as ready for review December 2, 2026 17:41
@ak684
ak684 merged commit 6288f79 into main Dec 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants