feat: v2.4 Phase 32 — OpenCode CLI Tests#20
Merged
RichardHightower merged 9 commits intomainfrom Mar 5, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 6 compact single-line CchEvent fixtures for all 5 OpenCode event types + malformed - run_opencode wrapper added to cli_wrappers.bash with timeout guard and JSON output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- smoke.bats: 8 tests (binary checks, daemon health, plugin file, ingest, CLI detection) - hooks.bats: 7 tests (all 5 event types + sequence + agent field via direct ingest) - Two-layer proof pattern: Layer 1 = ingest continue:true, Layer 2 = gRPC storage - No HOOK_SCRIPT piping (OpenCode uses TypeScript plugin, not bash) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- SUMMARY.md with 2 task commits, 1 deviation documented - STATE.md updated to Phase 32, plan 1/2, with decisions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 5 pipeline tests: session lifecycle, TOC browse, cwd metadata, agent field, concurrent sessions - 5-event OpenCode session (no PreToolUse): SessionStart, UserPromptSubmit, PostToolUse, AssistantResponse, Stop - Direct CchEvent format with agent=opencode
…ndling tests
- 5 negative tests: daemon down, malformed JSON, empty stdin, unknown event, timeout
- memory-ingest fail-open only (no hook script layer for OpenCode TypeScript plugin)
- All ingest fail-open tests assert exit 0 + {"continue":true}
- SUMMARY.md with 2 task commits, 25 total tests passing - STATE.md updated: plan 2/2 complete, progress 69% Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent=opencode(5 event types — no PreToolUse)run_opencodewrapper tocli_wrappers.bashusingopencode run --format jsonwith timeout guardsmemory-ingestfail-open for daemon-down, malformed, empty stdin, unknown event, and timeoutTest plan
bats tests/cli/opencode/smoke.bats— 8 tests (binary detection, daemon health, basic ingest, graceful skip)bats tests/cli/opencode/hooks.bats— 7 tests (all 5 event types via direct CchEvent ingest, two-layer proof)bats tests/cli/opencode/pipeline.bats— 5 tests (full ingest-to-query cycle with agent=opencode)bats tests/cli/opencode/negative.bats— 5 tests (daemon-down, malformed, empty, unknown, timeout)🤖 Generated with Claude Code