Skip to content

[codex] Use current WakaTime AI sync flag#3

Open
marsevilspirit wants to merge 1 commit into
wakatime:mainfrom
marsevilspirit:codex/fix-sync-ai-activity-flag
Open

[codex] Use current WakaTime AI sync flag#3
marsevilspirit wants to merge 1 commit into
wakatime:mainfrom
marsevilspirit:codex/fix-sync-ai-activity-flag

Conversation

@marsevilspirit

Copy link
Copy Markdown

Summary

  • Use wakatime-cli --sync-ai-activity when syncing Codex AI activity.
  • Add a Node test that runs the hook with a fake wakatime-cli and asserts the generated CLI arguments.

Root cause

wakatime-cli v2.19.0 does not recognize --sync-ai-heartbeats; the supported flag for this path is --sync-ai-activity. With the old flag, the plugin logs unknown flag: --sync-ai-heartbeats and the Codex AI sync path is skipped.

Validation

  • npm test from plugins/codex-cli-wakatime
  • Red/green check: the new test failed on the old flag and passed after changing the plugin to --sync-ai-activity.

AI PR disclosure

This is an AI PR: the code change, commit, and PR description were prepared by Codex on behalf of marsevilspirit.

@marsevilspirit marsevilspirit marked this pull request as ready for review June 19, 2026 18:35
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