Skip to content

fix: bind OpenCode capture to completed sessions - #1

Merged
ericmey merged 1 commit into
mainfrom
yua/complete-turn
Sep 29, 2026
Merged

ericmey merged 1 commit into
mainfrom
yua/complete-turn

Conversation

@ericmey

@ericmey ericmey commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Use the OpenCode v2.0.18 completion event observed in a live canary, retain visible text across tool calls, require standalone seat startup, and warn once when identity is missing. Bun and Python tests, Ruff and mypy pass.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:56
@ericmey
ericmey merged commit 99cc7dc into main Sep 29, 2026
1 check passed
@ericmey
ericmey deleted the yua/complete-turn branch September 29, 2026 18:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Missing identity still triggers repeated bridge failures and degraded records after the initial warning.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates OpenCode turn capture and seat startup guidance.

Changes:

  • Retains visible assistant text across tool calls.
  • Documents standalone, project-local seat setup.
  • Warns when seat identity is missing.
File Description
plugin/​turn.js Aggregates visible assistant text.
plugin/​index.js Adds missing-identity warning.
tests/​turn.test.js Tests text aggregation.
README.md Updates capture and startup guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread plugin/index.js
Comment on lines +31 to +33
if (!process.env.MUSUBI_ACTOR || !process.env.MUSUBI_PRESENCE || !process.env.MUSUBI_ZONE) {
console.error("musubi-opencode unavailable: seat identity is missing; launch OpenCode with --standalone from the seat launcher")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants