fix(linux): resolve default model and Electron sandbox crash on Ubuntu#50
Merged
antmikinka merged 1 commit intomainfrom Apr 2, 2026
Merged
fix(linux): resolve default model and Electron sandbox crash on Ubuntu#50antmikinka merged 1 commit intomainfrom
antmikinka merged 1 commit intomainfrom
Conversation
- Set default model to Qwen3-Coder-30B-A3B-Instruct-GGUF in SettingsRepository and StorageManager (was Llama-3.2-1B-Instruct-Hybrid) - Bump default maxTokens from 2000 to 8192 to match Qwen3 capabilities - Add PREFERRED_MODEL_IDS priority in Preparing.tsx so Qwen3-Coder is auto-selected even when Lemonade Server marks gpt-oss-mxfp4 as suggested - Prepend Qwen3-Coder entry to LemonadeClient fallback model list - Fix Electron SIGTRAP crash on Linux by disabling SUID sandbox via app.commandLine.appendSwitch in main.ts (platform-gated to linux only) - Add dev:linux and dev:electron:linux npm scripts for Ubuntu dev workflow - Structured build.linux target with arch x64 and category Utility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6d8c972 to
14141cc
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.
Summary
gpt-oss-mxfp4assuggested: true, causing it to be auto-selected. Fixed by addingPREFERRED_MODEL_IDSpriority inPreparing.tsxsoQwen3-Coder-30B-A3B-Instruct-GGUFis always selected first. Also updated the persisted defaults inSettingsRepositoryandStorageManagerand bumpedmaxTokensfrom 2000 → 8192 to match Qwen3's capabilities.chrome-sandboxrequires SUID root permissions that aren't present in typical dev environments. Fixed by disabling the sandbox viaapp.commandLine.appendSwitch('no-sandbox')inmain.ts, gated toprocess.platform === 'linux'only. Windows/macOS are unaffected.npm run dev:linuxscript for Ubuntu development workflow.Files Changed
src/database/repositories/SettingsRepository.tssrc/database/storage/StorageManager.tssrc/services/LemonadeClient.tssrc/ui/pages/Preparing.tsxsrc/electron_app/main.tspackage.jsonTest Plan
npm run dev:linuxstarts without SIGTRAP/sandbox crashQwen3-Coder-30B-A3B-Instruct-GGUFinstead ofgpt-oss-mxfp4npm run devstill works normally (sandbox unchanged)npm run build && npm run build:electronNotes
settings.jsonwill not get the new default automatically (defaults only apply on first run), but thePreparing.tsxauto-selection fix will still pick Qwen3-Coder from the live Lemonade catalog regardless.contextIsolation: trueandnodeIntegration: falseremain in place as the primary security boundary.Closes #48
🤖 Generated with Claude Code