Skip to content

Tried to render share modal without a model fires in a ~10-min render loop (up to 84/sec) #13757

Description

@aqeelat

Describe the bug

Warp logs Tried to render share modal without a model in a tight render loop. In ~/Library/Logs/warp.log I see 9,362 occurrences in ~25 hours of normal use, with bursts of up to 84 in a single second on a steady ~10-minute cadence (e.g. 07:00, 07:52, 08:14, 08:24, 08:35, 09:10, 09:18, 09:29, 09:51, 10:02). The regular spacing indicates a periodic background timer triggering a repaint storm while the modal view has no model.

To reproduce

  1. Use Warp normally (I had TUI apps / agent sessions running in panes).
  2. Inspect ~/Library/Logs/warp.log for the line:
    [WARN] Tried to render share modal without a model
    
  3. Observe it repeating in bursts (~84/sec) roughly every ~10 minutes.

Reproduces on a fresh boot / clean log (not a function of long uptime), in stable v0.2026.07.08.17.54.stable_02, and the warn is still present on current master.

Expected behavior

The ShareBlockModal view should not remain mounted and re-rendering once its model is None; at minimum it should not emit a warn! on every repaint.

Root cause / additional context

app/src/terminal/share_block_modal.rs, in render_modal() (present unchanged on master):

let single_block = match &self.model {
    Some(model) => { /* ... */ }
    None => {
        log::warn!("Tried to render share modal without a model");
        Empty::new().finish()
    }
};

The ShareBlockModal view lives at the PaneGroup level and its model is Option because terminal models are session-specific. Nothing removes the view from the tree when the model is absent, so it re-renders Empty and warns on every repaint. I do not use Warp Drive or session sharing, yet the loop still fires.

Suggested fix: don't mount/retain the modal view when model is None, or short-circuit rendering without the per-frame warn (rate-limit / move to debug!).

Screenshots, videos, and logs

Log signature (counts from one ~25h rotation): 9,362 hits; top per-second bursts all ~84. Happy to attach a redacted log excerpt on request.

Operating system (OS)

macOS

Operating system and version

macOS 15.7.7 (build 24G720); Apple M3 Pro / 36 GB

Shell Version

zsh 5.9

Current Warp version

v0.2026.07.08.17.54.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Does this block you from using Warp daily?

No (but it causes noticeable UI stalls during each burst)

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Pre-submit Checks

  • I searched Warp bugs and there are no duplicates
  • I searched the Warp known issues page and this is not there

Metadata

Metadata

Assignees

Labels

area:performanceGeneral application performance, responsiveness, and resource usage.area:warp-driveWarp Drive objects, sync, sharing, cloud object management, and persisted artifacts.bugSomething isn't working.os:macmacOS-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.warp:auto-triage-review

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions