Skip to content

v0.5.8 — the panel's scroll bar

Choose a tag to compare

@WTLAIB WTLAIB released this 04 Dec 19:49
· 14 commits to main since this release
6f7802e

Azure DevOps PR Review for OpenCode — 0.5.8

The terminal panel has a scroll bar and keeps a finding's level on one row
in the summary table beside the conversation, and a drag from elsewhere that
ends on close or on a session's row no longer acts there. How a review is
made, the prompt files, the settings, the notices and the tested host
(OpenCode 2.4.2) are those of 0.5.7.

  • The panel shows where you are in a long report or preview, and the mouse
    takes you anywhere in it.
    When the text is longer than the panel, a
    scroll bar is drawn in the panel's last column: drag its thumb, click its
    track to jump there, or turn the wheel, which now moves three rows a notch
    as OpenCode's own views do (it moved one). None of them takes the keyboard
    from the prompt, so you can read with the mouse and type the next command.
    The bar is drawn over the text's right margin, so no line is wrapped anew
    when it appears, and its track has the panel's own background, beside the
    conversation and full screen: only the thumb shows, in the colour of
    close. A panel whose text fits has no bar.
  • A drag from elsewhere that ends on close or on a session's row picks
    nothing there.
    close closed the panel on any release of the button
    over it, and a session's row opened its session on any release: a drag
    from a step to close closed the panel, and one from a row to another
    opened both sessions. Both are now clicked as the steps at the panel's
    foot are: pressed and released on the same thing with the pointer still on
    it, so a drag that began elsewhere picks nothing where it ends (to let go
    of what you pressed, release the button off it). A click on a row opens
    its session as before, without giving the panel the keyboard first. A
    press on the scroll bar ends what was pressed elsewhere, so the release of
    a drag of the bar picks no step it ends on, also not a step whose earlier
    press lost its release. Finish a drag inside the panel: OpenCode covers
    the conversation only while the panel has the keyboard, which a press on a
    step, a row, close or the bar does not give it, so a drag from one of
    them released over the conversation can act there, and over OpenCode's
    answer to a permission request it can give the answer it is released on.
  • The summary table keeps a finding's level on one row. Beside the
    conversation the summary table of a report or preview broke Severity and
    🟡 medium over two rows. A column narrower than an even share of the
    table's width now keeps its width, and only the wider ones are narrowed, so
    a level stays on one row with its icon wherever the panel is about 40
    columns wide or more, which it is beside the conversation unless you make
    it narrower. Every table in the panel is fitted so, and at some widths a
    column a little wider than an even share, such as a stage's name in the
    table of models at the end of a report, now takes two rows where it took
    one.
  • The recording of the terminal panel shows this version. The recording
    at the top of the README and the panel's pictures on the demo page were
    made again with the 0.5.8 release candidate on OpenCode 2.4.2. The
    recording of adjusting findings, which posts comments on a test PR, still
    shows 0.5.7; the
    demo page
    says which version each was made with. The renderer of the recordings now
    draws block and box-drawing characters to the edges of their cells, as a
    terminal does: with the font's glyphs alone, the scroll bar and every
    border showed a gap at each row. Every other picture and video of a
    terminal recording that shows such characters was rendered again from its
    recording, so none shows such a line in segments; nothing else in them
    changed. The earlier recording's walkthrough video, rendered again, is
    attached to this release.

A press on the track jumps there rather than paging, and with OpenCode's
mouse turned off the bar only shows where you are; the
known limitations
list the rest.

Installation

opencode plugin add opencode-azure-devops-pr-review@0.5.8

Alternatively, install the same release from Git:

opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.5.8'

Add only one of them. Then open OpenCode's terminal UI and type /pr-setup;
the
quickstart
walks through it and shows the way without the terminal UI.

Upgrading AZPR

From 0.5.7 only the terminal panel changes: settings, the PAT file and saved
reviews are used as they are. Add 0.5.8 and remove the previous version only
when the download succeeded. Replace PREVIOUS_VERSION with the version in
your plugins entry:

opencode plugin add opencode-azure-devops-pr-review@0.5.8 &&
  opencode plugin remove opencode-azure-devops-pr-review@PREVIOUS_VERSION

Run them when no AZPR command is running. For an entry with options, change
only its package value. For a Git installation, add the new tag and remove
the spec your entry names (replace YOUR_ENTRY with it, for example
github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.5.7):

opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.5.8' &&
  opencode plugin remove 'YOUR_ENTRY'

Coming from a version before 0.5.6,
read the
0.5.6 release notes
first;
upgrading
gives the details. Manual copying needs the same 33 files as 0.5.6.

Compatibility and validation

As for 0.5.7: the tested target is OpenCode CLI 2.4.2 (V2 plugin API),
Node.js 22.23.3, Ubuntu 22.04.5 under WSL2, and Azure DevOps Services
REST API 7.1. The
known limitations
add those of the scroll bar.

The npm package, Git package and source archive contain the same runtime, with
no npm dependencies or install scripts; the source archive also contains the
documentation, installers and settings example. The release source artifact is
opencode-azure-devops-pr-review-v2-0.5.8.tar.gz; the release also carries the
walkthrough video of the demo page's earlier recording, azpr-live-demo.mp4,
and SHA256SUMS lists the checksums of both.