Repository navigation
Sandbox example: opencode server in a sandbox, attached from the laptop - #88
Merged
Merged
Conversation
Closes #85 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
…eanup script Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task
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.
Closes #85
Part of prokube/pkui#4678
Summary
sandboxes/opencode-server/README.md: create a sandbox frompk-default-small-memory, startopencode serve --port 4096in tmux (opencode is in the sandbox image),pk sandbox forward opencode 4096,opencode attach http://localhost:4096-memorypreset: the server and its sessions survive suspend and resume; with volume-only presets it must be restarted.ci/cleanup.py(README-only example); install and login steps link tosandboxes/README.md(Sandbox examples index #92). Links to../claude-code-worker/(Sandbox example: Claude Code as a headless worker #91) for credential injectionTesting (hen-common-leedsichthys)
opencode servein tmux answers after suspend and resume withpk-default-small-memory; withpk-default-smallit is gone after resume (as documented)pk loginas developer1, CLI from prokube-sdksandboxv3/main+ Document and validate the CLEF Tetris demo end to end #74/feat: add CLEF-Flash SystemOne runtime #75):pk sandbox create opencode --preset pk-default-small-memory, server started over SSH asdeveloper(NODE_EXTRA_CA_CERTSpresent),pk sandbox forward opencode 4096 --local-port 14096,opencode run --attach http://localhost:14096wrote and ran/workspace/project/hello.pyin the sandbox (hostnameactor)pk sandbox forwardexits); after resume a newpk sandbox forwardreaches the same server, and its session from before the suspend is still listedpk sandbox forwardsaid so clearlyNot run
opencode attachTUI itself; the test usedopencode run --attachagainst the same server APIopencode auth loginin the sandbox; the test used one of opencode's free models🤖 Generated with Claude Code