Skip to content

release: 0.0.2 - #1

Merged
ForeverInLaw merged 160 commits into
mainfrom
release/0.0.2
Dec 1, 2026
Merged

ForeverInLaw merged 160 commits into
mainfrom
release/0.0.2

Conversation

@ForeverInLaw

Copy link
Copy Markdown
Contributor

0.0.1 was not usable day to day. The stock Windows title bar sat above our tabs, the terminal stayed opaque over a background image, and the sidebar always listed every launchable thing, could not be hidden from the UI and showed a permanent "rec" badge. Long tab paths spilled out of their tabs. Mouse selection did not work inside Claude Code or Codex. tmux sessions were not restored after a restart, and closing a tab could even log out the shell inside tmux. Any settings change rewrote config.toml from scratch, which dropped comments and, with one typo in the file, replaced the user's settings with defaults. On Windows, every close asked for confirmation, Ctrl+C/V did not copy or paste, Ctrl+K reached the shell a second late, the working directory was not tracked, and wsl.exe was started every 10 seconds.

This branch fixes those issues and the rest of a usability audit, then adds what a daily driver needs:

  • An app-drawn title bar that holds the tabs, with our own window controls on Windows. Tabs shrink like browser tabs and show the end of a path.
  • A configurable, resizable sidebar that can be collapsed.
  • One compositing rule for the background image and window transparency.
  • Text selection that survives a full-screen app redrawing the screen, plus full mouse reporting.
  • tmux tabs that re-attach after a restart.
  • config.toml edited in place, and never written while it fails to parse.
  • Confirmation defaults that ask only when work would be lost, and a close-on-exit setting.
  • Windows key defaults, a text input that supports selection, and a tab context menu.
  • Window size and position kept between runs.
  • Shell integration loaded without editing the user's profiles.
  • Pasting a clipboard screenshot to agents over SSH, by uploading the image and typing its path.
  • An update check, an app icon and installers: a Windows setup, a .deb, an AppImage and a .dmg.

Two independent reviews covered the whole diff, and their findings are fixed in the last commits. CHANGELOG.md lists every user-facing change and has upgrade notes for 0.0.1 configs.

Only Linux was run. Code paths for Windows and macOS were type-checked and clippy-clean for the Windows target, but never run on those systems. That covers the title bar and caption buttons, transparency, bitmap clipboard paste, the cwd and running-program detection, the NSIS setup and the macOS bundle and its signing.

The sidebar listed every launchable thing (shells, agents, hosts, tmux,
recent history) plus a permanent "rec" badge. New sessions are opened
from the tab bar, so the sidebar now renders appearance.sidebar_sections
in the configured order, defaulting to open sessions and SSH hosts.
Unknown or repeated names are skipped instead of failing the file.

Hidden sections cost nothing: the history query and the tmux/screen
(or WSL) listing only run for visible sections, and showing a section
refreshes its data right away. Empty-state hints are one short line.
The edge follows the pointer live, clamped to the existing 160-640 px
bounds, and sidebar_width is written once when the button is released,
wherever that happens. Double-clicking the edge restores the default.
alacritty drops the selection whenever an erase touches a selected row.
Codex and Claude Code erase and rewrite rows on every frame, so a
selection made in them vanished at once. Output now goes through a VT
handler that keeps the selection across erases (as Windows Terminal
does); scrolling, screen switches and resets still move or drop it.
Programs that track the mouse only got button presses and releases,
and only in SGR encoding. Claude Code enables modes 1002/1003 and makes
its own selection from drag reports, so dragging in it selected nothing.

Mouse reports now follow the enabled tracking mode (drag and motion
once per cell) in the default, UTF-8 and SGR encodings. Whether a left
press is reported or starts a selection is decided at the press, so the
release is reported even outside the pane. Reports no longer clear the
selection or snap the view to the bottom, so moving the mouse after a
Shift-drag keeps the selection; a reported click still clears it.
Option bypasses reporting on macOS as well as Shift.
Every pane filled its whole area with the terminal background, which
covered the background image, and in a transparent window that fill
stacked on the root's own translucent fill.

The terminal area now paints the theme's terminal background once,
then the image (clipped to the area), then the panes, which leave
default-background cells unpainted. A new Surfaces helper owns the
alpha of each surface: solid in an opaque window, background_opacity
for the terminal and slightly more for the chrome in a transparent or
blurred one. The status bar uses it; the start-up error no longer
covers the image with a solid box.
Changing it in the settings or in config.toml now updates every open
window, not only windows opened afterwards.
Background opacity is only shown for a transparent or blurred window,
where it has an effect, and the docs describe the layering of colour,
image and text.
GPUI 0.2 caches the first, unbounded measurement of whitespace_nowrap text,
so text_ellipsis never shortened the line: it was clipped or spilled out.
StyledExt::truncate_line clamps to one line instead, which keeps the
measurement width-aware, and the list rows, status bar and tmux manager
use it.
A flex column measured a wrapping title before its width was known and
left room for one line, so long paths overlapped the muted meta line.
TitleBar hosts app content, leaves the rest of the strip as the window drag
area and draws the window controls where the platform expects them:
Windows caption buttons hit-tested by the OS (snap layouts, close through
should-close), room for the macOS traffic lights, and plain chrome under
Linux server-side decorations.
The native Windows title bar is gone: tabs, a sidebar toggle and the window
controls share one strip, and overlays no longer cover it. Tabs share one
width between 100 and 240 px, paths show home as ~ and only their last
components, and the new-tab buttons stay in view however many tabs are
open. With tab_bar = "bottom" or "hidden" the strip shows the window title.
The window root is clear in transparent and blurred windows, so the title
bar and the bottom tab bar paint their own background through Surfaces,
like the sidebar and status bar. The window opens with
window_background_appearance instead of a local copy of the mapping.
A flex basis does not count towards the strip's own size, so tabs stayed
as narrow as their label. A definite width that shrinks to the minimum
makes them share the free room like browser tabs.
Adds the [updates] check setting and a pure update model: tag parsing,
semver ordering with pre-releases offered only to pre-release builds,
parsing of the GitHub releases list, and a small state file that
remembers the last check and a skipped version.
Actions sit in a row under the text, so two of them fit next to a long
title, and clicking one also dismisses its toast.
A few seconds after start and then once a day, RedShell asks the GitHub
releases list for a newer version and offers it in a toast with Download
and Skip this version. "Check for Updates" in the palette checks right
away and also reports when RedShell is up to date or the check failed.
The request uses the reqwest build gpui already ships, so no new crates
are compiled. Nothing is downloaded or installed.
The sidebar and launcher searched PATH for several shells each time they
asked for profiles. AppState now keeps the list and rebuilds it when the
settings are loaded, reloaded or changed.
Text inputs gain a selection: Shift with the arrows, Home and End,
select all, click and drag, double-click for a word, word deletion, and
cut, copy and paste of the selection. Typing replaces the selection, the
text scrolls to keep the caret visible, and typed text and input method
compositions arrive through the platform input handler.

The editing state is a separate, tested LineEditor. Rename Tab opens
with the current title selected.
The Shell row is a list of the shells found on this computer instead of
a config key. Appearance can follow the system light or dark mode with a
chosen theme for each, and sets the font weight and how much inactive
panes dim. The Keybindings page shows command names and keys only, and
descriptions across the panel are rewritten in plain language.

The pure helpers move to settings_view/options.rs, and the Appearance
page is split into one function per section.
The theme name and the two shortcut hints are gone, and the columns and
rows appear for a second after the active pane is resized, as in Windows
Terminal and iTerm2.
…Shift+C

Ctrl+Shift+V did nothing in the palette, launcher, find bar and other
text fields on Windows and Linux, although it is the paste key of the
terminal right behind them.
…r does

The dialog printed the whole path, which wrapped over several lines,
while the tab showed only its tail.
Retake the gallery now that sidebar rows name the shell instead of
repeating the folder and the status bar shows paths with ~.
The session manager listed sessions and then the windows of each one,
one ssh connection per call. On Windows, where OpenSSH cannot share
connections, that was a full handshake per session on every refresh.

MuxClient::snapshot runs list-sessions and list-windows -a in a single
tmux client (chained with `;`, so no shell is needed on the target) and
groups the windows by session id. screen lists its sessions as before.

Batch commands now give up after 30 seconds, a host where tmux never
ran ("Error connecting to ...") lists no sessions instead of failing,
failures read as one line, and a missing multiplexer (exit 127) is a
NotInstalled error callers can tell apart.
The session manager started empty with "Loading sessions..." every time
it opened or switched targets, and on an SSH host that meant waiting for
a connection before seeing anything.

AppState now keeps the last listing of each target (local, ssh:<host>),
shared by the manager and the sidebar of every window. The manager shows
it right away with a quiet "Refreshing..." next to the title, replaces it
when the new listing lands, and keeps it under the error when a refresh
fails. One listing per target runs at a time, and the sidebar's local
sessions come from the same place, so opening the manager no longer lists
them twice.

MuxTarget::suits_polling becomes poll_interval, which also says how often
a target may be polled; failed targets wait five minutes before the timer
tries them again.
The tmux section only listed this computer, so a tab attached to tmux on
an SSH host still showed "No sessions running."

The section now also lists, under each host's name, the sessions of every
SSH host a tab runs on (SSH tabs and tmux or screen sessions there,
attached either way) and of hosts set up to attach a session. Clicking
one attaches it in a new tab, as the manager's Attach does. Hosts with
an open tab are listed at most once a minute, in one connection, in
batch mode, and from any number of windows only once; a host that fails
shows why in one muted line and waits five minutes. Hosts without a tab
are listed only when the section is shown, and WSL still is not polled.
@ForeverInLaw
ForeverInLaw merged commit 1c76d2a into main Dec 1, 2026
11 checks passed
@ForeverInLaw
ForeverInLaw deleted the release/0.0.2 branch December 1, 2026 19:19
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.

1 participant