test(cli): a real opencode session under smoke:real must write a journal line - #820
Merged
Conversation
…nal line v5.10.0 shipped an OpenCode telemetry plugin that spawned a journal.cjs the build no longer puts beside it (#812): every session journalled nothing, and smoke:real's real `opencode run` still passed, because it installs the smoke fixture, which journals nothing, and only asks whether the bridge loads. smoke:real now installs this repository's own aidd-telemetry into a throwaway project for opencode, turns measurement on, runs `opencode run` and reads the run journal. A session opens on its first call, so only a turn that completed can prove an empty journal: a completed turn with no session_start line is a failure, a model that never answered is a skip that says so. Refs #814 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011x4ms5qcGuZgYhCxfdHMUb AIDD-Session-Id: 4acc9a1c-19bc-4468-b8b6-e86644bcba60
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.
🎯 What & why
v5.10.0 shipped an OpenCode telemetry plugin that spawned a
journal.cjsthe build no longer puts beside it. Every OpenCode session journalled nothing (#812).smoke:realran a realopencode runon a machine with OpenCode and still passed. It installs the smoke fixture, which journals nothing, and it only checks that the bridge loads. This PR makes a real OpenCode session prove that it writes a journal line.🛠️ How it works
A new
smoke:realsection, for OpenCode only:aidd-telemetryinto a throwaway project:setupwith files only, thenmarketplace addunder a unique name,plugin install --tool opencodeandtelemetry on.opencode run "say ok"and reads the project's run journal.session_startline fromopencodecli/aidd_docs/memory/internal/smoke-real.mddescribes the new phase.🧪 How to verify
What I observed on this branch on 2026-09-10. OpenCode was logged in with an OpenAI account. Its default model refuses the request, but the session still opens and exits 0.
smoke:realwithopencode-plugin.jsreverted to./journal.cjs, the #812 bug✗ opencode: the turn completed and the run journal holds no session_start line. FAIL 1, SKIP 3, no other failure.smoke:realas shipped✓ opencode: the run journal holds a session_start line from opencode. No failure up to cleanup.session_startline, then 0 with the bug, then 1 with the path restoredopencode/*models, before the OpenAI loginsession_start. A run that times out with no line is a SKIP that says why.🔗 Linked issue
Closes #814
✅ I certify
smoke:realruns.🤖 Generated with Claude Code
https://claude.ai/code/session_011x4ms5qcGuZgYhCxfdHMUb