Skip to content

feat: start new projects with follow-ups on - #249

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/221-fix-this-please-should-be-an-easy-update
Oct 23, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/221-fix-this-please-should-be-an-easy-update

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

New projects now start with all four follow-ups on: comments that mention the agent, failed checks, merge conflicts, and merged or closed. Before, every switch started off, so in session #209 an agent wasn't told when its pull request (#246) began to conflict with main.

What changed

  • settings::for_new_project (crates/fctl-domain) turns on each follow-up that the create request leaves out, next to where it turns connectors off. A request that sends follow_ups, or some of its fields, keeps what it sends. The project then stores every switch.
  • Existing projects are left as they are stored. There is no migration, as the issue's decision asks. FollowUps::default() is still all off, so a project stored without follow_ups, or without one of its fields, still reads them as off. Serde and the SQL in pull_requests::moved_onto (json_extract(…) = 1) therefore still agree. To turn them on in an existing project, use its Settings or fctl projects set --follow-ups all.
  • fctl projects create --connectors sends whole settings, which turned follow-ups off. It now sends FollowUps::ALL, a new constant in fctl-proto that --follow-ups all uses too. A CLI one version behind still sends them off.
  • Docs: architecture, self-hosting and cli are updated, and the new ADR 0051 supersedes the "all off" part of ADRs 0043 and 0045 for new projects. The ADR also says what limits the cost: at most three failed checks and three conflicts in a row while nobody messages the agent, and one follow-up for a merge or close.
  • The protocol doesn't change: only a doc comment does, which shows up in web/src/gen. Hosts and agents need nothing.
  • fctl-site's privacy policy needs no change: it says what happens "where the project's follow-ups are on", which still reads right.

Verification

  • New unit tests in fctl-domain (new_projects_start_with_follow_ups_on_unless_asked) cover a request with no settings, one with other settings, one with some follow-ups, and an older CLI's whole default settings.
  • cargo xtask check --quick passes.
  • In cargo xtask dev:
    • fctl projects create and fctl projects create --connectors both stored all four switches as true in D1.
    • A POST with {"follow_ups":{"checks":false}} stored checks off and the other three on.

Fixes #247

Session: https://app.fctl.sh/s/ses_01M5NFNH5ZCX4BA0S6QERHAB57

New projects store all four follow-ups on, except those their create
request sends; stored projects keep what they have. fctl projects create
--connectors sends them on. ADR 0051.

Fixes #247
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner October 23, 2026 23:03
@kalaspuff
kalaspuff merged commit b1fb790 into main Oct 23, 2026
10 checks passed
@kalaspuff
kalaspuff deleted the fctl/221-fix-this-please-should-be-an-easy-update branch October 23, 2026 23:06
@fctl-sh fctl-sh Bot mentioned this pull request Oct 23, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Turn follow-ups on by default

1 participant