Skip to content

feat(environments): support existing Linux virtual machines - #245

Merged
KaiEureka merged 8 commits into
mainfrom
codex/vm-ssh-environments
Oct 24, 2026
Merged

KaiEureka merged 8 commits into
mainfrom
codex/vm-ssh-environments

Conversation

@KaiEureka

@KaiEureka KaiEureka commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Adds an Environment adapter for existing Linux virtual machines reached through OpenSSH. Commands and file operations reuse the current local environment implementation in the guest. Durable operation IDs recover original results after SSH interruptions, and cancellation stops owned descendants before returning the environment.

Binary transfers stream beyond command-output limits and publish through owned staging on the destination filesystem. Host keys remain strictly verified. VM connection settings and path validation live in adapters/vm_config.py, with public imports supplied through opencollab.environments. English and Chinese guides cover preparation, execution, recovery and the opt-in SSH tests.

Independent review found and repaired operation admission after cleanup during initial SSH setup. Download cleanup now waits for transfer, unpacking and publication, and retains failed transfer ownership for a later termination retry.

Validation covers real Linux SSH execution, interrupted uploads, setup and cleanup races, binary and permission-preserving transfers, real subprocess termination failure and retry, archive safety, package imports and architectural dependency checks. #246 adds machine allocation and #247 connects public execution profiles.

Initialize workspace identity during recovery and preserve temporary file ownership when callers cancel after creation. Apply archive permissions through the open write descriptor so unreadable modes survive transfers.
@KaiEureka
KaiEureka marked this pull request as ready for review October 24, 2026 10:11
@KaiEureka
KaiEureka merged commit ca82ac9 into main Oct 24, 2026
13 checks passed
@KaiEureka
KaiEureka deleted the codex/vm-ssh-environments branch October 24, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant