Repository navigation
docs(assistant): improve socat lmstudio breadcrumb - #416
Merged
Merged
Conversation
Verified across OpenCode 1.2.24, 1.3.3 (current pin), and 1.14.50 (latest): - Hardcoded baseURL http://127.0.0.1:1234/v1 still present in models.dev catalog - OpenCode supports `provider` (singular) config key to override but no env var - Writing to opencode.json from entrypoint would violate "never overwrite user files" Comment now records: - Versions verified + date - Pointer to upstream provider.ts mergeProvider for the override path - Why env-var override is the missing piece - Link to related upstream issue anomalyco/opencode#1555 - TODO to file a fresh issue requesting env-var override When OpenCode adds env-var override, this whole function + the socat apt-get dependency in the Dockerfile can be deleted. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
itlackey
force-pushed
the
worktree-agent-a4a1aac27d330cb5f
branch
from
May 15, 2026 01:00
fba00f4 to
603f24a
Compare
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.
Outcome of investigating the deferred socat lmstudio workaround
PR #411 left a TODO to drop the socat lmstudio proxy when OpenCode upstream lifts the hardcoded baseURL restriction. This PR is the result of investigating that.
Verdict: cannot remove yet
OpenCode versions checked: `1.2.24`, `1.3.3` (current pin), `1.14.50` (latest as of 2026-05-14). All three still hardcode `http://127.0.0.1:1234/v1\` in the lmstudio provider catalog entry.
OpenCode supports overriding the baseURL via the singular `provider` config key in `opencode.json`, but does NOT read an env var for it. Writing into `opencode.json` from the entrypoint would violate OpenPalm's "never overwrite user files" principle, so the socat workaround stays.
What this PR changes
Just the inline comment in `core/assistant/entrypoint.sh` `maybe_proxy_lmstudio`. The breadcrumb now records:
When OpenCode adds env-var override and we bump to that version, `maybe_proxy_lmstudio` and the `socat` apt-get dependency can be deleted in one PR.
Test plan
Comment-only change; no behavior modified.