Repository navigation
fix(linux): bring the Ctrl-Tab switcher to macOS parity - #45
Merged
Merged
Conversation
n2tr2
force-pushed
the
linux-ctrl-tab-parity
branch
from
September 30, 2026 20:19
bb9a16e to
10522e9
Compare
- Refuse a cycle under terminal zoom, the dashboard, a modal pick, a visible AdwDialog or an open popover, and re-check at commit so a modal that arrives mid-hold selects nothing. - Theme the card from the popover tokens and give the current row the sidebar's selection colors instead of a hardcoded dark fill. - Build the rows once per cycle and reveal the highlighted row's whole border box, so it never sits below the fold; the palette and pickers share the fixed reveal. - Place the card 12% down over the terminal area with a 0.2 dim, using InterfaceMetrics' panel width and offset clamp. - Own switcher input with one capture-phase window controller, so Ctrl-Tab cycles from the search bar and a rename entry too; Ctrl-Tab stays reserved and is consumed even when no cycle begins. - Cancel a live cycle on window deactivation and popover open. - AT-SPI scenarios cover zoom, scroll, sessionless, leader, entry and deactivation legs. Claude-Session: https://claude.ai/code/session_01Y6w9aeeiTMG3Kj2ZNbveyq
n2tr2
force-pushed
the
linux-ctrl-tab-parity
branch
from
October 1, 2026 15:30
10522e9 to
5d619b9
Compare
This was referenced Oct 1, 2026
n2tr2
added a commit
to n2tr2/agterm-linux
that referenced
this pull request
Oct 1, 2026
Ports macOS's zmx, Live-session and remote-session behaviour to the GTK frontend on linux-v0.33.1 (unchanged on macOS since v0.32). Stacked on melonamin#45. - Exit capture follows the configured exit mode, keeps raw argv and unconsumed pending replay, and reads zmx foregrounds from one fresh bounded snapshot per pass; launch replay is latched to the launch restore decision, which restore.set's pin notice names. - A presenter's ask rejection takes back only that ask; held exits of replica panes and overlays run a hop after the callback and act only on the surface still in its slot. A stale session-overlay exit no longer closes a program or HTML page that took the slot. - Covered (follower) panes route keys through the keymap, then one takeover policy: the first other key takes the lead once, and neither its repeats nor modifier releases reach the PTY. The Ctrl-Tab commit stays with melonamin#45's window-level controller. - Remote rows get the bundled agterm-remote-symbolic glyph in the sidebar, Ctrl-Tab and popovers, plus a sidebar-only disconnected variant; local launches from a remote row start in a local directory. - zmx kill confirmations are read from stderr and attach is validated before ssh. - A pending clipboard read rereads the live surface before completing, instead of a pointer a lead takeover may have freed. - Tests: presenter-frame fixtures seed follower roles under v0.33's lead gate; new suites for overlay exit identity, the key policy, held exits and foreground capture; the remote AT-SPI scenario covers both origin panes following, a covered-follower zoom leg, an origin-led ask and the returned ask on the viewer. - Docs: Linux contracts in .claude/rules and agterm-linux/docs; the skill's outdated flag and Live-sessions reset are scoped to macOS. Claude-Session: https://claude.ai/code/session_01P8k6PLdo5pmHZgytbrdevm
melonamin
added a commit
that referenced
this pull request
Oct 5, 2026
fix(linux): bring zmx, Live and remote sessions to macOS v0.33 parity (merge after #45)
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.
Brings the GTK Ctrl-Tab session switcher to parity with macOS
SessionSwitcher.swift. macOS is the reference and is unchanged. The cycle core was already right: MRU snapshot, index 1 preselected, Shift reverses, Esc cancels, and releasing Ctrl commits. These are the gaps around it.AdwDialogor a popovercanSwitchdoes; checked again at commit time, so a modal that opens mid-hold commits nothingalpha(#1e2228, 0.96)card with themed text, which is unreadable on light themes; the current row is only bold/opacitylist > rowpadding was clippedInterfaceMetricswidth and offset clamp; rounded card chrome sits on the scroller framepopupPopovercancel itRow subtitles (
workspace · detail, remote glyph) come from umputun#650 and are kept as upstream renders them.Screenshots
Before is
linux-v0.33.1, after is this branch. Both are isolated instances with 11 sessions, Ctrl held after two Tabs (the scroll shot: nine Tabs, 1100×440 window).Testing
swift test(454 tests) andswiftlint lint --strictpass.SessionSwitcherTests: gate terms, placement and clamp, card chrome bounds, reveal retry, CSS tokens, key classification.session-switch-zoom,-scroll,-sessionless,-leader,-entry,-deactivate. There are also placement, dim and subtitle assertions insession-switch-commit.theme setwith about 11 surfaces blocks the main thread insideghostty_app_update_config. It will be filed separately.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y6w9aeeiTMG3Kj2ZNbveyq