Skip to content

fix(lifecycle): prevent layout un-loading during overlay visibility transitions#49

Open
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-lifecycle-loading-monotonicity-13194980056359488251
Open

fix(lifecycle): prevent layout un-loading during overlay visibility transitions#49
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-lifecycle-loading-monotonicity-13194980056359488251

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This PR addresses a lifecycle audit issue concerning chat layout loading states. The ShouldLoad... properties (used for lazy loading via x:Load) should not regress when visual overlays (ShouldShow...) temporarily hide the component.

Observed Problem: Transient overlays caused heavy layout roots to be unloaded because ShouldLoad... was directly bound to ShouldShow....
Root Cause: The projection coordinator lacked state memory to keep components loaded once they were instantiated, violating monotonicity.
Safe Architectural Fix: Introduced private memory flags (_hasLoadedActiveConversationRoot, _hasLoadedTranscriptSurface) to ChatConversationSurfaceProjectionCoordinator to explicitly enforce the monotonic requirement, completely independent of the transient ShouldShow... state.
Verification Run: dotnet test SalmonEgg.sln --configuration Debug --no-build verified that all core tests pass, including the explicitly updated ChatConversationSurfaceProjectionCoordinatorTests.cs and ChatViewModelTests.cs.
Remaining GUI-Only Risks: None. The layout memory enforces monotonic persistence which inherently stabilizes GUI behavior underneath any overlays.


PR created automatically by Jules for task 13194980056359488251 started by @YoungSx

…ansitions

Modifies `ChatConversationSurfaceProjectionCoordinator` to ensure that layout-loading states (`ShouldLoadActiveConversationRoot` and `ShouldLoadTranscriptSurface`) are monotonic. Previously, these states regressed (un-loaded) when a temporary blocking overlay (like a session switch) became visible, causing UI layout thrashing. The fix tracks whether these layouts have ever been visible in the current lifecycle and permanently sets their load properties to true once they have. Updated the corresponding tests to reflect this correct, monotonic behavior.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
salmonegg Ready Ready Preview, Comment May 26, 2026 10:38pm

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants