Description
The test fixtures (tmpdir in unit tests and createTestProject in e2e tests) set up temporary git repositories but do not disable commit signing via git config. This causes test failures on developer machines configured with GPG/SSH signing agents (e.g., 1Password, pinentry-touchid).
The current state is inconsistent - some test files already use --no-gpg-sign while others do not. This makes it easy to introduce new failures when adding commits to tests.
Related:
Plugins
N/A
OpenCode version
dev branch
Steps to reproduce
- Configure git to use a signing agent (e.g., 1Password SSH agent, GPG with pinentry)
- Run tests from
packages/opencode: bun test test/project/project.test.ts
- Tests fail with signing agent errors or spam pinentry prompts
Screenshot and/or share link
error: 1Password: agent returned an error
fatal: failed to write commit object
Operating System
Any (macOS, Linux, Windows)
Terminal
Any
Description
The test fixtures (
tmpdirin unit tests andcreateTestProjectin e2e tests) set up temporary git repositories but do not disable commit signing via git config. This causes test failures on developer machines configured with GPG/SSH signing agents (e.g., 1Password, pinentry-touchid).The current state is inconsistent - some test files already use
--no-gpg-signwhile others do not. This makes it easy to introduce new failures when adding commits to tests.Related:
Plugins
N/A
OpenCode version
dev branch
Steps to reproduce
packages/opencode:bun test test/project/project.test.tsScreenshot and/or share link
Operating System
Any (macOS, Linux, Windows)
Terminal
Any