Skip to content

Add time-range selection and improve session reports and table rendering for stat-cache-hitrate#10

Merged
mouxinqq merged 2 commits intodevelopfrom
codex/update-stats-cache-hitratio-markdown-summary-2h7tlo
Apr 12, 2026
Merged

Add time-range selection and improve session reports and table rendering for stat-cache-hitrate#10
mouxinqq merged 2 commits intodevelopfrom
codex/update-stats-cache-hitratio-markdown-summary-2h7tlo

Conversation

@mouxinqq
Copy link
Copy Markdown
Owner

Motivation

  • Enable analysis for a specified time window (--start/--end) and make the skill's interactive mode present discrete selectable options.
  • Improve session-level diagnostics by surfacing per-session timestamps and prefill URL counts to aid time-scoped investigation.
  • Produce more readable Markdown tables with fixed-width column alignment so terminal and document viewers show columns cleanly.

Description

  • Update SKILL.md to document --start/--end support, require AskUserQuestion discrete options for analysis mode, and adjust output descriptions for session detail fields.
  • Enhance session_analysis.py to include first_ts, last_ts, and prefill_url_count in per-session rows.
  • Replace Markdown table rendering in stat_cache_hitrate.py with a width-aware renderer and alignment support, and introduce _extract_seq_num, _summarize_id_type_ranges, and sequence labels produced by _seq_label.
  • Add session sequencing, id_type range summarization, overall time-span calculation, rename/reshape session table columns to avg-hit and purl_cnt, and include session time ranges and improved mapping/links in the generated session_hit_details.md.

Testing

  • No automated tests were run for these changes.

Codex Task

@mouxinqq mouxinqq merged commit 96df827 into develop Apr 12, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant