Skip to Content
v1.41.2 · shipped More settings on the script tag · Script tag typos no longer slip through Read the changelog →
Admin consoleFix selected together

Fix selected together

Where: Bugs → tick two or more → Fix selected together. Security → tick two or more → Fix N together, or Fix all.

Five findings that belong together should ship as one change: one pull request, one review, one merge. Tick them and Mushi Mushi asks one agent to fix all of them in one pull request.

Start it

  1. Tick the findings on Bugs, then press Fix selected together on the bar above the list.
  2. Pick who fixes them:
    • Your worker: lane name: one of your own worker lanes for this app (mushi work --daemon). It takes the fix after what it is working on now.
    • Mushi cloud: Mushi’s cloud fix starts it now. It looks up the code for each finding on its own, by that finding’s words and page, so every finding’s files are in front of the agent. It reads up to 4 more files for each extra finding, 16 at most.
  3. Press Start the fix.

On Security, Fix N together and Fix all start at once and use your worker when one can take it, else Mushi cloud.

A worker lane whose machine runs an older Mushi CLI shows “update Mushi on that machine to use it”. Update it with npm i -g @mushi-mushi/cli@latest and restart mushi work --daemon. Until then, pick Mushi cloud.

The result

The same dialog turns into the result:

  • The status line: how many pull requests, for how many findings, and where they run.

  • Going in: each finding, with its pull request (“Pull request 1 of 2, with 3 other findings”).

  • Skipped: each finding left out, and why:

    ReasonWhat it means
    Already being fixed in PR #NIt has an open pull request or a running fix.
    A local worker is fixing it right nowA worker lane holds it.
    Already closedIt is fixed or dismissed.
    Not fixable yetNo person reported it yet, it is a feature request, or a merged fix already closed it.
    No GitHub repositoryLink one in Settings first.
    Its code is in another repositoryIts earlier fix went to another of the app’s repositories. Fix it on its own.
  • Not started: a fix Mushi could not queue or start, with the reason. Try again.

Open Fixes shows the run. Each finding’s page shows the pull request too.

How many go in one pull request

At most 6 findings go in one pull request, so the agent gives each its full attention and the review stays readable. Pick more, and Mushi makes the fewest pull requests of about equal size, and says so. One request takes up to 20 findings.

What happens to each finding

Each finding keeps its own fix row, pointed at the pull request that fixes them all:

The pull requestEvery finding in it
Opensmoves to Fixing, with the link; its reporter hears it
CI failsshows the failed check
Mergesis marked fixed; its reporter hears it; a security finding is re-tested
Closes without merginggoes back to open
Is folded into a batch PRstays in Fixing behind the batch
Is revertedshows the revert

A finding inside an open combined pull request has no “Fix it” of its own: close that pull request first. Closing one finding’s report drops it from the run; closing the first finding’s report stops the run.

From your editor or a script

A key asks for one fix at a time (dispatch_fix), and a person approves it in the console. Starting one pull request for several findings is a console action.

See ADR 0111  for the design.

Last updated on