Skip to content

feat(channel): add activity command for last-activity reporting#31

Closed
amix wants to merge 1 commit into
mainfrom
amix/channel-activity
Closed

feat(channel): add activity command for last-activity reporting#31
amix wants to merge 1 commit into
mainfrom
amix/channel-activity

Conversation

@amix

@amix amix commented Jun 16, 2026

Copy link
Copy Markdown
Member

Context

There's no channel-level "last activity" field in the API/SDK, so auditing stale channels means deriving it from threads. This adds a reusable command for that.

What was changed

  • New tdc channel activity command: reports each channel's last activity = newest thread lastUpdated (counts done threads; empty channels fall back to created).
  • Probes run with bounded concurrency; supports --scope, --state, --inactive-since <date>, and JSON/NDJSON output.
  • Tests for activity computation, empty-channel fallback, --inactive-since filtering, and arg validation.

Refs

Built to drive a public-channel cleanup (archive inactive ≥ 2 months); useful for future audits.

Reports each channel's last activity (newest thread lastUpdated, counting
done threads; empty channels fall back to creation date) with bounded-
concurrency probes. Supports --scope/--state/--inactive-since and JSON output.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amix amix closed this Jun 16, 2026
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