Draft
Match terminal chrome layout to the user’s OS#105
Conversation
Agent-Logs-Url: https://github.com/scaryrawr/sl/sessions/9a12051f-666a-405c-a0b2-7daaf1b63772 Co-authored-by: scaryrawr <661373+scaryrawr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/scaryrawr/sl/sessions/9a12051f-666a-405c-a0b2-7daaf1b63772 Co-authored-by: scaryrawr <661373+scaryrawr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/scaryrawr/sl/sessions/9a12051f-666a-405c-a0b2-7daaf1b63772 Co-authored-by: scaryrawr <661373+scaryrawr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update terminal window buttons and title bar for user's OS
Match terminal chrome layout to the user’s OS
Apr 3, 2026
Owner
|
@copilot can we add screenshots to demo the OS detection? I don't see any in the PR right now. |
Author
Added the screenshots to the PR description and linked them here as well: Default/non-macOS: https://github.com/scaryrawr/sl/blob/copilot/match-terminal-buttons-os/.github/images/terminal-default.png?raw=1 |
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.
The embedded terminal chrome was using a single hardcoded title bar layout for every platform. This updates the window controls to follow the user’s OS conventions, including placing macOS controls on the left and keeping other platforms on the right.
Terminal chrome by platform
navigator.userAgentData.platform, with fallback tonavigator.platformandnavigator.userAgentRendering cleanup
terminal.tsxCoverage
userAgentDatamacOS detectionnavigator.platformfallbacknavigator.userAgentfallbackPR screenshots
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl bin/rustc d30fe3.rlib u.o s-b9543289228bff/tmp/cargo-installn6Y46R/release/deps/rustc5XnioV/symbols.o bin/rustc(dns block)/home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl bin/rustc d30fe3.rlib /bin" && bun run serve:playwright s-b9543289228bff/tmp/cargo-installn6Y46R/release/deps/rustc5XnioV/symbols.o bin/rustc(dns block)/home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl lib/rustlib/x86_--diagnostic-width=120 e1d.walrus_macronode e1d.walrus_macro/home/REDACTED/work/sl/sl/node_modules/.bin/tsc e1d.walrus_macro--noEmit e1d.walrus_macro--project(dns block)If you need me to access, download, or install something from one of these locations, you can either: