Skip to content

Update dependencies, move to libadwaita 1.9's sidebar and shortcuts dialog, and harden CI - #32

Merged
BVisagie merged 13 commits into
mainfrom
chore/deps-adwaita-ci
Nov 30, 2026
Merged

BVisagie merged 13 commits into
mainfrom
chore/deps-adwaita-ci

Conversation

@BVisagie

Copy link
Copy Markdown
Owner

A review of the project's dependencies and GitHub Actions found:

  • a known vulnerability in an indirect dependency, url, which no alert had flagged;
  • a Bitwarden CLI pin two releases behind;
  • a few workflow gaps.

GTK and libadwaita were also held at older feature levels while the app built by hand what libadwaita 1.8 and 1.9 now provide. This updates all of that, one commit per topic.

Dependencies

  • cargo update within Rust 1.99. Among the updates is url 2.5.9, which fixes RUSTSEC-2026-0592, a stack overflow in Url::origin().
  • gtk4-layer-shell 0.9 with library 1.3. Quick access now asks for the compositor's close event, for example when its monitor goes away, and hides instead of staying marked visible with nothing on screen.
  • GTK 4.22 and libadwaita 1.9 are now the minimum, updated in docs/INSTALL.md.
  • Bitwarden CLI 2026.11.1 is the installed release. From 2026.11.0 Bitwarden names its licensed Linux archives bw-bit-linux-…, so the pin records the new file names, with the checksums GitHub publishes. The minimum stays 2026.10.1.

libadwaita widgets

  • The keyboard shortcuts dialog is now AdwShortcutsDialog, which adds search and a tab for each section.
  • The sidebar is now AdwSidebar. Section titles and separators are real sections rather than rows that can't be selected, and folders get their context menu from the sidebar: right-click, long-press, the Menu key or Shift+F10.
  • The sidebar can't indent, so a subfolder shows its parent beneath its name.
  • Generator and Send stay pinned below the list.
  • The screenshots that show the sidebar are retaken.

Workflows

  • CI builds with --locked and also checks the workspace on the rust-version from Cargo.toml.
  • Checkouts no longer leave the token in .git/config, where the release build's container and every build script could read it.
  • Jobs have timeouts, and a new push to a pull request cancels its CI run in progress.
  • A new audit.yml runs cargo audit every week and when Cargo.lock changes. It fails on any vulnerability.
  • Dependabot waits 7 days before proposing a new release; security updates are not delayed.
  • install.sh builds from source with --locked.

Left as they are:

  • zbus 6, until ksni moves to it (Port to zbus 6 iovxw/ksni#48);
  • the VTE feature level, since no newer API is needed;
  • quick access's footer keycaps, which the web page's demo copies.

Testing

  • cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings and cargo test --workspace --locked pass, and cargo +1.99 check --workspace --all-targets --locked passes.
  • actionlint passes on the workflows.
  • cargo audit reports no vulnerabilities. It warns that zvariant, zvariant_derive and zbus_names 5.x are unmaintained; they go away with zbus 6.
  • Both contract tests, the CLI's and the daemon's, pass against Bitwarden CLI 2026.11.1 on a throwaway account. Both downloaded archives match the recorded checksums.
  • I rendered the app offscreen on the demo vault and checked:
    • the sidebar's sections, counts, nested folders and selection, in a dark and a light theme;
    • that choosing Generator or Send clears the vault selection;
    • the collapsed layout;
    • the shortcuts dialog;
    • the folder context menu, opened from the keyboard, with Rename receiving the right folder.
  • With logging, I checked that rebuilding the sidebar on sync keeps the shown filter, including Archive and Trash.

Not tested live on Hyprland: the compositor closing quick access's surface, and real right-clicks in the sidebar.

🤖 Generated with Claude Code

BVisagie and others added 13 commits November 30, 2026 10:33
Takes every update the lockfile allows within Rust 1.99, among them url
2.5.9, which fixes a stack overflow in Url::origin(). Also drops the unused
authors key, which Cargo now warns about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gtk4-layer-shell 1.3 no longer passes the compositor's close event to GTK
unless asked, so a surface closed with its monitor left the window marked
visible with nothing on screen. Upgrade the bindings to 0.9, ask for the
event, and hide the window on it instead of destroying it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libadwaita 1.9 brings the shortcuts dialog and sidebar the app is about
to use, and itself needs GTK 4.21 or newer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AdwShortcutsDialog replaces the hand-built one. It draws the keys
itself, follows the theme, and adds search and a tab for each section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adw::Sidebar replaces the hand-made list box. Sections give the titles
and separators that used to be unselectable rows padded into the filter
list, and its context menu replaces the right-click and menu-key handlers
and popover for folders. The sidebar cannot indent, so a subfolder shows
its parent beneath its name. The generator and Send stay pinned below,
in a second sidebar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From 2026.11.0, Bitwarden names its licensed Linux archives bw-bit-linux,
in place of bw-linux, so the pin records the new names with the
checksums GitHub publishes. Both contract tests pass against 2026.11.1;
the minimum stays 2026.10.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CI builds with --locked, so a lockfile that does not match Cargo.toml
  fails, and checks the workspace on the oldest Rust it claims.
- Checkouts no longer leave the token in .git/config, where the release
  build's container and every build script could read it.
- Jobs time out instead of running for six hours, and a new push to a
  pull request cancels its CI run in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependabot raised no alert for RUSTSEC-2026-0592 in url, an indirect
dependency, ten days after it was published. cargo audit runs weekly and
whenever Cargo.lock changes, and fails on any vulnerability.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cooldown leaves time for a compromised release to be found and pulled;
security updates still come at once. The zbus rule now names the ksni
pull request it waits for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh now builds with --locked, as package.sh already does, so a
source install gets the dependency versions CI tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libadwaita selects the first sidebar item as sections are added, which
showed All items for a moment on every sync. With Archive or Trash open,
that replaced the list, so the selected item was lost. Selection changes
are ignored during the rebuild and the shown filter is applied once after
it. The menu key's sidebar-wide menu is now set wherever a filter is
applied, so falling back from a deleted folder clears it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A rebuild with Generator or Send shown left All items selected as well,
so clicking it did nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BVisagie
BVisagie merged commit cf10f43 into main Nov 30, 2026
6 checks passed
@BVisagie
BVisagie deleted the chore/deps-adwaita-ci branch November 30, 2026 11:47
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