Idea detail
git_focus_cache_by_head
reqlan rq/extension/local-context/activitybar.rq:263
block
done
Summary
Focus git history / stats caches are not TTL-evicted on a fixed wall-clock window.
Refresh a cache entry only when its write timestamp is **before** the repository's latest commit
authored time ( HEAD ); while `cache.at >= latestCommitAuthoredAt`, reuse the entry.
Applies to focus history, focus stats, and range-commit count caches in
git-context.ts.
Related UX: git_history_lens.
Navigation
Attributes
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| file_reference | "../../../packages/extension/src/activity_bar_module/git-context.ts" | packages/extension/src/activity_bar_module/git-context.ts | git-context.ts |
| references | git_history_lens | reqlan rq/extension/local-context/activitybar-panels/current_context_scope.rq | git_history_lens |
| file_reference | "../../../packages/extension/test/git-context.test.ts" | packages/extension/test/git-context.test.ts | git-context.test.ts |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | git_history_lens | reqlan rq/extension/local-context/activitybar-panels/current_context_scope.rq | git_focus_cache_by_head |
| references | performance | reqlan rq/extension/local-context/activitybar.rq | git_focus_cache_by_head |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…