Skip to content

v0.42.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 11:20
· 4 commits to main since this release
2413515

Gnosis 0.42 changes how you work through a PR. The Changes file tree shows the functions and classes each file changes, and you can review them one at a time with V. A new conflict resolver merges a conflict only when it can prove the result. Every PR action now sits in one header, and the Summary tab replaces Feedback. Gnosis also has user documentation at gnosis.to/docs.

This release brings together the six 0.42 pre-releases (beta.1 to beta.6).

Review with V (Beta)
Turn on Symbols above the Changes file tree, or Settings › Review › "Show changed symbols in the file tree".

  • Expand a file to see what it changes: its imports or top-level code, then each changed function, method or class, nested as in the code. Rows show the kind of symbol, whether it was added, changed or removed, and the line counts. Click a row to go to it. The row you're reading lights up as you scroll, and the tree search finds symbol names. (#581)
  • One key to work through a PR. With Unviewed only and Symbols on, press V to mark what you're reading as viewed and go to the next change, until nothing is left. Every change is one stop: a function, a class's own lines (Body), a file's Imports or Top level, or a whole file without symbols, such as JSON, Markdown, an image or a lockfile. (#582)
  • Progress you can see. Files show 2/5, folders add up their files, and the toolbar shows what's left, such as "18 / 145 files viewed · 42 left to review". A class shows ✓ when everything in it is viewed. A file is marked Viewed when its last item is. When you finish, Everything viewed offers Review PR.
  • Long functions page. In a function taller than the screen, V scrolls one screen at a time and marks it only after you've seen all of its changed lines ("Reading 40%", then "Read").
  • Moves count once. A function moved to another file is one stop, on its new copy. Marking it marks the old copy too.
  • Re-review only what changed. After the author pushes, symbols whose code didn't change keep their mark. Changed ones show ↻ Changed, and V goes through exactly those.
  • More keys: Shift+V takes the last V back. n and Shift+N go to the next or previous unviewed item. Enter comments on the item you're on, and ⌘⇧↩ saves the comment and goes on. V or Enter pressed while the diff is still scrolling acts once it gets there.
  • Peek at a symbol. Rest the pointer on a symbol in the tree, or press Space, to see its diff and the changed code in this PR that calls it, without losing your place.
  • Options under the tree: Auto-mark marks a symbol viewed after you scroll through it. Peek on hover turns the hover peek on or off. ↺ Reset viewed clears the marks for this PR, with Undo.

Resolve conflicts (new)
Gnosis merges a conflict for you only when it can prove the result. Anything it can't prove waits for you, and nothing is pushed until you push.

  • Every conflict is sorted: Merged (proven by the checks), Check (there's a proposal, and you choose), or Decide (no safe proposal). A proposal is never written into your merge until you pick it. (#444, #459, #463, #476, #506)
  • The Conflicts view is a tab inside the PR, with the same diff as Changes. Compare the result with the PR, with main, or both. Edit a conflict in place, or use Edit whole file for lines outside a conflict, such as a missing import. (#474, #478, #484, #500, #532)
  • Rules that prove a merge: only one side reformatted, both sides made the same change, both added different definitions at the same place, and order-free additions to imports, package.json and tsconfig. A function moved on one side and edited on the other always goes to Check. In the conflict lab, 43% of conflicts merge correctly, and none of 1,235 cases merges wrongly. (#467, #483, #518, #519)
  • Lines that neither side had are marked everywhere, also in the push confirmation. (#493)
  • Ask the model about one conflict, only when you click. Its proposals always go to Check. Files that look like they hold secrets are never sent. (#495)
  • The push confirmation groups what you decided, what Gnosis merged for you, and what arrives from main. Stacks get a plan that shows which PR to resolve first, and a preview of what happens to the PRs above. (#466, #489, #492, #494, #501)
  • Background preparation for PRs you wrote or starred: the PR header shows how many conflicts need you. (#465)
  • Keys: J and K move between conflicts, A accepts, 1, 2 and 3 keep a side, U undoes, and ⌘↩ opens the push confirmation (it never pushes by itself).
  • Off by default: Undo after push, per repository, and a TypeScript type check of the merge, per linked clone. (#497, #498, #505)

A new PR header

  • Every action on every tab: Merge, Update, Review PR, Drafts and GitHub. Actions you can't use are disabled with a reason, not hidden. In a narrow window, some move into a ⋯ menu. (#543)
  • Draft and Auto-merge are toggles with Undo. Update is one menu with Merge main and Rebase. Merge is a split button that asks you to confirm.
  • A readiness chip next to the title summarises checks, reviews and conflicts.
  • Merged and closed PRs get their own actions, such as Reopen and Delete branch. Delete branch refuses a default, protected or base branch, or one with new commits.
  • Shortcuts: ⌘⇧M merges, ⌘⇧U updates, ⌘⇧V reviews.

Summary and Changes

  • Summary replaces Feedback. The PR description is pinned at the top. Below it is one timeline in date order: pushes, reviews and comments, each conversation next to its code. (#418, #472)
  • Edit reviewers, assignees, labels and the milestone from Gnosis. (#440)
  • Quiet changes: the Quiet chip, or the w key, hides changes that only touch whitespace, formatting, comments or imports. It reads the syntax tree, so hidden lines really are the same code. (#426, #512)
  • Breadcrumbs: the pinned hunk header shows where you are in the code. Click a level to go to that definition, and Show scope shows the whole symbol around a change. (#420, #422)
  • Each file is its own card in Changes, with a clearer file › hunk › code hierarchy. (#537)
  • Moved and renamed functions are found with tree-sitter. Added and deleted files get an outline too. (#424, #429, #438)
  • Stale diffs refresh by themselves, and long paths stay on one header row. (#421, #423)

Explanations and chat

  • Focused sections (off by default): large changes are split by definition, so each section shows only the functions it explains. Gaps say where the rest went, moved code shows once, and Changes marks which section explains each part. Turn it on in Generate explanation, or as a repository default. (#566, #573)
  • Choose the model and reasoning effort for each explanation, from Claude and Codex models. "Remember for this repository" saves the choice. If the chosen provider isn't installed, Gnosis says so and doesn't switch to another one. (#573)
  • Reduce noise leaves out hunks that a reviewer doesn't need explained, and each section's hunks are in reading order. (#477, #479)
  • Chat has a resizable panel and a model picker. You can ask about text you select in a diff, or send the whole PR as context. (#470)

Documentation (new)

  • gnosis.to/docs has 15 pages, covering the queue, reviewing a PR, explanations, conflicts, stacks, settings and keyboard shortcuts, with screenshots in light and dark. (#578, #579, #580)

Fixes and speed

  • Saving is reliable: no more "Invalid saved state…" after a conflict draft was removed, no more "Storage is not ready", and quitting doesn't lose a pending save. (#534, #539, #551, #555)
  • Tooltips close when their control is hidden. (#541)
  • The Overview shows only open PRs, and it has a Starred section. (#441, #540)
  • Queue rows stay still under the pointer while sync updates them. (#557)
  • Faster: GitHub reads are batched, leaving Changes on a large PR takes half the time, and reopening an old conflict draft takes about 2 seconds instead of 30. (#437, #530, #558)
  • "Updated since your review" now counts your review on GitHub. (#419)
  • Release builds now require a passing Checks run on the tagged commit. (#574)

Saved data from 0.41 still works.