Conversation
Entire-Checkpoint: 2baba34463b5
PR SummaryMedium Risk Overview Hardens the OpenCode Entire plugin by switching turn-end detection from deprecated Written by Cursor Bugbot for commit 90148a5. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive E2E test support for the OpenCode AI coding agent, making it the third agent supported alongside Claude Code and Gemini CLI. The implementation follows the established multi-agent pattern and includes necessary fixes to the OpenCode plugin for reliable hook execution in non-interactive mode.
Changes:
- Added new
test:e2e:opencodetask to mise.toml for running OpenCode E2E tests - Implemented OpenCodeRunner following the existing agent runner pattern with proper timeout handling and model configuration
- Fixed OpenCode plugin to use synchronous hook calls for turn-end and session-end events to prevent premature process exit
- Added OpenCode-specific test environment configuration to handle permission settings
- Improved test assertions to use assert.Len instead of assert.Equal for slice length checks
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| mise.toml | Adds E2E test task for OpenCode agent with appropriate timeout and test tags |
| cmd/entire/cli/e2e_test/testenv.go | Adds OpenCode permission configuration to test environment setup and removes redundant gosec linter directive |
| cmd/entire/cli/e2e_test/agent_runner.go | Implements OpenCodeRunner following established patterns for agent CLI integration |
| cmd/entire/cli/agent/opencode/entire_plugin.ts | Migrates from deprecated session.idle to session.status events and adds synchronous hook execution to prevent race conditions |
| cmd/entire/cli/e2e_test/scenario_checkpoint_workflows_test.go | Improves test assertions to use assert.Len per testifylint best practices |
Entire-Checkpoint: a054e0b1c569
Adding OpenCode E2E tests