Skip to content

test(cli): a real opencode session under smoke:real writes a journal line #814

Description

@blafourcade

Problem

#812 fixed a journal path that shipped broken in v5.10.0: under OpenCode, opencode-plugin.js spawned a journal.cjs the build no longer puts beside it, the plugin's own try/catch swallowed MODULE_NOT_FOUND, and every OpenCode session recorded nothing while aidd telemetry still read OpenCode as covered.

The real-host acceptance in cli/scripts/smoke-real.sh did run opencode run on this machine, and passed: it only asserts the bridge module loads and the host exits 0. It installs the smoke fixture, not aidd-telemetry, so nothing in it can see a journal that stays empty. The unit guard #812 added pins the literal against the build contract; nothing pins that a real host, on the real installed layout, writes a line.

Scope

  • cli/scripts/smoke-real.sh: in the opencode section, install the repository's own aidd-telemetry into a throwaway project through aidd setup, turn measurement on, run opencode run, and assert the project's run journal holds a session_start line with "tool":"opencode".
  • Same shape as the existing opencode run: auth missing or a timeout is a SKIP naming why, never a PASS.

Acceptance criteria

Prior art in this repository

Out of scope

  • The same live-journal proof for Claude Code, Codex, Copilot and Cursor: each costs a real model call and has its own trust prompt (Codex needs one interactive approval). A separate issue if this one proves its worth.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions