Skip to content

v0.9.5

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 20:55
· 34 commits to main since this release
8b571f2

What's Changed

Added

  • terminal theme — A new bundled preset draws every color from the terminal's own ANSI palette, so glab-tui follows the terminal or OS theme. Theme files and [theme] overrides now also accept ANSI color names ("light-blue") and palette indexes ("8") besides hex values (#598) — thanks @Luckystrike561, @rcieri.
  • theme_preset = "auto" — Picks theme_dark (default default) or theme_light (default catppuccin-latte) from the terminal's background, read from COLORFGBG or asked of the terminal at startup. appearance = "dark" or "light" forces one (#598) — thanks @Luckystrike561, @rcieri.
  • Theme picker live preview — Moving through the Configure View's theme picker repaints the screen with the highlighted preset. Enter keeps it, Esc restores the previous one. The picker now opens on the current preset (#598) — thanks @Luckystrike561, @rcieri.
  • Remappable navigation, diff view, selector and dialog keys — A binding can now be a list of keys (next_row = ["j", "Down"]), and "" or [] unbinds an action. New tables: [keybindings.list] (next_row, previous_row, first_row, last_row, open, back, search, check_updates, the keys every list view handles after the tab's own), [keybindings.diff] (every diff view key), [keybindings.selector] (next, previous, toggle, confirm, filter, close) and [keybindings.dialog] (the confirmation dialog's navigation, submit and cancel). global.leave_scope returns from a project narrowed with G and jobs.clear_trace_search clears the job trace search. Ctrl+C is global.force_quit. The help modal and the custom-command shadow report are generated from the same registry, so they list exactly the keys that act, with the configured keys, and name the shadowing action by its config key (e.g. keybindings.list.next_row). A [keybindings] entry that names no table or action, whose value is not a key or a list of keys, or that names a key glab-tui cannot read ("esc", "Ctrl+Shift+N") is reported in the Terminal tab and binds nothing (the action keeps its defaults), instead of resetting the whole config to its defaults (#594) — thanks @Luckystrike561.
  • Multi-key sequence support across any keybinding — Any keybinding in config.toml can now be a sequence of plain characters typed in order (e.g. gg, gcc). While keys typed so far match a sequence prefix, glab-tui buffers the input and waits up to keybinding_timeout_ms (default 1000 ms) before dropping unrecognized keys or firing a lone waiting prefix. Resolved sequences dispatch within the same event pass without extra redraw latency (#622, #692) — thanks @Luckystrike561.
  • Width-aware diff layout and preview placement — The diff view now picks its layout from the width of the diff pane: side-by-side when it has at least 121 columns inside its border (two 60-column sides and the divider), unified below, so it changes when the terminal is resized or the file tree is shown or hidden. A line selection holds the layout until it ends, and going back to unified returns the cursor to the line it left. 1 pins side-by-side and 2 unified for the rest of the session, d toggles and pins the other one, and 0 goes back to picking by width. The diff pane title names the layout and whether it is auto or pinned. Diff search (/) now lands on and highlights the matching row in side-by-side. When the list would keep fewer than 38 columns beside the preview, the preview first narrows to 30 columns, then moves below the list (under 90 columns with the default sidebar) instead of disappearing, then gives up the terminal log under them, and is only hidden when the terminal is too short to stack both. Both decisions go through one ordered compaction algorithm (ui::compaction::compact) meant to be shared with the overlays (#597) — thanks @Luckystrike561.
  • GitHub conversation comments and review summaries in review threads — On a GitHub PR, the review threads overlay (T in the diff view) and glab-tui review threads now list the PR's conversation comments and the body of every submitted review as general threads, ordered by creation time with the inline threads. They are read with gh pr view --json comments,reviews beside the existing calls. A review summary shows its verdict (APPROVED, CHANGES REQUESTED, COMMENTED, DISMISSED) as a badge in the overlay and as review_state in the JSON, and a review approved without a body is left out. Overlay rows now also show each thread's age. Neither kind can be replied to or resolved: the overlay offers no reply on them (a conversation comment can still be edited or deleted), and review reply / review resolve given one of their ids exit non-zero naming the limitation (#696) — thanks @Luckystrike561, @rcieri.
  • Submit-review overlay — r in the diff view (and Submit on the dialog shown when leaving it with drafts) opens one dialog instead of a verdict picker followed by a summary prompt. It holds the verdict as radio buttons (Comment, Approve, Request changes, Keep as draft), the summary (Ctrl+E opens $EDITOR), how many draft comments the review posts, and Submit / Cancel buttons. j/k pick the verdict, and j or Down past the last one (or Tab) moves into the summary to type it. The footer names the keys of the focused part. The verdict now starts on Comment: the old picker started on Approve, so r Enter Enter approved. While the review is posted the dialog shows that it is submitting and ignores keys, Ctrl+C included. A failure is shown inside the dialog and keeps the draft comments and the summary: before, the drafts were dropped before the request ran and a failure only raised a toast. On GitLab, a failure after the comments are published (the approval or the summary note) leaves them posted, so submitting the kept drafts again posts them twice. An empty Comment or Request changes review is refused in the dialog before anything is sent (#599) — thanks @Luckystrike561.
  • Confirmation dialogs on a shared form — Every confirmation dialog (merge, close, delete, rebase, cancel, roll back, submit review, re-run) is now drawn and driven by one form: a title, its options as radio and toggle groups, item lists and notes, a button row and a key footer naming the keys of the focused group. The merge strategy is a real radio group on one row instead of three options prefixed with Strategy:, a bulk merge lists the MRs/PRs it merges, a stack merge lists the PRs it takes along, and a bulk branch delete lists its branches one per row instead of joined into one paragraph. Tab / Shift+Tab move between groups, j/k within one, h/l across radios and buttons, Space or Enter selects or toggles the focused option, and Enter on a button runs it. Destructive actions open in a danger tone: red border, focus and Enter on Cancel. The title, buttons and footer always stay on screen: on a short terminal the body drops its blank rows and cuts long lists to the entries that fit plus an N more row, then scrolls to keep the focused option in view. The screen behind an open dialog is dimmed instead of left as is (#592) — thanks @Luckystrike561, @rcieri.
  • New theme tokens — accent, key_hint, danger_border and backdrop_dim, set in every bundled theme. Themes that leave them out fall back to purple, yellow, red and text_muted (#592) — thanks @Luckystrike561, @rcieri.
  • More highlighted languages and word-level diff marks — The diff view and Markdown code fences now highlight TypeScript, TSX, TOML, Dockerfile, Kotlin, Swift, Nix, Zig, Terraform/HCL, Svelte, Vue, F# and the rest of bat's syntax set, through the two-face crate (fancy-regex build, no C dependency), which replaces syntect's bundled syntaxes. Fences tagged typescript, kotlin, swift, dockerfile or toml are no longer plain text. Each removed line is paired with the added line that replaces it, and the words that changed get a stronger background on both sides, keeping their syntax colors. Pairs that share less than half their words, runs of removed and added lines of different lengths, and lines over 4 KiB keep whole-line colouring only. Two new theme tokens, diff_addition_emph_bg and diff_deletion_emph_bg, set those backgrounds in every bundled theme, and a custom theme without them mixes 30% of the row foreground into the row background. A [theme] override of a diff row colour mixes them again from the new row colours unless it sets them too (#596) — thanks @Luckystrike561.

Fixed

  • Diff search matches readable on every theme — A diff row matching the search is now drawn entirely in diff_search_fg (black in terminal, yellow elsewhere) on diff_search_bg. Its syntax and addition/deletion colors were picked for the row's own background and could be unreadable on the search one, light text on ANSI yellow in the terminal preset. The matched characters stay bold and underlined (#598) — thanks @Luckystrike561, @rcieri.
  • Destructive actions always ask first — Cancelling a single job on the Jobs tab cancelled it at once, while a selection of jobs asked for confirmation. Every action the registry marks destructive (close, reopen, delete, revoke, cancel, stop, roll back, mark all read) now opens its confirmation dialog whatever key it is bound to (#594) — thanks @Luckystrike561.
  • q in the diff view closes the diff — It quit glab-tui, as the global quit key was checked before the diff view. It now cancels the selection or closes the diff (asking first with pending drafts), as documented (#594) — thanks @Luckystrike561.
  • q on a confirmation dialog no longer quits — The quit key was checked before an open confirmation dialog (close, delete, cancel, merge, re-run, ...) saw it, so q quit glab-tui instead of leaving the dialog open (#594) — thanks @Luckystrike561.
  • Leaving a narrowed project reloads its group — Esc (leave_scope) in a project narrowed from its group with G switched the scope back but kept showing the project's rows until the next refresh, because the scope was compared after it had already been swapped. It now restores the group's cached rows and rebuilds its client, as entering the project does (#594) — thanks @Luckystrike561.
  • Failed GitLab reviews no longer leave draft notes behind — When a draft note or bulk_publish failed, the draft notes the attempt had already created stayed pending on the MR, and the next bulk_publish (a retry or any later review) published them a second time. They are now deleted again, from the submit-review overlay and from glab-tui review submit alike, and the error says how many could not be deleted (#599) — thanks @Luckystrike561.
  • Theme picker keeps color overrides — Picking a theme in the Configure View now applies the per-color [theme] overrides from config.toml on top of the preset, as a restart does, instead of dropping them until the next launch. A theme change or repo switch no longer re-reads the config file to resolve the theme and icons (#589) — thanks @Luckystrike561.
  • No refetch after read-only commands — Opening an issue, MR/PR, pipeline, job, runner, release, milestone, branch, environment or todo in the browser, or downloading a job artifact, no longer refetches the active tab and the open diff. Only commands that change something on the forge do (#595) — thanks @Luckystrike561, @rcieri.
  • Idle preview prefetch — The jobs of the highlighted pipeline or MR and the issues of the highlighted milestone are looked up when the highlight, the list or the cache changes, instead of on every tick, so an idle Pipelines, MRs or Milestones tab no longer filters its list four times a second (#595) — thanks @Luckystrike561, @rcieri.
  • Diff comment actions in group scope — Posting, replying to, resolving, editing and deleting a comment in an MR/PR diff now act on the diff's own project instead of the first listed MR with the same number or the group path (#595) — thanks @Luckystrike561, @rcieri.
  • GitHub approval state without required reviews — On a GitHub repository whose branch requires no reviews, reviewDecision is null, so the Approval and Workflow columns never showed a PR as approved or returned with changes requested. They now follow the PR's latest reviews: approved when someone approved and nobody requested changes, changes requested when any latest review did (#761) — thanks @Luckystrike561, @rcieri.
  • GitLab environments last deployment — GitLab environment listings omit last_deployment. list_environments now fetches the project's newest deployments in a single call and correlates each environment to its latest deployment across all statuses. The Deployment Status column is hidden on GitHub where environments lack this status (#777) — thanks @seflue.
  • GitHub deployment status — GitHub's REST deployment endpoint omits status, leaving the Deployments Status column and inspector field empty. An eager GraphQL query now retrieves latestStatus for each deployment (matched by databaseId), rendering status badges including new error and inactive badges (#775) — thanks @seflue.
  • GitLab pipeline duration and actor — GitLab's basic pipeline list (GET /projects/:id/pipelines) lacks duration and trigger user metadata, displaying duration as "-" and actor as empty. Both are now batch-fetched via aliased GraphQL project.pipelines(ids:) queries (up to 100 pipelines per page) (#774) — thanks @seflue.
  • Nullable GitHub deployment description — Deserialization of GitHub deployment responses now tolerates null in the description field instead of failing the entire deployment list and blocking environment management (#765) — thanks @seflue.
  • GitLab tag deployment parsing — GitLab's Deployment entity does not include a top-level tag field. Deployments now read tag status from deployable.tag, fixing JSON deserialization errors and accurately reflecting tag-based deployments in the inspector (#764) — thanks @seflue.
  • GitLab group-mode pipelines — Navigating to the Pipelines tab in a GitLab group scope no longer requests the unsupported GET /groups/:id/pipelines route (which returned 404). It now displays a clear unsupported placeholder rather than an empty table and error toast, while preserving GitHub organization pipeline listings (#758) — thanks @seflue.
  • App defaults isolated from user configs — App::default() now builds strictly from Config::default() without reading ambient global or repository-local config.toml files, ensuring clean unit test execution regardless of developer configuration (#757) — thanks @seflue.
  • Job trace log search scroll — Searching inside a job trace when line wrapping is enabled now scrolls to the wrapped row index via job_trace_scroll_to_line rather than the raw line index, matching jump_to_failure behavior (#752) — thanks @seflue.
  • Reset follow mode on job trace close — Closing or replacing a job trace (Esc, tab refresh without the active job, or opening a pipeline) now clears job_trace_follow alongside the trace buffer so subsequent job traces do not inadvertently launch with follow mode enabled (#754) — thanks @seflue.
  • Browser launch commands for jobs and milestones — Fixed Jobs tab browser launch by opening Job::web_url directly via git web--browse rather than calling gh run view <job-id> --web (which treated the job ID as a run ID and failed with 404). Fixed GitLab milestone state transitions to call glab milestone edit <id> --state close|activate instead of non-existent glab milestone close/reopen subcommands, and opened group milestones using their reported web_url (#705, #706, #730) — thanks @seflue.
  • Prefix-aware GitLab assignee and reviewer updates — Updating assignees or reviewers on GitLab now sends --assignee=+user/=!user and --reviewer=+user/=!user prefixes to selectively add or remove users rather than replacing or clearing the entire list (#740, #751) — thanks @seflue.
  • Clean GitLab section markers from job logs — Strip GitLab Runner section_start: and section_end: control markers and trailing \r\e[0K sequences from job trace lines so raw runner formatting markers are hidden in the Jobs pane (#747, #755) — thanks @seflue.
  • Disable trace follow mode on GitHub — Because GitHub Action logs are only available for completed jobs that never stream or append output, follow mode (f) is disabled and omitted from the help overlay when connected to GitHub repositories (#744, #753) — thanks @seflue.
  • Pipelines preview isolation from Jobs tab — Background job previews for highlighted pipelines on the Pipelines tab now update pipeline_jobs only, preventing them from overwriting the Jobs tab's active job list or causing unwanted layout zoom (#738) — thanks @seflue.
  • Child pipeline cache invalidation — Refreshes or re-entries into child pipelines now invalidate cached jobs for child pipelines whose statuses changed, ensuring inspector metadata and stage dots accurately reflect updated statuses (#703, #736) — thanks @seflue.
  • Preserve opened pipeline on Jobs tab across refreshes — Refreshing the Jobs tab now re-fetches the currently opened pipeline instead of reverting to the checked-out branch's latest pipeline. The Jobs tab title also displays a breadcrumb trail (#parent › #child) for opened child pipelines (#721) — thanks @seflue.
  • Prioritized notice queue — Replaced the single error_message slot with a dedicated NoticeQueue (Notice / NoticeLevel / RequestTag), routing errors and offline cache notices directly to their initiating modal or toast and preventing rapid info notices from displacing active error toasts (#590) — thanks @Luckystrike561, @rcieri.
  • Key sequence timeout and cancellation guards — Allowed Ctrl+C to immediately force-quit while a multi-key sequence prefix is waiting; rejected non-existent F0 keys and mis-cased names; resolved Return and lowercase function keys as single keys rather than pending sequences (#622, #692) — thanks @Luckystrike561.

Changed

  • Remapping a key replaces it — Every key glab-tui handles in a list view, the diff view, a selector or a confirmation dialog is now an action in one registry (src/keymap.rs), and the keys a [keybindings.<table>] entry sets replace the action's defaults. Before, many actions also kept a hard-coded key next to their configurable one, so remapping pipelines.retry away from r added a key instead of moving it. Those keys are now ordinary defaults of their action: F1 (help), ? and q in list views (help / quit), Ctrl+x in the edit menu (submit_edit), F5 / Ctrl+r (refresh), Ctrl+s (switch_repo), , (configure), l / → and h / ← (next_tab / prev_tab), J / K (scroll_down / scroll_up), P on the Terminal tab (inspect_command), M on Issues, A / R / D / P / I on MRs/PRs, Space / r / d / W on Pipelines and S on Jobs. A config that sets one of these actions to a single key (e.g. help = "?") loses the other default: list every key you want (help = ["?", "F1"]). Built-in plain-character keys now match only with their own modifiers, so Ctrl+q or Alt+r no longer quit or retry and are free for custom bindings. Named keys (Enter, Esc, arrows, F-keys) still match whatever the modifiers, and Ctrl+/Alt+ combos also match with extra ones. In the diff view, the previous search match moves from Ctrl+Shift+N (which the binding grammar cannot express) to Ctrl+p. Ctrl+n also matches with Shift held, so the old Ctrl+Shift+N now jumps to the next match (#594) — thanks @Luckystrike561.
  • Confirmation dialog keys — y no longer confirms a dialog, Enter on its Submit button does. In a dialog with options, Tab / Shift+Tab move between its groups (the strategy radio, the toggles) and stop once on the button row, on Cancel, where h/l move between the buttons. They wrap around instead of stopping on each option and button and halting at Cancel. j/Down past the last option still lands on Cancel, so m k j Enter still cancels, but j/k no longer wrap between the buttons and the options (#592) — thanks @Luckystrike561, @rcieri.
  • Diff layout keys take 1, 2 and 0 — The diff view now handles 1, 2 and 0 by default (see the width-aware diff layout below), so [[custom_keybindings.diff]] entries bound to them no longer run and are reported as never running. To keep such an entry, move the layout key it collides with under the new [keybindings.diff] table (layout_side_by_side, layout_unified, layout_auto) (#597) — thanks @Luckystrike561.
  • Update and Effect architecture refactor — Refactored the core application runtime into a pure synchronous state transition function update(app, event) -> Vec<Effect> and a dedicated asynchronous effect executor (run_effects), isolating tasks, background threads, and foreground terminal suspensions from state updates (#595) — thanks @Luckystrike561, @rcieri.
  • Per-frame RenderCtx — Eliminated global THEME and ICONS RwLock singletons in favor of App-owned theme and icon sets, passing styling context via a lightweight RenderCtx parameter to all render functions and preserving color overrides during live theme switching (#589, #694) — thanks @Luckystrike561.
  • Unified browser opener and milestone models — Extracted duplicated git web--browse execution into a shared backend::browser::open_url helper, and refactored backend milestone calls to pass whole Milestone domain models instead of raw iids (#729) — thanks @seflue.
  • E2E test suite hardening and mock verification — Enforced strict CLI mock validation that fails tests when unrecognized or unhandled CLI calls are made, cross-checked mocked calls against cli-reference.md, replaced brittle fixed sleeps with event-driven emulator state assertions (wait_for_screen_contains), and pinned spawned test subprocesses to CARGO_MANIFEST_DIR (#712, #720, #734, #768, #771) — thanks @seflue.
  • Developer tooling and release process — Integrated just check across CI workflows and developer guidelines, added test-first requirements to bugfix PR templates, and isolated AGENTS.md from automated release preparation scripts (#759, #760) — thanks @seflue.

Dependencies

  • Bumped toml to 1.2.0 (#718), pulldown-cmark to 0.13.6 (#717), added two-face 0.5 and similar 3.2, and updated CI actions taiki-e/install-action to 2.90.2 (#695, #716), docker/login-action to 4.8.0 (#714), and softprops/action-gh-release to 3.0.4 (#715) — thanks @dependabot.

Contributors

Full Changelog: v0.9.4...v0.9.5