From 96cd8dfed96e46d064701d3c7acf9257b33eac17 Mon Sep 17 00:00:00 2001 From: Julia McGhee Date: Sat, 21 Mar 2026 22:21:28 +0000 Subject: [PATCH] Fix deploy build failure and opencode chat execvp error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add "gitea" to local RepoResult provider type (was missing from UI interface despite being returned by repo-search). Copy opencode binary instead of symlinking — symlink through /root/ is inaccessible to the nextjs user due to directory permissions. --- apps/harness/Dockerfile | 4 ++-- apps/harness/src/components/harness-dashboard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/harness/Dockerfile b/apps/harness/Dockerfile index d65c42f..e1733c6 100644 --- a/apps/harness/Dockerfile +++ b/apps/harness/Dockerfile @@ -42,8 +42,8 @@ RUN apk add --no-cache git github-cli curl ca-certificates RUN npm install -g @anthropic-ai/claude-code @openai/codex RUN curl -fsSL https://opencode.ai/install | sh || \ echo "WARN: opencode install failed, skipping" -# Ensure opencode is on PATH (installer puts it in ~/.local/bin) -RUN if [ -f /root/.local/bin/opencode ]; then ln -s /root/.local/bin/opencode /usr/local/bin/opencode; fi +# Ensure opencode is on PATH (installer puts it in ~/.local/bin which root owns) +RUN if [ -f /root/.local/bin/opencode ]; then cp /root/.local/bin/opencode /usr/local/bin/opencode; fi # MCP servers: Gitea (Go binary from builder stage) COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp diff --git a/apps/harness/src/components/harness-dashboard.tsx b/apps/harness/src/components/harness-dashboard.tsx index 5b26890..b4743e3 100644 --- a/apps/harness/src/components/harness-dashboard.tsx +++ b/apps/harness/src/components/harness-dashboard.tsx @@ -613,7 +613,7 @@ function NewTaskTab({ onSubmit, mobile, projects, knowledgeDocs }: { // ─── REPO SEARCH COMPONENT ──────────────────────────────────────────────────── interface RepoResult { - provider: "github" | "gitlab"; + provider: "github" | "gitlab" | "gitea"; fullName: string; url: string; description: string;