Skip to content

Align doctor with reportable session sources#161

Merged
luoyuctl merged 1 commit intomasterfrom
fix-doctor-sqlite-sources
May 4, 2026
Merged

Align doctor with reportable session sources#161
luoyuctl merged 1 commit intomasterfrom
fix-doctor-sqlite-sources

Conversation

@luoyuctl
Copy link
Copy Markdown
Owner

@luoyuctl luoyuctl commented May 4, 2026

Summary

  • make doctor use reportable session discovery so SQLite-backed legacy file dirs are skipped like TUI/overview
  • include SQLite-backed Hermes/OpenCode DB sources in doctor output
  • add a doctor regression test covering Hermes DB + skipped legacy files

Real local verification

  • agenttrace --doctor now reports Sessions: 1714
  • Hermes legacy file source shows 0 while Hermes Agent (DB) shows 510
  • OpenCode storage source shows 0 while OpenCode (DB) shows 188
  • agenttrace --overview -f json also reports 1714 total sessions

Tests

  • go test ./cmd/agenttrace ./internal/engine ./internal/tui
  • go build -o /tmp/agenttrace-doctor-fix ./cmd/agenttrace
  • go test ./...

@luoyuctl luoyuctl merged commit 3dd6888 into master May 4, 2026
1 check passed
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