Linux Port: Mistral AI + ChromaDB + xdotool (merge into separate branch, not main)#4
Open
RahulPatnaik wants to merge 1 commit intoTabbyAIKeyboard:mainfrom
Open
Linux Port: Mistral AI + ChromaDB + xdotool (merge into separate branch, not main)#4RahulPatnaik wants to merge 1 commit intoTabbyAIKeyboard:mainfrom
RahulPatnaik wants to merge 1 commit intoTabbyAIKeyboard:mainfrom
Conversation
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
Complete Linux port of Tabby. Replaces all Windows-only dependencies with Linux-native alternatives and switches from OpenAI to Mistral AI as the sole provider.
Tested on Ubuntu 24.04 LTS.
Changes
Electron Main Process
node-window-manager(Win32 API) and@nut-tree-fork/nut-js(Windows keyboard sim) withxdotoolviaexecFileSyncintext-handler.tsuiohook-napia soft dependency with try/catch import inkeystroke-listener.tsso it degrades gracefully on Wayland.pngon Linux instead of.ico(Windows-only format) intray/index.tssetContentProtection(true)on Linux across all window files (causes black/invisible windows on Wayland compositors)Ctrl+Alt+TtoCtrl+Alt+Rto avoid conflict with Ubuntu terminal shortcut--enable-features=WebRTCPipeWireCapturerflag for Wayland screen capture supporttsup --watch+nodemonwith customscripts/electron-dev.jsthat manages exactly one Electron process with debouncedrestarts (fixes duplicate taskbar icons and EPIPE errors)
run-s electron:buildbefore watchers sobuild/main.jsexists before Electron launchesFrontend (Mistral-only)
frontend/src/lib/ai/models.ts: removed all GPT, Gemini, Groq, Cerebras, LMStudio models. Now contains only Mistral Small, Mistral Large, Codestral, andPixtral Large
frontend/src/lib/ai/provider.ts: removed OpenAI, Google, Groq, Cerebras, LMStudio SDKs. Uses only@ai-sdk/mistral@ai-sdk/mistralto frontend dependenciesgpt-4.1-minitomistral-small-latestNext.js Backend
nextjs-backend/src/lib/ai/provider.tswith 4 modelsnextjs-backend/src/lib/ai/models.tswith env-based default selectionchat/route.tsadmin.createUser()withemail_confirm: truefor local dev (no Resend email dependency)Memory Backend
backend/main.py: replaced mem0 with ChromaDB + Mistral AIPersistentClientat~/.tabby/chromadb(data survives restarts)pyproject.toml:mem0ai,zep-python,vecsCleanup
backend/main_mem0_backup.pyandzep-docker-compose.ymlTest Results
65 tests, 63 passed, 0 failed, 2 skipped (skipped tests require Groq/OpenAI keys which are intentionally not configured).
Sections tested: Supabase auth, memory CRUD, all 4 Mistral models, streaming chat, inline suggestions, title generation, grammar completion, interview ghost suggest,
memory integration (AI tool calls to ChromaDB), edge cases (validation, unicode, concurrency, large payloads), ChromaDB persistence.
How to Run