Repository navigation
fix(mac): pasek kart i przycisk ponownego połączenia po rozłączeniu RDP - #272
Merged
Merged
Conversation
Karta końca sesji miała tylko maksymalną szerokość i tekst bez obcinania. Przy liczeniu minimalnego rozmiaru okna SwiftUI mierzył ją przy szerokości 0, długi komunikat o rozłączeniu dawał ~2100 px wysokości, a zawartość okna wypychała pasek kart nad okno i kartę pod nie (czarny ekran). Stała szerokość 460 px daje 144 px przy każdej szerokości. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
LlamaPReview — Verification needed
The exact-head runtime layout and button behavior are unverified, and the enclosing placement of SessionTabBar and SessionContent was not retrieved. A successful check would support closure; a failure would require correction before merge.
Exact-head CI remains unresolved (3 pending); no CI-dependent merge-safety claim is made.
Owner action: On macOS, measure the card at width zero with the reported disconnect message, then reproduce a server disconnect, select its tab, and exercise Close and Reconnect, using separate sessions as needed.
Review details and evidence
Material unknowns
- The exact-head runtime layout and button behavior are unverified, and the enclosing placement of SessionTabBar and SessionContent was not retrieved. A successful check would support closure; a failure would require correction before merge.
LlamaPReview checks
- Read the complete PR-head file
mac/App/Sources/Waypoint/RdpSessionView.swift. - Read the complete PR-head file
mac/App/Sources/Waypoint/TerminalViews.swift.
LlamaPReview is open source. Explore the code behind this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Po rozłączeniu sesji RDP przez serwer i przejściu na jej kartę znikał pasek kart, a okno było całe czarne. Nie było widać przycisków „Zamknij kartę” i „Połącz ponownie”.
Przyczyna
Karta końca sesji w
RdpSessionViewmiała.frame(maxWidth: 460), a tekstfixedSize(horizontal: false, vertical: true). Licząc minimalny rozmiar okna, SwiftUI mierzy widok przy szerokości 0. Długi komunikat o rozłączeniu łamał się wtedy po słowie i karta miała około 2100 px wysokości. Logi z sesji pokazały zawartość okna o wysokości 2195 px przy oknie 1099 px i pasek kart na y = −470.Zmiana
.frame(width: 460)zamiast.frame(maxWidth: 460). Karta z tym komunikatem ma 144 px przy każdej proponowanej szerokości.Sprawdzenie
NSHostingController.sizeThatFits) przy szerokości 0: przed zmianą 2096 px, po zmianie 144 px.🤖 Generated with Claude Code