Skip to content

feat(opencode): stitch child sessions into root uploads#135

Merged
z0w0 merged 3 commits intomainfrom
fix/opencode-subagents
Apr 9, 2026
Merged

feat(opencode): stitch child sessions into root uploads#135
z0w0 merged 3 commits intomainfrom
fix/opencode-subagents

Conversation

@z0w0
Copy link
Copy Markdown
Contributor

@z0w0 z0w0 commented Apr 9, 2026

Summary

  • collapse explicit OpenCode child sessions into a single root-based synthetic upload so Cadence publishes one logical session per root
  • preserve nested lineage in merged OpenCode JSONL with root/child metadata and include ancestor sessions when recent child activity is discovered
  • add coverage for clustered rendering, cwd fallback, mixed file+DB dedupe, and DB-backed child-to-root discovery

Validation

  • cargo fmt
  • cargo test --no-fail-fast
  • manual backfill validation against a local OpenCode corpus showed child session IDs no longer upload as separate top-level sessions

Collapse explicit OpenCode child sessions into their parent upload so Cadence tracks one logical root session instead of separate top-level uploads. Preserve child lineage and merged recency metadata in the synthetic JSONL so backend analysis can still recover nested activity later.
@z0w0 z0w0 requested review from codesoda and daveslutzkin April 9, 2026 02:25
z0w0 added 2 commits April 9, 2026 12:30
Refactor the OpenCode session stitching helpers to satisfy clippy without changing behavior. Replace the manual cluster sort closure and bundle DB session row fields into a struct so the CI check passes across platforms.
Preserve root-based OpenCode upload identity when a recent file-backed child references an older parent session JSON. Hydrate missing parent session records from disk before clustering and cover the cutoff regression with a dedicated test.
@z0w0 z0w0 merged commit 965019e into main Apr 9, 2026
3 checks passed
@z0w0 z0w0 deleted the fix/opencode-subagents branch April 9, 2026 04:37
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.

2 participants