Skip to content

🚢 fix: Pack Code Protocol Into Egress Gateway Image - #108

Merged
danny-avila merged 1 commit into
LibreChat-AI:mainfrom
GALYNSKI:fix/egress-gateway-copy-packages
Sep 5, 2026
Merged

🚢 fix: Pack Code Protocol Into Egress Gateway Image#108
danny-avila merged 1 commit into
LibreChat-AI:mainfrom
GALYNSKI:fix/egress-gateway-copy-packages

Conversation

@SSIG-IT

@SSIG-IT SSIG-IT commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

The egress-gateway container crash-loops on startup:

error: Cannot find module '../../packages/code/src/protocol'
from '/app/src/secure-startup.ts'

service/src/egress-gateway.ts imports ./secure-startup, and service/src/secure-startup.ts imports ../../packages/code/src/protocol. service/Dockerfile.egress-gateway copies service/src and shared but never copies packages/code/src, so from /app/src/… the relative import resolves to /packages/code/src/protocol, which is absent from the image.

The other service images (Dockerfile.node, Dockerfile.worker) already COPY packages/code/src /packages/code/src next to COPY shared /shared; this adds the same line to both the production and development stages of the egress-gateway image, matching that convention.

Tested by building service/Dockerfile.egress-gateway and confirming the container reaches its /health endpoint on 3190 instead of exiting.

The egress-gateway container crash-loops on startup:

    error: Cannot find module '../../packages/code/src/protocol'
    from '/app/src/secure-startup.ts'

`service/src/egress-gateway.ts` imports `./secure-startup`, and
`service/src/secure-startup.ts` imports `../../packages/code/src/protocol`.
`service/Dockerfile.egress-gateway` copies `service/src` and `shared` but
never copies `packages/code/src`, so from `/app/src/…` the relative import
resolves to `/packages/code/src/protocol`, which is absent from the image.

The other service images (`Dockerfile.node`, `Dockerfile.worker`) already
`COPY packages/code/src /packages/code/src` next to `COPY shared /shared`;
this adds the same line to both the production and development stages of the
egress-gateway image, matching that convention.

Tested by building `service/Dockerfile.egress-gateway` and confirming the
container reaches its `/health` endpoint on 3190 instead of exiting.
@danny-avila

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T13:51:03.885119Z 51a0bf9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 51a0bf9a99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila danny-avila changed the title fix: copy packages into the egress-gateway image so it can start 🚢 fix: Pack Code Protocol Into Egress Gateway Image Sep 4, 2026
@danny-avila
danny-avila merged commit 6043181 into LibreChat-AI:main Sep 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

egress_gateway image is missing packages/code, which shared secure-startup.ts imports

2 participants