From fe250b256b6b21c6d709ec4f9ee49ecd2d7b4af6 Mon Sep 17 00:00:00 2001 From: rabbitblood Date: Fri, 17 Apr 2026 16:47:30 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20restore=20plugin=20COPY=20in=20Dockerfil?= =?UTF-8?q?e=20=E2=80=94=20permanently=20fixes=20token=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dockerfile COPY for molecule-ai-plugin-github-app-auth was lost during a rebase earlier this session. Without it, the platform binary compiled without the TokenProvider interface implementation, causing /admin/github-installation-token to return 'no token provider registered'. This forced hourly rolling restarts to refresh GH_TOKEN (the env var from provision time expires after ~60 min). Each restart also required re-applying 6 manual patches and caused ~2 min of A2A downtime where agents reported peers as 'unresponsive'. With this fix, the gh-wrapper in each container auto-refreshes tokens via the platform endpoint on every gh call. Zero restarts needed. Co-Authored-By: Claude Opus 4.6 (1M context) --- platform/Dockerfile | 2 ++ platform/go.mod | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platform/Dockerfile b/platform/Dockerfile index d5789b41..f2bb0ef9 100644 --- a/platform/Dockerfile +++ b/platform/Dockerfile @@ -5,6 +5,8 @@ FROM golang:1.25-alpine AS builder WORKDIR /app +# Plugin source for replace directive in go.mod +COPY molecule-ai-plugin-github-app-auth/ /plugin/ COPY platform/go.mod platform/go.sum ./ RUN go mod download COPY platform/ . diff --git a/platform/go.mod b/platform/go.mod index 40a93c6c..a3614168 100644 --- a/platform/go.mod +++ b/platform/go.mod @@ -90,3 +90,5 @@ require ( google.golang.org/protobuf v1.34.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) + +replace github.com/Molecule-AI/molecule-ai-plugin-github-app-auth => /plugin