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.

The Comments tab of the Branch page for PR #318 with Open 8 and Resolved 1, the Fixing 4 of 4 chip and the Answer button, and the comments grouped as Needs you 5, Working and Done, each with its state at the rightThe Comments tab of the Branch page for PR #318 with Open 8 and Resolved 1, the Fixing 4 of 4 chip and the Answer button, and the comments grouped as Needs you 5, Working and Done, each with its state at the right

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.

The comment list of the Branch page grouped as Needs you 6, Working, Done and Left open on GitHub, each row with its author, age, file and line, and its state at the right: Question, Push failed, Fix ready or OpenThe comment list of the Branch page grouped as Needs you 6, Working, Done and Left open on GitHub, each row with its author, age, file and line, and its state at the right: Question, Push failed, Fix ready or Open

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: . It sits in the count's menu while the run works, then under the bar and in the Fix tab of the run drawer. An example is dependencies missing from its copy. Goodboy reads the agent's final message for it. When the reason names dependencies, or the worktree of the branch is missing them, the warning offers Reinstall dependencies. It installs them in that worktree so the next fix run can check.

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.

The Comments tab of the Branch page with the Push confirm open above its header: Push 2 commits to hl/fix-duplicate-credit?, 1 fix in 1 new commit, 1 reply, 1 thread resolved on GitHub, the two commits, 1 comment needs you first, with Cancel and Push buttons, next to the comment the fix answersThe Comments tab of the Branch page with the Push confirm open above its header: Push 2 commits to hl/fix-duplicate-credit?, 1 fix in 1 new commit, 1 reply, 1 thread resolved on GitHub, the two commits, 1 comment needs you first, with Cancel and Push buttons, next to the comment the fix answers

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.

The Conversation tab of the Branch page for hl/fix-duplicate-credit under the session Stop retried webhooks posting a second credit, between the tabs Conversation, Changes, Commits, Checks 1, Runs and Comments 9, with #318 into main by nadia-p and the Fix checks button, the Not ready to merge card listing 1 check failing, Changes requested by omar-t and 3 commits behind main, the reviewers, the checks, the author, the linked issue, the description with its Edit button and the start of the activityThe Conversation tab of the Branch page for hl/fix-duplicate-credit under the session Stop retried webhooks posting a second credit, between the tabs Conversation, Changes, Commits, Checks 1, Runs and Comments 9, with #318 into main by nadia-p and the Fix checks button, the Not ready to merge card listing 1 check failing, Changes requested by omar-t and 3 commits behind main, the reviewers, the checks, the author, the linked issue, the description with its Edit button and the start of the activity

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.

The Changes tab of the Branch page for hl/fix-duplicate-credit with a diff of ledgerClient.ts and postCredit.ts, each file header with Viewed and Comment, Viewed 0 of 6 and Next above the diff, and on the left a filter box and the changed files in a tree with their added and removed linesThe Changes tab of the Branch page for hl/fix-duplicate-credit with a diff of ledgerClient.ts and postCredit.ts, each file header with Viewed and Comment, Viewed 0 of 6 and Next above the diff, and on the left a filter box and the changed files in a tree with their added and removed lines

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.

The Changes diff with the Review panel open: Line comments 1 for src/webhooks/applyWebhook.ts:26, a Verdict of Comment, Approve or Request changes, an optional Summary, GitHub shows it as one review, and a Submit comments buttonThe Changes diff with the Review panel open: Line comments 1 for src/webhooks/applyWebhook.ts:26, a Verdict of Comment, Approve or Request changes, an optional Summary, GitHub shows it as one review, and a Submit comments button

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, ReviewListRow and commentsCountOf draw the list and the count on Fix N threads.
  • Unread threads: unreadThreadsOf is the one function. It joins the threads to the comments of the selected source, keeps the threads rowBelongsToSource lists, and returns null while the reads or the viewer identity are not loaded. useUnreadThreads feeds it to usePullRequestReadiness (the line) and to useThreadVisit (the dots). ReviewFlowVisit mounts useThreadVisit above ReviewFlow and gives the visit snapshot to ReviewList through ThreadVisitContext, so it survives the Resolved switch and an empty list. A write is deduped only while it is in flight.
  • Read record: the thread_reads table (m239), keyed by session and host thread id, behind the store/slices/thread-reads slice. m239 backfills one row per existing resolve_threads row at the migration time. read_at is the latest time of a comment by someone else among the shown ones, falling back to the fetch time, and the upsert keeps the MAX. Memory changes only after the write succeeds and only inside an entry that a load created. A load merges with max per thread, so a late load never undoes a mark, and a late loadThreadReads answer is dropped.
  • Viewer identity: viewerIdentityOf reads 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 GitLab username of the binding for that workspace, project and host. It is the Bitbucket nickname of 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: viewerBindingOf picks the binding. identityHealthOf turns a missing name into the one line and the Reconnect action. IdentityHealthLine shows it on the integration page. IdentityQuietLine shows the quiet line in Comments. refreshViewerIdentity re-reads the name from the host, with no token sent, whenever loadIntegrations runs. useThreadVisit takes isVisible, the Branch page isActive, false while the agent overlay covers it. It takes no snapshot and sends no write while that is false.
  • Comment drawer: ReviewCommentDrawer and CommentDrawerActions.
  • Write review target: mountReviewOf gives the request of the branch on screen, its mountSelectedPr pick 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. ReviewTargetChooser draws the choice in the form and above the diff while it loads or fails (WriteReview/index.test.tsx). addReviewDraft takes the target and stamps it on the draft, and publishPrReview sends only the drafts stamped with the target it is given (index.test.ts, mountReviewOf.test.ts).
  • Reply style: useGithubProjectRoots reads each project remote and returns null until the answer matches the workspace and projects on screen. learnWorkspaceReplyStyle reads 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_on and integrate_onto_owner_tree in apps/desktop/src-tauri/src/worktree/candidates/owner_tree.rs start the copy on the working tree and land the fix uncommitted. readyFixBlocking in resolveLane.ts holds a fix behind a ready one, and ReadyFixFirst draws the line. move_branch in branch_move.rs moves a comment fix onto the branch by name. buildResolverKickoffParts adds the note section to the brief, and isOffTargetFix decides the line under Proposed change. A run that ends without a result records no_result.
  • Broad comments: commentScopeOf is the one breadth rule, long meaning past 400 characters. commentLaneOf turns it into the fix, run or in-run lane, and useReviewEntries puts the lane on each entry. useBranchReview counts Fix N comments and the run suggestion from that lane. reviewBarPlanOf leads a broad comment with reviewComment.startRun, and branchStepOf adds the suggestRun step. 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: commentRunViewsOf maps each thread to the run commentRunOf names, with the word sessionRunsOf gives that run (useCommentRuns). projectResolveComment turns an open, failed or left open thread into in_run while the run works, and an open or failed one into run_finished after; CommentRunStrip draws the drawer strip. The actions read runAgentId to leave out Fix, Skip and the fix retries (reviewComment.matrix.test.ts, scene u47-comment-run-working).
  • Run end: commentRunViewsOf gives each run view an end (working, finished, stopped) and the Lead's outputSummary. A stopped or failed run still names its threads, and projectResolveComment gives them their own word back. useCommentRuns and the action facts share commentRunViewsFrom.
  • Run end actions: reviewComment.resolveRunNote closes a note with closeResolvedNote, and reviewComment.reopenRunNote reopens it. reviewComment.replyFromRun calls replyFromCommentRun. It reads the mount's worktree status, refuses while commits wait to be pushed, then calls replyAndResolveThread (replyFromCommentRun.test.ts). reviewComment.keepOpen leaves the comment open. sendChangeToCommentRun queues the new text and only then settles the change (sendChangeToCommentRun.sqlite.test.ts, scenes u47-comment-run-finished, -stopped, -changed).
  • Send to Lead: reviewComment.addToRun offers the newest open Lead on the comment's mount (joinableCommentRunsOf, commentMountIdOf). addToCommentRun appends the thread with addAgentSourceThread, 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 in packages/core/src/context/marker-parsing.ts. resolveTurnPatchOf fails only that thread with a needs_run: reason, persistResolveTurn records the cause needs_a_run, and reconcileResolveAttempts never files it as app_closed. failureSentence reads the thread reason first, isFixableThread keeps it out of the bulk counts, NeedsRunNote draws the line and runGoalOf ends 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: branchStepOf picks the Branch header step on every tab, from the comment facts of useBranchReview and the check chain of useBranchCheckStep. checkChainActionOf runs Fix checks, Apply fix and Push fix for the header and the Overview row alike. AnalyzedCheckWork draws a check agent on its row with ItemWorkLine, checkTabLiveOf names the dot on Checks. commentWorkOf gives a comment Fixing or Queued with its place, and CommentWorkLine draws it on the row. FixRunCount counts a batch in the comments bar and commentTabLiveOf names the dot on Comments. useHeldReviewGroups keeps each comment in its group while the tab stays open.
  • Fix run state: rowFixOf gives a row its Fixed in sha or failed fact. commentRowResultOf turns it into the row's word, sentence and action (CommentRowWork, CommentResultAction, CommentFixReview). useCommentRow runs Fix, Retry, Apply and Discard per row through usePendingAction. discardProposedFix drops the candidate and puts every thread it answers back to new in one transaction (discardResolveFix; discardFix/discardProposedFix.sqlite.test.ts, resolve-discard.test.ts, rowResult.test.tsx). fixRunReadyOf picks the fixes FixRunReadyCount counts in the bar. dropLaunchedSelection runs in startBatch. checksSkippedOf reads the skipped checks and isMissingDepsReason tells 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) and apps/desktop/src/features/branch/components/CheckAnalysisHint.tsx (Analyze again).
  • Fix menus: FixRunCount and the Retry menu of CommentResultAction take their verbs from the fixRun kind of the action registry.
  • Fact cards: fileCardOf builds the card on a file path and checkCardOf the card on a check row.
  • Checks: PrChecks and CheckRunRow draw the grid, and features/branch/components/AnalyzedCheckRow/ reads the state of an analyzed row. checkItemWorkStateOf turns the chain into a word of ITEM_WORK_WORDS. checkRowResultOf gives each result word its sentence and its one action (CheckResultAction). CheckProposalInline opens the proposal under the row, and useAnalyzedCheck finds the fix of a re-run check by name. useHeldCheckGroups keeps each row in the group it had when the tab opened, scoped to the session, mount and review; another scope starts fresh. pushCheckFix.ts pushes the fix, ciFixOutcomeOf.ts writes the outcome line and ciFixStepsOf.ts the steps. checksWordOf words the checks over pullRequestRunsOf.
  • Check log: before any analysis AnalyzedCheckRow reads the failed log through useCheckLog and the readCheckLog store action (fetchFailedCheckLog, only for a job actionsJobOf knows) and CheckLogInline draws it (AnalyzedCheckRow/index.test.tsx).
  • Tab of a fact: tabForFactOf picks the branch tab from a branch state or a move kind, addressed by mount id (tabForFactOf.test.ts).