Skip to content

Add system-level test coverage for OpenCode and PiAgent sources - #19

Open
winjer wants to merge 1 commit into
mainfrom
source-system-tests
Open

Add system-level test coverage for OpenCode and PiAgent sources#19
winjer wants to merge 1 commit into
mainfrom
source-system-tests

Conversation

@winjer

@winjer winjer commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Add tests/source_system_test.rs with 16 integration tests that feed OpenCode and PiAgent payloads via stdin to the real binary and assert on events delivered to the fake Langfuse — closing the largest gap in the test suite (every binary-level test previously exercised only the Claude Code Stop-hook path).

Also fix a production gap in turns.rs: build_turns now extracts tool results from the message.tool_results field on assistant messages (where the OpenCode/PiAgent normalizers store them), so tool-span outputs are no longer silently None for these sources. The change is additive — Claude Code messages never carry this field.

Add tests/source_system_test.rs with 16 integration tests that feed
OpenCode and PiAgent payloads via stdin to the real binary and assert on
events delivered to the fake Langfuse — closing the largest gap in the
test suite (every binary-level test previously exercised only the Claude
Code Stop-hook path).

Also fix a production gap in turns.rs: build_turns now extracts tool
results from the message.tool_results field on assistant messages (where
the OpenCode/PiAgent normalizers store them), so tool-span outputs are
no longer silently None for these sources. The change is additive —
Claude Code messages never carry this field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant