Skip to content

[codex] Document event-based aggregation behavior#36

Merged
Miss-you merged 2 commits into
mainfrom
codex/ebta-010-docs-final-validation
Apr 17, 2026
Merged

[codex] Document event-based aggregation behavior#36
Miss-you merged 2 commits into
mainfrom
codex/ebta-010-docs-final-validation

Conversation

@Miss-you

Copy link
Copy Markdown
Owner

Summary

  • Document event-based daily aggregation, session usage-event filtering, local default timezone, --timezone IANA names, and Codex $CODEX_HOME/sessions source resolution in English and Chinese READMEs.
  • Extend daily and session help text so CLI help matches the implemented event aggregation semantics.
  • Add help-rendering tests for the new help text and mark EBTA-010 done in the task board.

Validation

  • make fmt
  • make test
  • make vet
  • make build
  • make lint (0 issues)
  • secret scan on commit diff before push
  • manual smoke: ./bin/codetok daily --help
  • manual smoke: ./bin/codetok session --help
  • fixture-backed smoke: ./bin/codetok daily --all --kimi-dir "$(pwd)/e2e/testdata/sessions" --claude-dir "$EMPTY_DIR" --codex-dir "$EMPTY_DIR" --cursor-dir "$EMPTY_DIR"

- Add README and README_zh guidance for usage-event dates, timezone filters, session event filtering, and CODEX_HOME sessions.

- Extend daily/session help text and tests so CLI help preserves the documented event aggregation semantics.

- Mark EBTA-010 done after final validation and review.
Copilot AI review requested due to automatic review settings April 17, 2026 02:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the CLI’s event-based aggregation semantics (daily bucketing + session filtering), timezone behavior, and Codex session source resolution so README/help text align with the current event-driven stats pipeline.

Changes:

  • Update English + Chinese READMEs to describe event-based aggregation, default local timezone / --timezone (IANA), and $CODEX_HOME/sessions resolution.
  • Extend daily and session command long help text to match implemented behavior.
  • Add help-rendering tests to ensure the new help guidance stays present; mark EBTA-010 as done in the task plan.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/plans/2026-04-16-event-based-token-aggregation-task.md Marks EBTA-010 as done and logs validation timeline.
cmd/daily.go Adds long help text describing event-date bucketing + timezone + Codex home resolution.
cmd/session.go Adds long help text describing event-date filtering + timezone + Codex home resolution.
cmd/help_text_test.go Adds tests asserting the help text mentions event semantics, timezone, and $CODEX_HOME.
README.md Updates docs for event-based aggregation, timezone semantics, $CODEX_HOME resolution, and dashboard examples.
README_zh.md Chinese doc parity for event semantics, timezone, $CODEX_HOME, and updated daily dashboard examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread README_zh.md Outdated
- Explain when daily JSON provider may be empty and providers lists contributors.

- Apply the clarification in both English and Chinese READMEs after Copilot review.
@Miss-you
Miss-you merged commit 4c31c18 into main Apr 17, 2026
7 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