Skip to content

fix(zbugs): open the first issue on launch in zbugs-gpui and zbugs-rune - #190

Merged
tmm merged 1 commit into
mainfrom
zbugs-rust-select-first
Nov 13, 2026
Merged

tmm merged 1 commit into
mainfrom
zbugs-rust-select-first

Conversation

@tmm

@tmm tmm commented Nov 13, 2026

Copy link
Copy Markdown
Member

As zbugs-swift does since #183: with no saved selection, zbugs-gpui and zbugs-rune opened with no issue selected. Now each selects the list's first issue once the list has rows. A saved selection still comes first, and this happens once per launch, so deleting the selected issue later still leaves none selected (the gpui e2e relies on that).

  • zbugs-gpui: select_first, run from the existing observe_self hook, selects the first row of the live list.
  • zbugs-rune: apply_issues selects the first row the first time the list has rows.

Both e2e runs now check it: zbugs-gpui's online run, which starts with nothing saved, waits for the list's first issue to be selected. e2e.sh launches zbugs-rune with empty settings and compares the selection it saves with the first open issue in Postgres (modified desc, then id).

Checked on a Mac (macOS 27) against zbugs' backend on Postgres 17: fmt, clippy (gpui with and without e2e), and tests for both apps; gpui's online e2e, CI's Postgres row check, and the offline run; and rune's e2e.sh. All 10 checks pass, including the new one. With the old rune code, the new check fails: the app shows "No issue selected" and saves no selection.

As zbugs-swift does since #183: with no saved selection, zbugs-gpui and
zbugs-rune opened with no issue selected. Now each selects the list's
first issue once the list has rows. A saved selection still comes first,
and it happens once per launch, so deleting the selected issue later
still leaves none selected.

The e2e runs check it: zbugs-gpui's online run starts with nothing saved
and waits for the list's first issue to be selected, and e2e.sh launches
zbugs-rune with empty settings and compares the selection it saves with
the first open issue in Postgres.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d36c-4ffc-7241-95ec-d56d1643dc77
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit 0f42c80 into main Nov 13, 2026
18 checks passed
@tmm
tmm deleted the zbugs-rust-select-first branch November 13, 2026 06:04
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.

2 participants