Skip to content

fix: avoid rendering share modal without a session#13942

Open
KRRT7 wants to merge 1 commit into
warpdotdev:masterfrom
KRRT7:fix-share-modal-render-loop
Open

fix: avoid rendering share modal without a session#13942
KRRT7 wants to merge 1 commit into
warpdotdev:masterfrom
KRRT7:fix-share-modal-render-loop

Conversation

@KRRT7

@KRRT7 KRRT7 commented Jul 18, 2026

Copy link
Copy Markdown

Description

Fixes a share-modal lifecycle bug where the pane group could mark the modal open before confirming the terminal session existed. That left a modal with no model mounted, causing repeated render-time warnings and unnecessary repaint/logging work.

Linked Issue

Testing

  • cargo nextest run -p warp -E "test(share_block_modal)"
  • cargo clippy -p warp --lib --tests -- -D warnings
  • cargo fmt --all
  • git diff --check

This is a lifecycle/performance fix with no visual UI change, so screenshots are not applicable.

Changelog

CHANGELOG-BUG-FIX: Avoid repeated share-modal rendering when no terminal session is available.

@cla-bot cla-bot Bot added the cla-signed label Jul 18, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Jul 18, 2026
@oz-for-oss

oz-for-oss Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@KRRT7

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @seemeroland.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR prevents the pane group from marking the share-block modal open until it has confirmed that the terminal session still exists, and quiets the render-time fallback log for stale modal/model races.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found in the changed hunks.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss
oz-for-oss Bot requested a review from seemeroland July 18, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant