Skip to content

Browse: make the items with an agent visible, and a toggle to list just those - #308

Merged
Mpdreamz merged 2 commits into
mainfrom
feature/browse-run-rows
Nov 22, 2026
Merged

Mpdreamz merged 2 commits into
mainfrom
feature/browse-run-rows

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

What

  • A row with a run on it is tinted in the run's verb colour (stronger under the cursor, with a bar when not) and keeps its "Fix · working" label.
  • While any item has a run, a "● N with an agent" toggle shows at the right of the count; it narrows the list to those items (w, the named command browse.agents). It goes away with the last run, and the filter with it, so the list is never empty for a filter that has gone.
  • BrowseModel.rows is now the displayed rows (filtered by the toggle); the refresh machinery works on allRows.

Checked

  • Build passes; 484 tests across Browse, Keys, Commands and MenuBar pass (the command is registered and has its surface).
  • Re-shot github/browse-run and looked at it: the red-tinted row and the toggle.
  • Not covered by a unit test: the tint and the toggle live in the app target, which has no tests. Not exercised: toggling during a refresh that is held (the cursor goes back to the top on toggle to keep indexes sound).

🤖 Generated with Claude Code

Mpdreamz and others added 2 commits November 22, 2026 22:26
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz force-pushed the feature/browse-run-rows branch from 22698ba to e51f51a Compare November 22, 2026 21:28
@Mpdreamz
Mpdreamz merged commit 23dcfcb into main Nov 22, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the feature/browse-run-rows branch November 22, 2026 21:37
Mpdreamz added a commit that referenced this pull request Nov 22, 2026
Stacked on #308 (it generalises that PR's \"with an agent\" toggle);
retarget to main once #308 merges.

## What

Starting a session or a goal from an item left no trace in Browse. heed
already keeps both ends, so this derives the link and stores nothing
new:

- A session is found by the issues it closes or links (its prompt's, its
PRs' and the ones added by hand) and the PRs it tracks. A goal is found
by the issue or PR one of its items links to.
- A row shows a *session* / *goal* tag (with a count when there are
several). The reader shows *Started from here* with a link to each,
which opens the session or the goal.
- At the right of the count, beside *N with an agent*: *N from sessions*
(`W`) and *N in goals* (`O`), each shown only while some item qualifies,
and narrowing the list. One filter at a time. All are named commands
(`browse.from.sessions`, `browse.from.goals`).
- Because it is derived, it covers work started before this change.

## Checked

- Build passes; 488 tests across Browse, Keys, Commands and MenuBar pass
(4 new in `BrowseOriginsTests`). Broke the goal-link rule (issue only)
and the PR case failed.
- Re-shot `github/browse-run` and looked at it: the session tag on row 1
and the two toggles.
- Not covered: the app-side wiring (refresh on sessions/goals changes,
the reader links) has no unit test. Not exercised: opening a goal from
the reader link, and a closed session is not listed (history is left
out).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant