Repository navigation
Open
Labels
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.area:onboardingFirst-run experience, onboarding flows, and related callouts.area:performanceGeneral application performance, responsiveness, and resource usage.area:performance:memoryMemory usage, allocation, leaks, and memory-bound performance.area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.bugSomething isn't working.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-reviewwarp:prioritizedIssues prioritized by the Warp team.warp:product-qualitywarp:reserved-internalThis issue is being worked on internally. We're not accepting external PRs at this time.
Description
Summary
Image caching in Warp has two issues: the image cache is never cleared (accumulating resized copies), and agent onboarding decodes large image assets into full RGBA buffers.
Root Causes
- ImageCache never cleared — The
ImageCachekey is(asset_id, size), storing one copy per rendered size. Dragging/resizing a window with an image in the Markdown viewer creates many cached copies. No eviction policy exists. - Agent onboarding RGBA decode —
AssetCache::load_asset::<ImageType>andImageReader::decodematerialize a large RGBA buffer in memory when onboarding slides are opened or restored.
Linear Issues
Metadata
Metadata
Assignees
Labels
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.area:onboardingFirst-run experience, onboarding flows, and related callouts.area:performanceGeneral application performance, responsiveness, and resource usage.area:performance:memoryMemory usage, allocation, leaks, and memory-bound performance.area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.bugSomething isn't working.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-reviewwarp:prioritizedIssues prioritized by the Warp team.warp:product-qualitywarp:reserved-internalThis issue is being worked on internally. We're not accepting external PRs at this time.
Activity
warp-for-oss commentedon Jun 12, 2026
@kevinchevalier
Here's what I found while triaging this issue:
Maintainer details
I concluded that the issue is a code-supported memory bug combining unbounded rendered image-cache growth with onboarding image assets being decoded and retained as full RGBA buffers..
Triage summary
This looks like a valid memory bug with code support for both reported mechanisms.
Reproducibility
Reproducibility is medium. The report does not include a standalone repro script, memory profile, Warp version, or platform details, but the referenced paths are present in the current code and make the reported memory behavior plausible.
Likely root cause
RenderedImageCacheKey { bounds, fit_type, animated_image_behavior }. There is whole-asset eviction and a private per-size eviction helper, but the current cache path still inserts rendered size variants without an active bounded/debounced eviction policy.ImageTypeassets byAssetSourceand type. For static JPEG/PNG/WebP/custom images, decoding converts the compressed bytes into RGBA image buffers, so large onboarding assets can occupy width × height × 4 bytes while retained.Duplicate check
Open issue #9789 strongly matches the image-cache portion of this report. I did not find a second likely duplicate or an open/recently closed issue for the onboarding RGBA decode portion, so this issue is not being marked as a duplicate under the repository dedupe threshold.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz