Skip to content

feat(traces): ingest OpenCode SQLite TUI sessions - #31

Merged
xeaser merged 2 commits into
mainfrom
feat/opencode-sqlite-tui
Aug 28, 2026
Merged

feat(traces): ingest OpenCode SQLite TUI sessions#31
xeaser merged 2 commits into
mainfrom
feat/opencode-sqlite-tui

Conversation

@xeaser

@xeaser xeaser commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Read OpenCode SQLite read-only (WAL mode=ro) so TUI/Web/serve turns show up in squad-oc traces and optional OTLP.
  • Default DB is XDG-style on every OS; override with OPENCODE_DB or opencode_db.
  • Dedup by assistant messageId (resp.Info.ID / message.id). CLI Prompt stays unique; later TUI turns on the same ses_* still ingest.
  • traces --follow polls every 2s. Langfuse grouping uses session.id + gen_ai.conversation.id = OpenCode session id.

Beads: squad-t9d. Spec: .superpowers/specs/2026-08-28-opencode-sqlite-tui-observability-design.md.

Test plan

  • task test / vet / lint / vuln / build / actionlint locally
  • GitHub Actions on this PR (task ci race is Linux-only; Windows Dev-Cpp MinGW race link is a known local false fail)
  • After merge: watch main, then tag/release

xeaser added 2 commits August 28, 2026 10:16
Read OpenCode's SQLite read-only so TUI/Web/serve turns appear in traces and optional OTLP, keyed by assistant messageId. Dedup keeps CLI Prompt rows unique while later TUI turns on the same ses_* still ingest. traces --follow polls every 2s.
macOS /var is a symlink to /private/var. TestTracesCLIIngestThenExport
stored t.TempDir() and compared it to Getwd(), so ingest dropped every
session and exported empty OTLP spans. sameDir now uses SameFile and
EvalSymlinks.
@xeaser
xeaser merged commit 8c9112b into main Aug 28, 2026
10 checks passed
@xeaser
xeaser deleted the feat/opencode-sqlite-tui branch August 28, 2026 05:05
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.

1 participant