Review and resolve on the Branch page
The Branch page holds one branch: its pull request, review comments, changed files, commits and checks. Use it to read your own diff, let an agent turn review comments into commits and send everything back with one push. It works the same on GitHub, GitLab and Bitbucket.
Resolve
Turn review comments into commits without writing the fixes yourself. Check the comments you want and press Fix: one agent works through them in its own copy of the branch and ends each one with a fix, a reply or a question. You accept, edit or skip each result, and nothing leaves your machine until you push.


Screenshot from Goodboy 0.40.1
Bulk actions
Handle many comments at once. Fix comments checks every open comment, Use the recommended answers answers the agent's open questions in one go, and Apply fix takes every waiting fix, with Undo right after.
Review sources
Read pull request comments and your own notes in one list in the Comments section. Each row is the button: author and age, then path:line, then the comment; a Draft chip shows only while the list mixes notes and host threads, and the source switch shows only then. Group labels carry their row count and no verbs, and the Open and Resolved switch shows from the first comment on. One header button follows the state: Fix N threads, Apply N fixes, Push N commits or Request review. A line at the list end counts unpushed commits.
The Open and Resolved switch carries a count on each side, and its Open count is the one the Comments tab carries. A bot comment reads as its first plain line: headings, HTML comments, severity badges and boilerplate are left out.
Open a comment to read it in the drawer beside the list, the same way a failing check opens the Debugger. The drawer holds the code around the line, then the comment and its thread, then its actions at the end: Fix as the primary, Reply and Skip beside it, each with its key (F, R, S), and a ⋯ only when two or more rarer verbs remain. J and K, or the arrow keys, move to the next or previous comment while it is open, and Escape closes it on the row you were on. A verb that fails says why under the actions and its button reads Retry. The open comment survives a refresh of the list and a window reload. Reading and replying work on every host, and a Bitbucket thread stays open because Bitbucket cannot resolve it.
Comment states
See what each comment needs next. The list groups comments under Needs you, Working, Done and Left open, and each comment names its state, such as Question, Fix ready or Failed. If the reviewer edits a comment after the agent drafted an answer, you choose to redraft or keep the draft.
A broad comment asks for a run, not a quick fix. It shows two of three signs: it asks for a rethink, it names other files or routes, or it is long. Its drawer says why and leads with Start a run, and Fix as one change moves to the ⋯. Every open comment has Start a run in its ⋯.
Fix N comments counts only the small comments. A line under it says 1 comment suggests a run, with Start a run beside it. When only broad comments are left, the header leads with Start a run.
A comment a run works on reads In a run with the run's word, such as In a run · Working, and its row names the run. Its drawer shows the run with Open run, and says that nothing is posted while the run works. Fix and Skip stay out until the run ends, so one comment never has two agents. A comment resolved on the host meanwhile keeps its own word.
If the reviewer edits the comment while the run works, it reads In a run · Changed. The run keeps the text it started with until you pick Send the new text to the run or Keep the run as it is.
Nothing closes when a run ends. Each comment of the run reads Run finished and waits for you, one at a time. A note shows what the run did, with Resolve note and Keep open, and Reopen after.
A host comment shows the reply the Lead wrote, which you can edit, and Reply and resolve on GitHub, or on GitLab. On Bitbucket it is Reply on Bitbucket, which leaves the thread open. The reply goes out only once the run's commits are on origin.
When a run stops or fails, its comments are open again with The run stopped. Nothing was resolved. and Open run. To give an open Lead on the same branch one more open comment, pick Send to Lead in the comment's ⋯. The Lead gets the comment with its replies, the file and lines, the branch and the pull request, and keeps working without starting over. A note says the Lead has it, with Follow.


Screenshot from Goodboy 0.40.1
Run from a comment
A comment that asks for a rework starts a run instead of a quick fix. Start a run opens a form in the comment pane with the goal written from the comment, a Plan row and the branch.
Pick up to three more open comments from the branch to start with. The run reads each comment word for word, and every comment shows the same run. Your own notes and host comments work alike.
Failed drafts
When a fix fails, the comment says why in one sentence and links to the agent's transcript. Retry it in the same run, start over with a new agent, try another model or add a hint.
When the fix agent finds a comment bigger than one change, it stops early and the comment reads Needs a run with what the agent found. Its one button is Start a run, and the goal of the run ends with that finding. Retry the fix, Retry with a hint and Start over stay in the ⋯, and a retry tells the agent you want one change anyway. Such a comment is left out of Fix N comments and Retry N, and the other comments of the same fix keep their own result.
See what a resolve did
Open a fix run from Activity or from a comment to see what the agent did. A drawer beside the list has two tabs. Fix shows the status, the comments the run covers, what it did and its commits. Transcript shows the whole conversation, and you can write to the agent from there. It opens on Transcript while the run works, and on Fix once it ended or when it asks a question. A dot on the other tab tells you when something new happens there.
A comment a fix run covers shows the work on its own row. While the fix works on it, a line under the comment reads Fixing, the step and the time. A comment that waits its turn reads Queued and its place, 2nd in this fix. Point at the row for Stop and Open transcript. One agent fixes a batch, so Stop ends all of it. Its tooltip names the batch, Stop fixing 3 comments, and Stop acts at once: the toast offers Continue and the comments stay open.
A batch shows one quiet count above the list, Fixing · 2 of 3, with Stop all and Open transcript in its menu. Off the tab, a dot on Comments says a fix works. While you stay on the tab, a comment keeps its group and its place.
Point at an open comment for Fix to fix that comment alone. The button is busy and the row reads Starting until the agent exists, and a second click starts nothing. The result lands on the same row. A ready fix reads Fix ready · Fixed in 90b1d57 with Review and Apply. Review opens the change under the row with Apply, Retry with a hint, Discard and Open in Changes. Open in Changes opens the Changes of the branch on that commit.
Apply accepts that fix only, and the row reads Applied, not pushed. The undo bar under the list takes it back, as after a bulk apply. Discard throws the fix away: nothing is applied and no reply is posted. The comment is open again, with Fix. A fix shared with other comments goes for all of them at once, and each one is open again. A fix made in another worktree, already on the branch or shared with a comment you already decided stays, and the error says why.
The Fix comments drawer reads the same: its Discard throws the fix away, and parking a comment is Skip. After a run, Retry 2 failed puts every failed comment back in the same run. The session marks, the board, Ask and the transcript line use the words of the rows, such as 2 comments failed or Fixed.
A comment the run could not fix reads Failed and says why in one sentence. A stopped one reads Stopped. Both offer Retry in the same run, and a menu with Retry with a hint, Start over with a new agent and Open transcript. A comment that changed after its fix keeps Fixed in 90b1d57 · Review the fix and its choice in the drawer. The state comes from the thread, so it is still there when you come back to Comments. Starting a fix takes its comments out of the selection. Leaving the list drops a selection that sits on comments nobody can act on.
When the run has finished with fixes ready, every comment keeps its result on its row and in its group. The bar above the list counts them quietly, 4 fixes ready. Resting on the count says what Apply does: it accepts the fixes, and the next push sends them. The push replies to the threads and resolves them where the host can. With two or more ready the header offers Apply N fixes.
When the agent says its checks did not run, Goodboy shows Checks were skipped:
Hints when a fix starts
Tell the agent what to weigh before a fix starts. Every start that launches a fix has one quiet line, Add a hint, above its buttons: Fix comments, Apply fix on a check, Analyze again on a failing check, Fix with an agent after a failed push and Rewrite with an agent on a conflict. The line is closed by default and never required. A click opens an unboxed field, Hint for the agent (Hint for the Implementer for a fix), that grows to six lines, shows a small counter near 2000 characters and clears with an x. Esc closes the open popover first, then the field with its text kept, then the page. The first Analyze of a failing check stays one click with no field.
The hint goes to the agent as typed, trimmed, after the rules and after the evidence under Operator notes, with one line that ranks it below the role and the tool limits and asks the agent to say in a sentence how it applied it. It is never posted to GitHub, GitLab or Bitbucket. The first message of the run shows it once as Your hint. The draft lives in memory, per session and per target, and clears only once the agent's first turn has started: a failed start keeps it, and text typed while the start is pending stays. A Retry on a failed comment reuses the hint of the request that failed.
Fixes already on the branch
Goodboy checks origin before it pushes. A comment already fixed by a commit you pushed, or by a teammate's commit, offers Reply and resolve instead of a new fix.
A fix that went missing
If a fix commit is no longer on the branch, for example after a squash done elsewhere, the comment reads Fix went missing. Goodboy asks git first, then can ask a read-only agent whether the fix is still needed. Nothing is closed or fixed without you.
Push fixes and replies
Finish a review with Push N commits in the Branch header. It covers the comments of the branch on screen, and the confirm names the repository (Push 2 commits to hl/fix-duplicate-credit in payments-api?) when the session has more than one. It always covers every ready comment. When nothing needs a decision it pushes on that click and says what went out in one line. Otherwise a preview counts the fixes, replies and threads to resolve and the one Push in it sends them to GitHub or GitLab. Push only this one in a comment's actions sends just that fix and hides while the preview is open. A reply with no code change goes out right away when no fix is waiting.
When a check of the repository stops the push, the failure card names the check and shows its first findings. Fix with an agent starts an agent on the same branch that fixes what the check reports without skipping it. The card follows that agent. It keeps following it when you leave the page and come back, or reload the window.
While the agent works, the card reads Fixing with its step and time. It offers Stop and Open transcript, never Retry. Then it reads Pushed with what came next, Stopped with what stays on the branch, or Failed with the reason. Retry starts a new agent. When the agent finishes, Goodboy pushes and sends the replies, or opens the pull request with the text you wrote.
The page says so before you push if the worktree has no dependencies installed or reads them from another folder. The failure card then offers Reinstall dependencies. It installs them in that worktree with the install command of its lockfile, shows the progress and retries the push.


Screenshot from Goodboy 0.40.1
Replies in your voice
Choose the tone of the replies the agent drafts: Terse, Friendly, Formal or Like your replies, which learns from your last 20 review replies on GitHub. Learn from your replies shows when at least one project of the workspace is on GitHub. Otherwise you write the style note yourself. You can always edit it.
Fixes on a branch that moved
Accept a fix even after the branch got new commits. It lands on top of the latest one, and on a conflict the branch goes back to its old head.
Squash and fold the resolve commits
Tidy the fix commits before reviewers see them, in the Commits section. Fold a fix into the commit it belongs to, squash, reword or drop it, with a backup kept. Undo rewrite restores the branch and puts every comment back on its commit.
Notes before a pull request
Review your own diff before anyone else does. Leave notes on lines or whole files in the Changes section, where each file header keeps Viewed, Comment and one menu with open in your editor, copy the path and show the whole file in a drawer. Resting on the path opens a fact card with the file name, its status, its folder and, for a rename, where it came from. Then hand the open ones to an agent with Fix comments or move one into your GitHub review with Post to GitHub. Notes stay on their branch, and notes with no branch wait on the Session overview. Every comment box here, in Write review and in the resolve flow is the same field: ⌘Enter saves, Esc cancels only that box, and the replies under a comment fold to a count when there are more than two.
A fix for a note starts on your working tree as it is, uncommitted and untracked files included. The agent is told the note is yours and local, and it never fetches or pushes. The proposed change holds only what the agent changed, and Apply lands it uncommitted on top of your work, as the ready banner says. Apply refuses rather than overwrite a file of yours, an ignored one included. Skip leaves your work as it was. A proposed change that misses the commented code says so in one line.
Notes take one fix at a time. While a fix waits for review on the branch, a note fix does not start, and while a note fix waits there, no other fix starts. The comment says Apply or skip the ready fix first, with both buttons, and the waiting fix starts once you choose.
Pull request on the Branch page
Click a branch under Projects in a session and the Branch page opens on Conversation, the branch page when it has none yet. The tabs under the title are the way around it: Conversation, Changes, Commits, Checks, Runs and Comments. Each tab carries its count in gray, and color only for what wants you, such as the comments that need you and the checks that fail. The Session pages stay on the session, so any other branch is one click away.
A branch row on the Overview opens the tab its state names. A failing or running check opens Checks. Requested changes open Comments. A conflict, a rebase or commits not pushed open Commits. Anything else opens Conversation, and so do Search, Activity and Tasks.
On Checks, a failing GitHub Actions row shows the end of its log under its name. Open on GitHub opens the rest. The first failing check opens with its log, and a click on the row hides or shows it. A check from another service opens on its host.
The Conversation tab is the pull request. The title carries its state, and the line under it says the number, the branch, the base and who opened it, and when. A merge box comes first and answers whether it can merge: Not ready to merge with the next two steps in the order the header takes them, Waiting for a review, Ready to merge with what the header button does, Draft or Merged into main. Under it each thing that holds the merge gets one row, the worst first, such as 1 check failing with the check's name, Changes requested by omar-t or 3 commits behind main, and a click opens where you fix it: Checks, Comments, Changes or Commits. Everything that passes folds into one quiet line you can open. The box never holds the merge button: the header keeps it. Under it the description is a card with its author and age. A long one folds behind Show the full description. The activity is one timeline with a face on every item. Pushes by one person in a row fold into one line, such as nadia-p pushed 5 commits in 2 pushes. Each review app folds into one row behind the Bots filter, beside All and People. A rail beside it holds four sections. Reviewers show the state in words: Not yet reviewed, Asked for changes or Approved. Checks shows 6 of 7 passed and a bar. People lists the author and the bots. Linked issues closes the rail. The tabs carry the rest: Changes and Commits show their count on the tab, and the same count heads their list. When review threads are open, a row of the merge box such as 2 threads need you with 6 open threads · 2 unread opens Comments. It counts the threads Comments lists for that pull request, and the dots in Comments come from the same count. A thread is unread when you never saw it in Comments. It is also unread when someone else wrote in it after you last saw it. A reply you wrote never makes a thread unread, and a thread only you wrote never is. Opening Comments marks the unread threads with a small dot in the left margin of the row. The dots stay while Comments is open, also when you switch between Open and Resolved or a reply arrives. The threads count as read from then on, up to the latest comment you were shown. The dots are gone on your next visit, and the row drops them. Both windows read the same record. After the update every thread that already existed counts as read. To tell your replies, Goodboy needs your name on the host: GitHub gives it through the status of the workspace. GitLab gives it through the username kept when you connected to that host. Bitbucket gives it through its nickname. Only that login counts, never a display name. An account of another workspace or host never stands in for it. Goodboy reads that name again from the host when you connect and when the app starts. An older GitLab or Bitbucket connection fills it in by itself. When the host refuses, the integration page starts with "Unread needs your username." and a Reconnect button. Comments shows one quiet line until the name is known. Until the name is known, or while the comments have not loaded, the row shows no unread part. A host that gives no author or time keeps the thread unread until you open Comments once. The description and the activity read in a column of comfortable width, and a long description folds after five lines behind Show all; reviewers, linked issues and author sit beside it, the person you asked first with their verdict next to the name, and every bot in its own Bots group with one word, such as 1 issue for the open threads it started. On GitHub a review app is known as a bot by its author type even when its name has no bot suffix. Rename it, edit the description and ask for reviewers there. The header holds one next step, the same on every tab, never a disabled button. It answers a question first, then applies the waiting fixes, fixes the comments, pushes once, fixes the checks still red, and last asks for a review or merges. Fix checks starts a Debugger at the first press, and resting on it names the model. Once the Debugger proposes a fix the step reads Start fix, then Push fix. While an agent works the header has no filled button. A check agent shows on its check row with Stop, and the Checks tab carries a live dot on every tab. A comment fix run shows on a line under the tabs. Anything blocked waits in ⋯ with its reason. Merge, mark ready, reopen, convert to draft and close act on the repository of the branch on screen, never on another repository of the session. Reviewers, linked issues and the text Scribe writes go to that repository too, and a review request the host refuses says why under the list, with Retry. While the host answers, the add button pulses and a line names who is asked. Merge offers only the ways the host allows and is tied to the commit you reviewed on GitHub, GitLab and Bitbucket: if the branch moved since, nothing merges and the page asks you to refresh and review again. On GitLab the page uses GitLab's words, such as Merge request and MR !42. While commits are only on your machine and no comment waits, Push 3 commits is the one primary and the merge waits, with 3 commits not pushed in the merge box.
The page shows the pull request of the branch you opened, even while a rebase runs on it or the session writes to another branch. The form for a new pull request appears only when the host reports none for that branch; an empty or failed answer keeps the one already known.
A branch with no pull request gets its own page: the branch name, whether it is pushed, how far it is behind its base when the base moved, a declined pre-push hook when there is one, then the form. Push and create pull request is the one primary while the commits are only on your machine, with Push 3 commits beside the title for a push alone. Rebase on main leads while the branch is behind, and once it is pushed and up to date the form's Create pull request does. The form is filled from the branch: one commit gives its headline as the title, several give the linked issue and the first headline, and the description lists the commits. It always opens the pull request from the branch on screen. When origin also holds commits the branch lacks, the branch reads Diverged (never Pushed) and the form offers Force push and create pull request behind the same confirm as Force push. While a rebase is stopped on conflicts the form waits and the conflicting files are listed instead.


Screenshot from Goodboy 0.40.1
Work behind a branch
The Runs tab shows what Goodboy did on the branch: its runs, its questions, answered ones folded with their answer, and its plans and reports. They are the same rows as the session's Runs, Questions and Artifacts pages, so the counts always match. Its badge counts what waits for you in color, else the runs still working, else everything on the branch in gray. Open a run or an artifact and Back returns to the tab. All runs, All questions and All artifacts open the whole session page on this branch, grouped the way you left it, and Open branch on those pages lands on this tab.
One trail to the Branch page
Every way into a branch, from Search or run, a notification, a chat card or the board, opens the same Branch page, and the session pages stay on the session. Back walks your history.
Write it
Get a pull request title, description and changelog entry in your repo's format, then Goodboy pushes the branch and opens the pull request. Linked issues become closing references. If a step fails, the reason shows next to Retry and the text is kept. A retry never opens a second request: when the host already has one for the branch (the first try landed but Goodboy could not save its link, or someone opened it meanwhile), Goodboy links that one, and when only the saving failed it still returns the number with a warning, Opened #14, but Goodboy could not save the link, so Refresh picks it up.
PR description follows the push
A description Goodboy wrote is updated after a history push, so it keeps matching the branch. A description you edited yourself is left alone.
Read the code
Read the branch against its base in Changes, unified or split. The changed files sit in a list on the left that tracks what you marked Viewed, with a filter and All, Unviewed and Commented in one menu; the diff scrolls beside it, with Viewed 2 of 6 and Next in its toolbar. Drag the list's edge to widen it or hide it; Show files brings it back. Quote lines into a note, or choose Ask agent to send them to an agent with your question. The Branch header refreshes after a local commit edit; Force push waits in ⋯ behind its confirm.


Screenshot from Goodboy 0.40.1
Switch the list from Changed to All files to see the whole worktree in the same tree. Changed files are marked. An unchanged file opens in place, with Back to the changes, and is still open on that project after a window reload. The project and branch chip at the start of the toolbar picks another branch.
Write review
Review someone else's pull request from its diff. Click a line number to leave a comment, then press Review to choose Comment, Approve or Request changes and add a summary.
The review goes to the pull request of the branch on screen, the one you picked when the branch has several. The line under the form names it: GitHub shows it on payments-api #318 as one review. A comment stays on the request you wrote it on, even if you switch projects before you submit.
A branch without a request offers only the requests linked to the session from its own repository. When the page holds more than one request, the form asks which one. The choice stays while the diff loads or fails to load. On Bitbucket the page says Bitbucket reviews are written on Bitbucket. with Open on Bitbucket. A submit that fails keeps your comments and the summary.


Screenshot from Goodboy 0.40.1
Also in this area
| Feature | What it does for you |
|---|---|
| Written by Goodboy | Comments Goodboy posts end with a line that says so, and a setting turns it off |
| Resolve again | Rereads a comment and tries the fix once more |
| Checks | Lists CI checks in four groups: Failing, Running, Passed and Skipped, each with its count. Rest on a row to see its name, result and time. Analyze on a failing row asks the Debugger why it failed. The work shows under the row's name with one button beside it. Cause found has Review fix, which opens the proposal and Apply fix under the row. Fixed, not pushed has Push, and Failed has Retry. Pushed turns to Fixed once the check passes. A row keeps its group while you stay on the tab. The Checks property, readiness, the activity row and the worktree entry read one word: 2 failing, 1 running or 5 passed. |
Under the hood
This part is for contributors and agents who change the feature.
- Comments list:
ReviewList,ReviewListRowandcommentsCountOfdraw the list and the count on Fix N threads. - Unread threads:
unreadThreadsOfis the one function. It joins the threads to the comments of the selected source, keeps the threadsrowBelongsToSourcelists, and returns null while the reads or the viewer identity are not loaded.useUnreadThreadsfeeds it tousePullRequestReadiness(the line) and touseThreadVisit(the dots).ReviewFlowVisitmountsuseThreadVisitaboveReviewFlowand gives the visit snapshot toReviewListthroughThreadVisitContext, so it survives the Resolved switch and an empty list. A write is deduped only while it is in flight. - Read record: the
thread_readstable (m239), keyed by session and host thread id, behind thestore/slices/thread-readsslice. m239 backfills one row per existingresolve_threadsrow at the migration time.read_atis the latest time of a comment by someone else among the shown ones, falling back to the fetch time, and the upsert keeps theMAX. Memory changes only after the write succeeds and only inside an entry that a load created. A load merges withmaxper thread, so a late load never undoes a mark, and a lateloadThreadReadsanswer is dropped. - Viewer identity:
viewerIdentityOfreads the connection that serves the selected source. That is the GitHub status of the session workspace, with the default status only when the workspace has no scoped token. It is the GitLabusernameof the binding for that workspace, project and host. It is the Bitbucketnicknameof the binding for that workspace and project. Only that canonical id counts, never a display name. It returns null when that connection has none, even if another connection has one, and the unread logic waits. - Identity health:
viewerBindingOfpicks the binding.identityHealthOfturns a missing name into the one line and the Reconnect action.IdentityHealthLineshows it on the integration page.IdentityQuietLineshows the quiet line in Comments.refreshViewerIdentityre-reads the name from the host, with no token sent, wheneverloadIntegrationsruns.useThreadVisittakesisVisible, the Branch pageisActive, false while the agent overlay covers it. It takes no snapshot and sends no write while that is false. - Comment drawer:
ReviewCommentDrawerandCommentDrawerActions. - Write review target:
mountReviewOfgives the request of the branch on screen, itsmountSelectedPrpick before its canonical one, never a request of another branch. A branch without one gets the linked requests of its repository. With no branch on screen it gives every choice, and on Bitbucket the link.ReviewTargetChooserdraws the choice in the form and above the diff while it loads or fails (WriteReview/index.test.tsx).addReviewDrafttakes the target and stamps it on the draft, andpublishPrReviewsends only the drafts stamped with the target it is given (index.test.ts,mountReviewOf.test.ts). - Reply style:
useGithubProjectRootsreads each project remote and returns null until the answer matches the workspace and projects on screen.learnWorkspaceReplyStylereads only those on GitHub and turns every failed read into a line that says your note is unchanged (learnWorkspaceReplyStyle.test.ts,WorkspaceReviewRepliesSection.test.tsx). - Note fixes:
owner_tree_onandintegrate_onto_owner_treeinapps/desktop/src-tauri/src/worktree/candidates/owner_tree.rsstart the copy on the working tree and land the fix uncommitted.readyFixBlockinginresolveLane.tsholds a fix behind a ready one, andReadyFixFirstdraws the line.move_branchinbranch_move.rsmoves a comment fix onto the branch by name.buildResolverKickoffPartsadds the note section to the brief, andisOffTargetFixdecides the line under Proposed change. A run that ends without a result recordsno_result. - Broad comments:
commentScopeOfis the one breadth rule, long meaning past 400 characters.commentLaneOfturns it into the fix, run or in-run lane, anduseReviewEntriesputs the lane on each entry.useBranchReviewcounts Fix N comments and the run suggestion from that lane.reviewBarPlanOfleads a broad comment withreviewComment.startRun, andbranchStepOfadds thesuggestRunstep. A live run (isLiveCommentRun: not stopped, not failed) puts its threads in the in-run lane. A run is a Lead started from comments or any open Lead a comment was sent to (holdsCommentThreads); a fix or a recheck never is. - In a run:
commentRunViewsOfmaps each thread to the runcommentRunOfnames, with the wordsessionRunsOfgives that run (useCommentRuns).projectResolveCommentturns an open, failed or left open thread intoin_runwhile the run works, and an open or failed one intorun_finishedafter;CommentRunStripdraws the drawer strip. The actions readrunAgentIdto leave out Fix, Skip and the fix retries (reviewComment.matrix.test.ts, sceneu47-comment-run-working). - Run end:
commentRunViewsOfgives each run view anend(working, finished, stopped) and the Lead'soutputSummary. A stopped or failed run still names its threads, andprojectResolveCommentgives them their own word back.useCommentRunsand the action facts sharecommentRunViewsFrom. - Run end actions:
reviewComment.resolveRunNotecloses a note withcloseResolvedNote, andreviewComment.reopenRunNotereopens it.reviewComment.replyFromRuncallsreplyFromCommentRun. It reads the mount's worktree status, refuses while commits wait to be pushed, then callsreplyAndResolveThread(replyFromCommentRun.test.ts).reviewComment.keepOpenleaves the comment open.sendChangeToCommentRunqueues the new text and only then settles the change (sendChangeToCommentRun.sqlite.test.ts, scenesu47-comment-run-finished,-stopped,-changed). - Send to Lead:
reviewComment.addToRunoffers the newest open Lead on the comment's mount (joinableCommentRunsOf,commentMountIdOf).addToCommentRunappends the thread withaddAgentSourceThread, a single SQL statement that skips a known id and refuses a stopped or done run. It then queues the quote for the Lead and drains the queue, so an idle Lead reads it now. The queued message carries the thread, and removing it before the Lead reads it frees the comment (releaseSourceThread). A queue that cannot be saved removes the thread again (addToCommentRun.sqlite.test.ts). - Needs a run: the fixer ends a thread with
<<comment-needs-run threadId="..." reason="...">>, parsed inpackages/core/src/context/marker-parsing.ts.resolveTurnPatchOffails only that thread with aneeds_run:reason,persistResolveTurnrecords the causeneeds_a_run, andreconcileResolveAttemptsnever files it asapp_closed.failureSentencereads the thread reason first,isFixableThreadkeeps it out of the bulk counts,NeedsRunNotedraws the line andrunGoalOfends the goal with the finding. - Verdict steps: the merge box names the first two entries of
branchStepsOf, the list whose first entry is the header step. - Next step:
branchStepOfpicks the Branch header step on every tab, from the comment facts ofuseBranchReviewand the check chain ofuseBranchCheckStep.checkChainActionOfruns Fix checks, Apply fix and Push fix for the header and the Overview row alike.AnalyzedCheckWorkdraws a check agent on its row withItemWorkLine,checkTabLiveOfnames the dot on Checks.commentWorkOfgives a comment Fixing or Queued with its place, andCommentWorkLinedraws it on the row.FixRunCountcounts a batch in the comments bar andcommentTabLiveOfnames the dot on Comments.useHeldReviewGroupskeeps each comment in its group while the tab stays open. - Fix run state:
rowFixOfgives a row its Fixed in sha or failed fact.commentRowResultOfturns it into the row's word, sentence and action (CommentRowWork,CommentResultAction,CommentFixReview).useCommentRowruns Fix, Retry, Apply and Discard per row throughusePendingAction.discardProposedFixdrops the candidate and puts every thread it answers back tonewin one transaction (discardResolveFix;discardFix/discardProposedFix.sqlite.test.ts,resolve-discard.test.ts,rowResult.test.tsx).fixRunReadyOfpicks the fixesFixRunReadyCountcounts in the bar.dropLaunchedSelectionruns instartBatch.checksSkippedOfreads the skipped checks andisMissingDepsReasontells when the reason is about dependencies. - Add a hint:
apps/desktop/src/features/resolve/components/FixCommentsDrawer/index.tsx(Fix comments),apps/desktop/src/features/branch/components/CheckAnalysisDrawer/ProposedFix.tsx(Apply fix, in the drawer and under the row) andapps/desktop/src/features/branch/components/CheckAnalysisHint.tsx(Analyze again). - Fix menus:
FixRunCountand the Retry menu ofCommentResultActiontake their verbs from thefixRunkind of the action registry. - Fact cards:
fileCardOfbuilds the card on a file path andcheckCardOfthe card on a check row. - Checks:
PrChecksandCheckRunRowdraw the grid, andfeatures/branch/components/AnalyzedCheckRow/reads the state of an analyzed row.checkItemWorkStateOfturns the chain into a word ofITEM_WORK_WORDS.checkRowResultOfgives each result word its sentence and its one action (CheckResultAction).CheckProposalInlineopens the proposal under the row, anduseAnalyzedCheckfinds the fix of a re-run check by name.useHeldCheckGroupskeeps each row in the group it had when the tab opened, scoped to the session, mount and review; another scope starts fresh.pushCheckFix.tspushes the fix,ciFixOutcomeOf.tswrites the outcome line andciFixStepsOf.tsthe steps.checksWordOfwords the checks overpullRequestRunsOf. - Check log: before any analysis
AnalyzedCheckRowreads the failed log throughuseCheckLogand thereadCheckLogstore action (fetchFailedCheckLog, only for a jobactionsJobOfknows) andCheckLogInlinedraws it (AnalyzedCheckRow/index.test.tsx). - Tab of a fact:
tabForFactOfpicks the branch tab from a branch state or a move kind, addressed by mount id (tabForFactOf.test.ts).