Repository navigation
fix: run review agents on the subscription of whoever changes them - #385
Merged
Merged
Conversation
An owner who isn't review agents' operator could change their model, effort level, instructions, skipped repositories, drafts, summaries and bots while they kept running on the operator's Claude subscription. Such a change now takes them over, as run_as_me does (ADR 0073); turning them off still moves nothing. The settings form says so before saving and shows a refused save's error, which it hid when the error named a field.
This comment has been minimized.
This comment has been minimized.
Review agents' settings compare the apps that start reviews and the repositories they skip as sets, as the web form does, so that another owner who names them in another order doesn't take them over. The form's tests cover an owner whose review agents someone else runs: the note before saving, the toast after, and a save refused for lack of a Claude connection.
…-or-a-maintainer-or-project # Conflicts: # docs/adr/README.md
kalaspuff
approved these changes
Nov 5, 2026
kalaspuff
deleted the
fctl/669-if-the-owner-or-a-maintainer-or-project
branch
November 5, 2026 20:35
|
fctl reviewed Reviewed by fctl · Review agent settings |
| "skipped_repos": skipped, | ||
| "drafts": drafts, | ||
| "description_summary": description_summary, | ||
| "taken_over_from": (takes_over && !mine) |
There was a problem hiding this comment.
Audit names an operator nothing ran for
Low severity. Turning review agents off keeps operator_id, so when a different owner turns them on again, taken_over_from records the old operator although nothing ran on their subscription while the agents were off. The audit log then claims a takeover that did not happen.
Suggested change
| "taken_over_from": (takes_over && !mine) | |
| "taken_over_from": (takes_over && !mine && was_on) |
Found by fctl review in 7ee6b53.
kalaspuff
pushed a commit
that referenced
this pull request
Nov 5, 2026
…hem (#388) ## Summary The diff dialog showed one file at a time and left stray yellow focus rings behind. It now holds every changed file's diff, one after the other, in one scroll that opens at the file clicked. Each file has a header that stays at the top while its lines scroll, and can fold. All diffs come in one request (`GET /sessions/{id}/diff`, which fills each file's cache), and a file draws its lines once it comes near the view, so sessions with many files stay quick. The list beside the diffs marks the file in view and jumps to a file on a click. - **Keys:** `j`/`k` go from file to file. The arrow keys (and `j`/`k`, Home, End) move through the list, and the focus moves with them. `n`/`p` step from change to change across files. `s` and `w` still lay the diffs out side by side and wrap them. - **Find:** ⌘F (Ctrl+F elsewhere) opens a find bar over the diffs. It searches every file's lines, starting from where you are scrolled. Enter and Shift+Enter, ⌘G/⌘⇧G and F3 step through the matches. If you have scrolled away, the next step starts from where you are now. Alt+C, Alt+W and Alt+R turn on match case, whole word and regular expressions, as in VS Code, and a bad expression says what is wrong. Matches use the transcript find's highlights, the list counts them per file and dims files without any, and Escape closes the bar before the dialog. - **Focus rings:** the header's buttons no longer take the focus, so arrow keys keep scrolling the diffs. The list's rows show keyboard focus as their own inset outline. After the dialog closes, the row it was opened from by a click gets the focus back without the keyboard's ring. Tab still shows the ring as before. Verified with unit tests: the search logic, the line keys matching `parsePatch`, and the dialog's keys, find, folding, bulk loading and focus return. I also drove it with Playwright in Chromium and WebKit against this repository's own #385 and #386 diffs (13 and 55 files): 55 files open in about 0.65 s with a simulated 200 ms network delay, and "diff" (894 matches) is found in about 75 ms. `npm run check` and the web tests pass. Docs: `docs/llms.txt` and the Changes paragraph of getting started describe the new keys. ## Screenshots Before: clicking a file in the list and pressing ↓ rings it in yellow; so does the next-file button after an arrow key, and the Changes row after the dialog closes.    After, the same steps: ↓ in the list went on to the next file with no ring, the header's buttons have none, and the Changes row is quiet after closing.    Finding "review" from `docs/api.md`: the match it is at in brand yellow, the others lighter, and the count per file in the list.  The light theme, side by side, while finding; and a phone, where the list covers the diffs while open.   ## Worth confirming - **Decision:** `/` still focuses the list's file filter rather than the find bar, as it did before; ⌘F is the way into finding in the diffs. - **Decision:** a second ⌘F while the find bar has the focus opens the browser's own find, as the transcript's find does. - **Decision:** `n`/`p` are new keys for the next and previous change (a run of added or removed lines), across files. - **Decision:** matching is literal and ignores case unless a toggle says otherwise (like VS Code), unlike the transcript find, which also ignores accents and the amount of whitespace. Code search is more useful exact. [fctl session](https://app.fctl.sh/s/ses_01M6PQN4596R913AXY00WEW58X) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** It reworks the web app's diff dialog and adds a find bar; it changes no API, storage or server code, and only affects how the session page shows diffs. > > **What it does.** Replaces the diff dialog's one-file-at-a-time view with a single scroll through every changed file's diff, fetched together with one `GET /sessions/{id}/diff`, plus a file list and a find bar (⌘F) that searches across all the diffs. The latest commit makes the find bar go to each step once and focus its field once per ⌘F, and scrolls the opened file's row into view in the list after the dialog shows. > > **Large rewrite.** `diff-dialog.tsx` is rewritten and split into `diff-files.tsx` and `diff-find.tsx`; `docs/architecture.md` still describes the old per-file fetch. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M6PT77P05RTXVJF0GZWW0KBY)'s first look at [`7306cfb`](7306cfb) · 13 files, +2255 −562 · [Review agent settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub> <!-- /FCTL_REVIEW_SUMMARY --> --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schedules already do what was asked. A change to a schedule's task, timing, model, effort, branch or GitHub access by anyone but its owner (a project maintainer or owner, a workspace admin) moves it to that person's Claude subscription, and so does a resume. Pausing it moves nothing. I confirmed this in
cargo xtask devwith a second member, so this pull request doesn't change schedules.Review agents didn't work that way. A project owner or workspace admin who wasn't the operator could change their instructions, model, effort level, skipped repositories, drafts setting, summaries or bots, and the reviews kept running on the operator's subscription. Now a real change by another owner, while review agents are on, takes them over, as Run them on mine (
run_as_me) does. Saving settings that haven't changed, or the same apps or repositories in another order, takes nothing over. Turning them off still moves nothing, and whoever turns them on again takes them over, as before. The audit log records whose subscription they were taken from (taken_over_from, as schedules already do). ADR 0073 records the decision, which changes part of ADR 0040, and the docs,llms.txtand the CLI help say it too.In the settings form, an owner who isn't the operator sees that saving moves the reviews to their subscription, and the toast says so after saving. A save the server refuses for lack of a Claude connection now shows its error with a Connect Claude link. Before, the form hid errors that named a field none of its inputs show.
Verified with unit tests of the decision (
fctl_domain::reviews::takes_over,same_names), web tests of the form for an owner who isn't the operator, and incargo xtask dev, with a made-up GitHub App id, review agents run by a second member, and the workspace owner making each kind of change:cargo xtask check --quickpasses.Screenshots
The bottom of the review agents' settings form, for an owner whose review agents run on someone else's subscription. Before:
After, in the light and dark themes:
A save refused because the owner has no Claude connection, which the form didn't show before:
Worth confirming
fctl session
Note
Medium risk. It changes whose Claude subscription a project's review agents run on, which people rely on, and decides this from a comparison of old and new settings on the server.
What it does. When a project owner other than the one the review agents run for changes how they review (model, effort, instructions, bots, skipped repositories, drafts or description summaries), the agents now move to that owner's Claude subscription, as turning them on or taking them over already did. Saving the settings unchanged, or changes by the operator, keep things where they are. The settings form says this before saving, the CLI help and docs say it, and a new ADR records the decision.
Behavior change. Another owner's settings save now needs a connected Claude subscription and silently ends the previous operator's use of theirs; the audit event records
taken_over_from.fctl review's first look at
7ee6b53· 13 files, +315 −44 · Review agent settings