Skip to content

Browse bulk: one session for all, or one per repo - #297

Merged
Mpdreamz merged 4 commits into
mainfrom
feature/browse-one-or-per-repo
Nov 19, 2026
Merged

Mpdreamz merged 4 commits into
mainfrom
feature/browse-one-or-per-repo

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

What

With two or more items picked, Browse always offers One session for all N (the default, s) and One session per repo (S), next to the Goal and the GitHub actions. A session can touch several repos, so picks across repos no longer force a split. The old "a session for each item" choice and the narrowing of s to a related group are gone; the related-group note stays as a suggestion.

  • One session for all builds a Start work plan over every repo of the picks (primary repo: the one with most picks), asks for one PR per repo, and lists each item with its repo and Closes org/repo#n lines grouped by repo.
  • One session per repo opens one Start work form per repo, sequentially, with the existing confirm above 5.
  • Half and third width sheets show the same choices. Docs, shots and the key reference are updated.

Behaviour change outside Browse

StartWork.layout now tells the agent about the other worktrees when a session has more than one (a line in its prompt naming them and their paths), and adds --add-dir <path> for each other worktree for Claude Code and Codex, which PlanTalk already does. Multi-repo sessions did not do this before, and the Start work form could only hold one repo; StartWorkForm.choose(repos:) now lets it hold several. An existing DomainTests assertion on the old multi-repo command was updated and a test pins the single-repo command.

browse.bulk.each keeps its id so bindings do not break; it now means "per repo".

Verified

mise run lint, swift test --quiet (2937), mise run text-check, swift build, mise run bundle, scripts/tutor-check.sh (0 problems), docs build (0 warnings). Eight mutations of the new logic each failed the suite.

Not tested

No real multi-repo session was started; the clone of a repo that is not on this Mac and the single-repo dimmed card were not exercised (unit tests only). A repo that exists only on a remote host would be treated as typed and cloned locally.

🤖 Generated with Claude Code

Mpdreamz and others added 3 commits November 19, 2026 10:40
… several repos

Start work for a selection now always offers one session for all N (the
default) and one session per repo, whatever the repos and whatever heed
noticed. A session over several repos chooses all of them in the form, tells
its agent where the other worktrees are and, for claude and codex, adds them
as extra directories.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… regenerated shots and references

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 19, 2026
@Mpdreamz
Mpdreamz merged commit 7d951c2 into main Nov 19, 2026
5 checks passed
@Mpdreamz
Mpdreamz deleted the feature/browse-one-or-per-repo branch November 19, 2026 12:39
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