Skip to content

Remove git-init workaround from OpenCode CLI MCP tools harness - #142

Merged
lucky-tensor merged 2 commits into
mainfrom
feat/131-remove-git-init-workaround-from-opencode-cli-mcp
Jul 15, 2026
Merged

lucky-tensor merged 2 commits into
mainfrom
feat/131-remove-git-init-workaround-from-opencode-cli-mcp

Conversation

@lucky-tensor

Copy link
Copy Markdown
Contributor

Closes #131

@lucky-tensor
lucky-tensor marked this pull request as ready for review July 15, 2026 12:44
OpenCode 1.16.2 silently emitted only step_start (exit 0, no inference,
no MCP calls) when run headless in a non-Git directory, which forced a
git install + `git init /app` workaround in the opencode-tools agent
image. Empirical matrix in a pinned container showed no 1.16.2 config
escape hatch (OPENCODE_CONFIG and snapshot:false both fail; upstream
project-detection gap tracked as anomalyco/opencode#15192), while
OpenCode 1.18.1 performs inference in a non-Git dir even with the git
binary deleted.

- Bump pinned OpenCode 1.16.2 -> 1.18.1 with updated sha256
- Drop git from apt install and remove `RUN git init /app`
- Drop the workaround marker from agent-probe output and refresh the
  nightly workflow gotcha comment

Verified: full `bun run test:opencode-tools` run against the new image
passed (real opencode/big-pickle inference; three scenarios; two
independently verified submissions).

Closes #131
@lucky-tensor
lucky-tensor force-pushed the feat/131-remove-git-init-workaround-from-opencode-cli-mcp branch from 0569596 to 1da5a80 Compare July 15, 2026 12:47
@lucky-tensor

Copy link
Copy Markdown
Contributor Author

Compliance review (verdict: pass) — advisory note: the rebuilt 1.18.1 image has only been proven locally; the first CI execution of the changed harness happens at the next scheduled committee-opencode-nightly run (inherent to the accepted nightly-only convention, not a defect).

@lucky-tensor

Copy link
Copy Markdown
Contributor Author

task-compliance verdict: pass (head 1da5a802, graded 2026-07-15T12:54:53.544Z)

@lucky-tensor
lucky-tensor merged commit 80da08b into main Jul 15, 2026
2 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.

Remove git-init workaround from OpenCode CLI MCP tools harness

2 participants