Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🩹 chore: Correct lbug-adapter Path for GitNexus Vector Extension Patch (#12609)

Danny Avila70c91f8afdde
diff --git a/.fly/gitnexus/Dockerfile b/.fly/gitnexus/Dockerfile
index 6a3a8c6118..3362eb658d 100644
--- a/.fly/gitnexus/Dockerfile
+++ b/.fly/gitnexus/Dockerfile
@@ -26,13 +26,16 @@ RUN echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list.
COPY install-extensions.js /tmp/install-extensions.js
RUN node /tmp/install-extensions.js && rm -rf /tmp/install-extensions.js /tmp/lbug-ext-install
-# 4. Patch pool-adapter.js to also LOAD EXTENSION vector after FTS.
+# 4. Patch mcp/core/lbug-adapter.js to also LOAD EXTENSION vector after FTS.
# Upstream only loads FTS at serve time; without vector extension
# loaded, semantic search's CALL QUERY_VECTOR_INDEX fails silently.
-RUN POOL_ADAPTER=/usr/local/lib/node_modules/gitnexus/dist/core/lbug/pool-adapter.js \
- && grep -q "LOAD EXTENSION fts" "$POOL_ADAPTER" \
- && sed -i "s|await available\[0\]\.query('LOAD EXTENSION fts');|await available[0].query('LOAD EXTENSION fts'); try { await available[0].query('LOAD EXTENSION vector'); } catch (e) { /* vector extension may not be installed */ }|g" "$POOL_ADAPTER" \
- && echo "pool-adapter.js patched to load vector extension"
+# Note: the published npm package compiles the source pool-adapter.ts
+# to dist/mcp/core/lbug-adapter.js (not a 'pool-adapter.js' file).
+RUN LBUG_ADAPTER=/usr/local/lib/node_modules/gitnexus/dist/mcp/core/lbug-adapter.js \
+ && grep -q "LOAD EXTENSION fts" "$LBUG_ADAPTER" \
+ && sed -i "s|await available\[0\]\.query('LOAD EXTENSION fts');|await available[0].query('LOAD EXTENSION fts'); try { await available[0].query('LOAD EXTENSION vector'); } catch (e) { /* vector extension may not be installed */ }|g" "$LBUG_ADAPTER" \
+ && grep -c "LOAD EXTENSION vector" "$LBUG_ADAPTER" \
+ && echo "lbug-adapter.js patched to load vector extension"
# Copy pre-built GitNexus indexes (one per branch) and register each.
# The directory name becomes the repo name in `list_repos` output, so