Repository navigation
Conversation
…eplay fixes (anomalyco#45520) Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
…nomalyco#46820) Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
…52415) Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Co-authored-by: adamdotdevin <2363879+adamdotdevin@users.noreply.github.com>
Merge upstream release v1.18.35 (from v1.2.13, ~6.2k upstream commits) and re-port the offline fork onto the new architecture (core/tui/server packages, Effect HttpApi server, embedded web UI). Offline support now relies on upstream mechanisms where possible: - web UI is embedded in the binary upstream; deps/app and static serving removed - bundled models.json via OPENCODE_MODELS_PATH; build snapshot uses the same file - ripgrep/clangd/rust-analyzer found via PATH set by the opencode-offline wrapper - version shown as <upstream>-offline.<n>+<sha> via OPENCODE_VERSION at build Fork code (marked offline-fork): - core/offline.ts: deps resolution; Npm.which/add use bundled packages, Npm.install skipped - pyright/typescript-language-server run through deps/bin shims on the opencode binary (BUN_BE_BUN=1), so target hosts need no node - bundled tsserver fallback; LSP enabled by default in offline mode - BUN_TMPDIR in the wrapper so embedded native libs load on noexec /tmp - /curl debug command ported as a raw server route + TUI builtin plugin Container suite extended: real LSP diagnostics (Python/TS/C), noexec /tmp, TUI start, bundled models, /curl route, optional local LLM end-to-end test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Syncs the offline fork from upstream v1.2.13 → v1.18.35 (~6.2k upstream commits) and re-ports offline support onto upstream's new architecture (
core/tui/serverpackages, Effect HttpApi server, embedded web UI).Reviewing: the fork's own changes are small.
git grep -n offline-forklists the 6 guarded upstream files, and the "How Offline Mode Works" table inAGENTS.mdexplains each mechanism. Everything else is upstream.Now handled by upstream features (fork code removed)
deps/appand static serving are removedmodels.jsonis wired in throughOPENCODE_MODELS_PATH, and the build snapshot uses the same filePATHset by theopencode-offlinewrapper<upstream>-offline.<n>+<sha>viaOPENCODE_VERSIONat build time; the database staysopencode.dbFork code
core/src/offline.ts: resolves bundled deps;Npm.which/Npm.adduse bundled packages andNpm.installis skipped (no registry access)deps/binshims on the opencode binary (BUN_BE_BUN=1), so hosts need nonodetsserverfallback; LSP enabled by default in offline mode (upstream now defaults it off)BUN_TMPDIRin the wrapper so embedded native libraries load on noexec/tmp(the TUI crashed there before)/curlported as a raw server route plus a TUI builtin plugintypescript@6, because npm's latest (7.x) has notsserver.jsTesting
/tmp): 43/43 pass, including real LSP diagnostics for Python, TypeScript and C, TUI start, bundled models, and the/curlroute/curldump and replay, tested against LM Studio (Gemma 4 26B); an agent edit task also succeededNotes
🤖 Generated with Claude Code