Skip to content

Fix monotonic layout realization during temporary overlay visibility#63

Open
google-labs-jules[bot] wants to merge 2 commits into
mainfrom
fix/monotonic-layout-realization-16915579745302439965
Open

Fix monotonic layout realization during temporary overlay visibility#63
google-labs-jules[bot] wants to merge 2 commits into
mainfrom
fix/monotonic-layout-realization-16915579745302439965

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

Observed Problem:
When temporary overlay blocking masks (like hydration history overlays or session connection swap loading states) become visible over the chat root, the underlying UI controls inadvertently un-realized entirely, regressing their loaded state. This led to loss of scroll position and a visually discontinuous flash/flicker upon the overlay dismissing.

Root Cause:
The view model projection mapped ShouldLoadActiveConversationRoot and ShouldLoadTranscriptSurface directly to their respective ShouldShow... visual visibility predicates. When visibility dropped to false due to an overlay intercepting input and covering the screen, the layout un-realized because of its direct x:Load binding correlation. The intended lifecycle rule (layout realization should be monotonic once activated) was missed.

Architectural Safety of the Fix:
This fix simply introduces stateful latches (_hasLoadedActiveConversationRoot, _hasLoadedTranscriptSurface) to the ChatConversationSurfaceProjectionCoordinator strictly on the view model projection layer. It separates UI visualization state from underlying structural realization bounds. It does not introduce any hacky view code-behinds or side effect state machines.

Verification Commands Run:

dotnet build SalmonEgg.sln --configuration Debug
dotnet test tests/SalmonEgg.Presentation.Core.Tests/SalmonEgg.Presentation.Core.Tests.csproj --configuration Debug --no-restore

All unit tests, including adjusted projection overlay state machine assertions, passed successfully.

Unverified GUI-Only Risks:
Since this is a ViewModel-only fix that relies on Uno's standard x:Load handling to respect monotonic true bindings, there is a minor unverified assumption that the underlying XAML platforms correctly suspend layout passes (rather than just drawing) for realized but collapsed (Visibility.Collapsed) surfaces. This is standard behavior but would require a full GUI/Windows test loop if we needed pixel-perfect confirmation of the hidden states.


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

* Separates ShouldLoad realization logic from ShouldShow visual state.
* Ensures layout-loading states are monotonic and do not regress (unload) when a temporary blocking overlay appears.
* Fixes unintended UI unloading during fast session swaps, maintaining scroll position and visual continuity on resume.
@vercel

vercel Bot commented Jun 29, 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 Jun 29, 2026 11:29pm

@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.

@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.

* Separates ShouldLoad realization logic from ShouldShow visual state.
* Ensures layout-loading states are monotonic and do not regress (unload) when a temporary blocking overlay appears.
* Fixes unintended UI unloading during fast session swaps, maintaining scroll position and visual continuity on resume.
* Also fixed paths in source inspection tests to prevent Linux runner failures.
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