Skip to content

feat(checkin): sync upstream status and schedule from provider windows - #586

Merged
caigee-cmd merged 1 commit into
caigee-cmd:mainfrom
guyu233:feat/upstream-checkin-backend
Nov 24, 2026
Merged

caigee-cmd merged 1 commit into
caigee-cmd:mainfrom
guyu233:feat/upstream-checkin-backend

Conversation

@guyu233

@guyu233 guyu233 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Read check-in status from each provider instead of trusting the last local attempt, and persist source / synced_at.
  • Derive the automatic schedule from the upstream daily window (window start + 1 hour) while keeping manual times as an override.
  • Use provider server time (Asia/Shanghai), treat CodeArts as provisional before 02:00, and retry ambiguous states at 02:05 / 12:05 / 21:00.
  • Run one-click check-in with bounded concurrency (up to four accounts).
  • WorkBuddy checks campaign activity before claiming; the Global edition no longer advertises daily check-in.

Tests

  • go build ./...
  • go test ./internal/accounts ./internal/store ./internal/control ./internal/providers/... ./internal/runtime ./internal/server
  • python scripts/release-notes.py validate

Merge order

Independent backend PR, but it touches internal/store/store.go and internal/providers/registry.go near #585. If #585 lands first, rebase this branch and resolve the shared account-column region. #588 consumes this API and should merge later.

Add provider check-in status reads, persist source and sync time, derive auto schedule from the upstream window, and run manual batches with bounded concurrency.
@caigee-cmd

Copy link
Copy Markdown
Owner

✅ 检查码逻辑完善,特别是对CodeArts不确定状态的处理很细致。同步上游windows的实现思路很清晰。建议考虑在文档中补充关于时区处理的说明。

@caigee-cmd
caigee-cmd merged commit 381c838 into caigee-cmd:main Nov 24, 2026
6 checks 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.

2 participants