IPC fix + Qwen + env profiles + OpenCode install overhaul + "p…#21
Open
thecodeassassin wants to merge 2 commits into
Open
IPC fix + Qwen + env profiles + OpenCode install overhaul + "p…#21thecodeassassin wants to merge 2 commits into
thecodeassassin wants to merge 2 commits into
Conversation
Contributor
thecodeassassin
commented
May 12, 2026
- IPC / firewall fix
- internal/run/run.go: IPC server now always starts (vault/kv need it). allow_domain handler only registered when firewall enabled. Extracted to newIPCServer.
- internal/ipc/server.go: added HasHandler() for testability.
- internal/run/run_test.go: two tests — IPC always created; allow_domain only with firewall.
- Qwen agent added
- README: Qwen listed as supported agent; exitbox run qwen shown.
- internal/agents/qwen/docker.go: now uses shared jstools.InstallDependencies.
- README path table includes Qwen managed dirs.
- Env profiles system
- New package internal/env/ (implied by imports).
- cmd/run.go:
- --profile flag: loads env vars from named profile; prepends to container -e flags.
- Auto-loads workspace default profile if set.
- internal/run/run.go:
- Options.EnvProfile field; passed into container as EXITBOX_ENV_PROFILE.
- cmd/config_cmd.go:
- config edit --profile NAME: profile-scoped config files, seeded from default.
- static/build/docker-entrypoint:
- If EXITBOX_ENV_PROFILE set, uses /profiles/ config dir; seeds from default on first run.
- internal/wizard/tui.go:
- New "Env profiles" step in setup wizard (informational, lists profiles, points to CLI).
- OpenCode install: no more pre-downloaded tarball
- internal/agents/opencode/docker.go:
- Dockerfile now fetches release tarball + SHA-256 from GitHub API at build time (no curl | bash pattern).
- Drops old pre-build download logic.
- internal/agents/opencode/version.go:
- Latest version from npm registry (@latest), not GitHub releases.
- internal/agents/opencode/opencode.go:
- NpmPackageName() for per-arch npm packages.
- Tests updated to match new behavior.
- Codex version resolution
- internal/agents/codex/docker.go:
- PrepareBuild now calls GetLatestVersion() instead of hardcoding "latest".
- "Profiles" → "Roles" rename (dev stack)
- internal/profile/profile.go:
- Profile → Role; All() → AllRoles(); Exists → RoleExists; Get → GetRole.
- internal/profile/dockerfile.go, manager.go, internal/image/project.go, internal/wizard/roles.go/tui.go/wizard.go:
- All updated: functions, fields, comments, error messages.
- README: section renamed "Available Profiles" → "Available Roles"; text adjusted.
- Build cache / force behavior
- internal/image/core.go: BuildCore adds --no-cache when force is true.
- internal/image/tools.go: same for BuildTools.
- internal/image/project.go: passes force down to BuildTools.
- cmd/rebuild.go: removed duplicate BuildCore call.
- Entrypoint: raw command support
- static/build/docker-entrypoint:
- New should_exec_raw function: if EXITBOX_RAW_COMMAND=true or command is a shell-like binary, bypass agent routing and run raw.
- Used in run_agent_once and run_agent_loop.
- README / docs
- Added Qwen, env profiles, --profile, profile-scoped config, supply-chain notes for OpenCode, renamed "profiles" → "roles".
…rofiles→roles" rename + build cache hardening + raw-command escape in entrypoint
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
bigheart-x
reviewed
May 13, 2026
- config_cmd.go: return on invalid profile name; note profile-scoped config copy - env.go: validateProfileName in all subcommands; clear default on delete; multi-word EDITOR via sh -c; sanitize temp name - run.go: surface ResolveActiveWorkspace/GetDefault errors; early returns - jstools: add "trusted input only" comment - opencode: ensure curl/jq; GITHUB_TOKEN auth; safer binary selection; fix log message - opencode/version.go: document npm/GitHub version alignment invariant - entrypoint: refactor should_exec_raw/run_agent_loop/tmux logic; add tests for passthrough and auth flows
bigheart-x
reviewed
May 13, 2026
Contributor
Merging this branch will not change overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
bigheart-x
requested changes
May 13, 2026
Contributor
bigheart-x
left a comment
There was a problem hiding this comment.
Added some feedback. Please check @thecodeassassin
Contributor
Author
|
Thanks for the review. All comments addressed:
|
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.