Skip to content

Insights Calls: the call log under Insights, retries marked, per-caller summary - #312

Merged
Mpdreamz merged 3 commits into
mainfrom
feature/calls-view
Nov 19, 2026
Merged

Mpdreamz merged 3 commits into
mainfrom
feature/calls-view

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

heed already records every gh, git and model call. This puts that record where you look for it and makes it answer "what is this feature doing to GitHub?".

  • Calls is a tab under Insights: C opens it from every Insights view (and again returns to the dashboard). :log, view.log and the existing log keys are unchanged.
  • Retries are visible. Browse's search calls (caller browse.search) record the page size and the attempt, so the retry ladder shows as 100/page, retry · 50/page, retry · 25/page on the rows and a page field in the detail. The marker lives in the call's detail under namespaced heed.* keys: no schema change, old rows load as ordinary calls. Only browse.search page asks are marked (not count / repo-count retries).
  • Filter by caller: p cycles through the callers the log has seen; :log.callers [name] picks one, with completion; c still filters by the caller under the cursor.
  • A callers strip under the usage strip: the top 3 callers with calls, failures (✗), retries (↻), median and p95 time and rate points; a click narrows the log to that caller. Computed over the rows shown.
  • See the call. log.see [caller] opens Calls on a caller with the cursor on its newest failed call, and Browse's "Could not refresh" banner has a clickable "See the call". (Click only; no key was bound.)
  • Docs: docs/reference/call-log.md, docs/insights/index.md, the keyboard pages and four new shots (log/see-the-call, log/retry, log/callers, log/caller-filter).

Verified

mise run lint, mise run check, the full suite (3070 tests after merging main), mise run text-check, mise run bundle, scripts/tutor-check.sh (0 problems), the docs build (0 warnings); ten mutations (percentile rounding, the retry threshold, sort order, the caller toggle, newest-failed, the un-namespaced page key, failures counted as 0, the log pane, the attempt counter, rate cost) each failed the tests; the new shots read and two real problems fixed (a truncated callers strip, a shot that opened in Sessions).

Not tested

The click on "See the call" in the running app, and a live reload with a real log.sqlite. Browse's empty-list text ("GitHub did not answer…") has no jump, and neither do Attention's failures.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the enhancement New feature or request label Nov 19, 2026
@Mpdreamz
Mpdreamz merged commit 1e5a3b1 into main Nov 19, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the feature/calls-view branch November 19, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant