Skip to content

feat(server): add bounded image byte cache with age eviction - #1766

Open
rodboev wants to merge 4 commits into
kenn-io:mainfrom
rodboev:pr/image-render-cache
Open

rodboev wants to merge 4 commits into
kenn-io:mainfrom
rodboev:pr/image-render-cache

Conversation

@rodboev

@rodboev rodboev commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

AgentsView keeps recently served image bytes in memory for up to seven days. Reopening a stored image can reuse bytes already read by the asset route, while the durable copy stays under dataDir/assets.

Entries expire seven days after creation. The cache holds 64 entries and 64 MiB, clears with the daemon, and falls back to the durable file after expiry or a source change. Asset validation and response headers stay the same.

The browser owns its HTTP cache and Blob URLs, so hit rates and visible latency remain unmeasured. Builds on PR 1696 and PR 1729.

Refs #1718

@roborev-ci

roborev-ci Bot commented Sep 14, 2026

Copy link
Copy Markdown

roborev: Combined Review (975f16a)

Verdict: No findings at or above medium severity.


Reviewers: 2 done | Synthesis: codex | Total: 4m44s

@roborev-ci

roborev-ci Bot commented Sep 14, 2026

Copy link
Copy Markdown

roborev: Combined Review (937e967)

Verdict: No findings at or above medium severity.


Reviewers: 2 done | Synthesis: codex | Total: 4m15s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant