Repository navigation
feat(windows): zmiana szerokości panelu bocznego i skróty Windows w sesji RDP - #271
Conversation
…esji RDP - Panel boczny: przeciąganie prawej krawędzi (180–480 px), szerokość zapamiętana w ustawieniach; peek w trybie skupienia bierze tę szerokość (#268). - Skróty Windows (Win, Alt+Tab): ustawienie globalne „na tym komputerze / na komputerze zdalnym” i nadpisanie per serwer, import/eksport keyboardhook w .rdp. Dotychczasowy tryb 2 działał jak lokalny, bo Waypoint nie używa pełnego ekranu kontrolki (#270). Closes #268 Closes #270 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
LlamaPReview — Blocking issues found
Inherited shortcut settings are lost in exported .rdp files
Exact-head CI remains unresolved (1 pending); no CI-dependent merge-safety claim is made.
Owner action: Pass the global setting to export, resolve it to 0 or 1, and test exports for both inherited choices.
1 further item in details.
Review details and evidence
| Priority | File | Finding | Evidence |
|---|---|---|---|
| P2 | src/RdpManager/Core/RdpFile.cs |
Inherited shortcut settings are lost in exported .rdp files |
confirmed |
Material unknowns
- Windows interaction checks have not been reported for whether the resize handle obstructs the scrollbar or whether Win and Alt+Tab reach a remote session. A failed check could establish an additional defect, but does not change the export finding.
- Check: Check scrollbar interaction and verify that Win and Alt+Tab reach the remote session on Windows.
LlamaPReview checks
- Reviewed changed regions in
src/RdpManager/Core/RdpFile.cs. - Reviewed changed regions in
src/RdpManager/Core/RdpConfigurator.cs. - Reviewed changed regions in
src/RdpManager/Models/ServerInfo.cs. - Reviewed changed regions in
tests/RdpManager.Tests/KeyboardHookModeTests.cs. - Reviewed changed regions in
tests/RdpManager.Tests/SidebarWidthTests.cs. - Read the complete PR-head file
src/RdpManager/RdpConnect.cs.
Still coding alone? Open CarbonChat, a chat room right inside Codex.
| sb.Append("redirectprinters:i:").Append(s.RedirectPrinters ? "1" : "0").Append("\r\n"); | ||
| sb.Append("drivestoredirect:s:").Append(s.RedirectDrives ? "*" : "").Append("\r\n"); | ||
| sb.Append("audiomode:i:").Append(Clamp(s.AudioMode, 0, 2).ToString(CultureInfo.InvariantCulture)).Append("\r\n"); | ||
| if (s.KeyboardHookMode == 0 || s.KeyboardHookMode == 1) |
There was a problem hiding this comment.
P2 | Confidence: High
Servers normally use KeyboardHookMode = -1 to inherit the global setting. The connection resolver applies that global choice, but the exporter receives only the server and writes keyboardhook only for explicit overrides. Thus, an inherited remote choice is omitted and mstsc uses its default mode 2—remote only in full screen—while an inherited local choice is not explicitly preserved in a full-screen mstsc session. Existing round-trip tests intentionally expect omission to preserve Waypoint's inheritance marker on reimport, but that does not preserve effective behavior in an mstsc-compatible export.
Evidence: changed region in src/RdpManager/Core/RdpFile.cs; changed region in src/RdpManager/Core/RdpConfigurator.cs; changed region in src/RdpManager/Models/ServerInfo.cs; changed region in tests/RdpManager.Tests/KeyboardHookModeTests.cs.
Co się zmienia
Panel boczny (#268). Prawą krawędź listy serwerów można przeciągnąć, w zakresie 180–480 px (domyślnie jak dotąd 228 px). Szerokość zapisuje się w ustawieniach. Panel wysuwany w trybie skupienia też ma tę szerokość. Na macOS nic nie trzeba było zmieniać:
NavigationSplitViewjuż pozwala przeciągać (240–420 px) i zapamiętuje szerokość.Skróty Windows w sesji RDP (#270). W Ustawieniach → RDP jest nowa opcja „Skróty Windows (Win, Alt+Tab)”: na tym komputerze albo na komputerze zdalnym. W edytorze serwera można ją nadpisać („Jak w ustawieniach” / lokalnie / zdalnie). Import i eksport
.rdpobsługująkeyboardhook.Dotąd kod ustawiał
KeyboardHookMode = 2(„zdalnie tylko w pełnym ekranie”). Ten tryb dotyczy pełnego ekranu samej kontrolki ActiveX, a Waypoint robi pełny ekran własnym oknem, więc w praktyce skróty zawsze działały lokalnie. Dlatego zostały dwie opcje, które naprawdę działają, a domyślna „na tym komputerze” zachowuje dotychczasowe działanie. Tryb da się ustawić tylko przed połączeniem, więc zmiana działa od następnego połączenia.Testy
tests/RdpManager.Tests/SidebarWidthTests.csiKeyboardHookModeTests.cs: napisane niezależnie, na podstawie kontraktu.-p:EnableWindowsTargeting=true). Testy uruchamia CI na Windows.Closes #268
Closes #270
🤖 Generated with Claude Code