Skip to content

A sign-in open in the browser holds only its own account's jobs - #1600

Merged
benandez merged 7 commits into
UCSLabs:mainfrom
SetsuaD:fix/1557-sign-in-blocks-one-account
Nov 25, 2026
Merged

benandez merged 7 commits into
UCSLabs:mainfrom
SetsuaD:fix/1557-sign-in-blocks-one-account

Conversation

@SetsuaD

@SetsuaD SetsuaD commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1557.

What was wrong. Busy::signing_in was a bool, set from MailApp::signing_in.is_some(), and every row of Busy::blocks held its job on it. The drivers ask blocks once, before their loop over the accounts (calendar_due, tasks_due, rules_due, auto_replies_due), and the window asks it once for the Inbox check (inbox_check_tick) and for free/busy, so the account a job was for never came into it. With two accounts, a sign-in page left open for one held the other's Inbox check, calendar, to-dos, rules, automatic replies and free/busy until the page was finished or cancelled.

The fix.

  • jobs.rs: Busy::signing_in is Option<Id>, the account whose sign-in is open (SigningIn::account in the window). Busy::blocks(job, account) holds a job when it is that account's, or when anything else at work holds it. Busy::blocks_every(job) is the old rows less the sign-in: what holds a job whichever account it is for. The rows are otherwise as they were.
  • The drivers keep their one check before the loop, with blocks_every, and skip in the loop an account whose sign-in is open: tasks_due, rules_due, auto_replies_due, calendar_due. A shared mailbox's calendar is held by its owner's sign-in (owner_of, as calendar_job signs it in). calendar_due leaves may_ask false when it held an account, so the wish to ask at once is kept for that account (as it was kept before for all of them), and the shared-calendars question still waits for the sign-in. In auto_replies_due, a waiting change for the account that is signing in stays queued, and the other accounts' replies are read meanwhile; the change goes first once the sign-in is over.
  • free_busy_look asks for the calendar's account. In the window, calendar_job_around and check_calendar ask for theirs, and inbox_check_tick asks blocks_every once (the minute starts again, as before, while a round is under way) and skips an account, or a shared mailbox read through it, whose sign-in is open; the others are checked.
  • A sign-in for an account being set up (account == 0) holds none of the existing accounts' jobs.

Nothing else is changed: AskWindow::signing_in stays global (no question to the owner is put over an open sign-in page), and so does the Send/Receive round's own wait in auto_sync (one Send/Receive at a time).

Tests.

  • jobs_tests.rs: a_sign_in_goes_first_for_every_job_of_its_own_account_and_holds_no_other_accounts; everything_else_at_work_holds_a_job_whichever_account_it_is_for (each other field, every job, both accounts); and a_sign_in_left_open_on_one_account_holds_its_jobs_and_none_of_the_others, which has two accounts with a sign-in open on one: the other's calendar, to-dos, rules and automatic replies are due and the signing account's are not, the wish to ask at once is kept, and once the sign-in is over both accounts' jobs are due.
  • auto_replies_tests.rs: a_change_for_an_account_that_is_signing_in_waits_for_it_and_the_others_are_read_meanwhile.
  • tasks_tests.rs, auto_replies_tests.rs, free_busy_tests.rs: the existing sign-in rows name the account, plus a row where another account's sign-in holds nothing.
  • inbox_pass_tests.rs: a_sign_in_left_open_on_one_account_holds_only_its_own_check. With the owner (and a shared mailbox under it) and another account, it leaves a browser sign-in open on the other account: the owner's and the shared mailbox's Inboxes are checked. Then it leaves one open on the owner: only the other account is checked. Then it cancels: all three are checked. The stand-in host's check that every pass is signed as the owner (MB3.18) now expects an account's own sign-in, with the owner's for the shared mailbox, since this test adds an account of its own beside them.

Every new test fails with the old rule put back (a sign-in holding every account's jobs): six in mailcraft-engine and the Inbox check in mailcraft-ui-egui. cargo xtask ci passes: all 14 steps (cargo-deny wasn't installed on the machine, so deny was skipped).

There's no live check against a server for this: a browser sign-in is the Microsoft OAuth path, and the change is in the order the jobs start, which the stand-ins show.

For you to look at.

  • The Send/Receive round still doesn't start while any sign-in is open (auto_sync, ui.sync). I left that alone, since a round is one at a time and often is what opened the page. If you want a round of the other accounts to go while a page is open, that's a change to the round rather than to Busy, and I'd do it separately.
  • blocks_every is public because the drivers need it before their loops. If you'd rather keep one method, the drivers could ask blocks per account and drop the check before the loop, but calendar_due would then have to tell "something global" from "this account's sign-in" some other way.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

Summary by CodeRabbit

  • Bug Fixes
    • Other accounts can continue checking their Inbox and updating calendars, to-dos, rules, and automatic replies while a sign-in page is open. Only work for the account being signed in waits.
    • Calendar refresh requests for an account signing in are retained and handled once sign-in ends.
    • Pending automatic-reply changes are tracked independently for each account, so a change for one account does not replace another account’s pending change.

Busy::blocks took a sign-in as global, so one account's sign-in page left open held the Inbox
check, the calendar, the to-dos, the rules, the automatic replies and free/busy of every account.
Busy now names the account being signed in, and blocks asks for whose job it is: only that
account's jobs (and a shared mailbox's read through it) wait; everything else at work still
holds a job whichever account it is for (Busy::blocks_every).

Human-reviewed, AI-assisted, nobody's mailbox harmed.
@SetsuaD
SetsuaD requested a review from benandez as a code owner November 17, 2026 16:15
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Sign-in busy state now identifies the account being signed in. Engine and UI scheduling hold work for that account while allowing eligible work for other accounts to proceed. Calendar refresh requests and automatic-reply changes can remain queued per account.

Changes: Account-scoped sign-in scheduling

Layer / File(s) Summary
Account-scoped busy rules
crates/engine/src/sync_driver/jobs.rs, crates/engine/src/sync_driver/jobs_tests.rs
Busy.signing_in now stores an optional account ID. Busy::blocks checks that account, and Busy::blocks_every checks account-independent conflicts. Tests cover both blocking rules.
Per-account engine scheduling
crates/engine/src/sync_driver/auto_replies.rs, crates/engine/src/sync_driver/auto_replies_tests.rs, crates/engine/src/sync_driver/free_busy.rs, crates/engine/src/sync_driver/free_busy_tests.rs, crates/engine/src/sync_driver/rules.rs, crates/engine/src/sync_driver/tasks.rs, crates/engine/src/sync_driver/tasks_tests.rs, crates/engine/src/sync_driver/reset_tests.rs
Auto-reply, free/busy, rules, and task scheduling now check account-specific sign-in state. Auto-reply changes are queued per account. Tests cover scheduling, pending work, offline cleanup, permissions, and account removal.
Deferred calendar refreshes
crates/engine/src/sync_driver/calendar.rs, crates/engine/src/sync_driver/calendar_plan.rs, crates/engine/src/sync_driver/jobs_tests.rs
Calendar scheduling retains refresh requests for accounts held by sign-in. It removes those requests when work starts or is reset. Tests cover calendar scheduling during and after sign-in.
Account-aware UI checks
crates/ui-egui/src/calendar_sync.rs, crates/ui-egui/src/inbox_pass.rs, crates/ui-egui/src/inbox_pass_tests.rs, crates/ui-egui/src/jobs.rs, crates/ui-egui/src/category_sync.rs, packaging/release-notes.d/fixes/1557.md
UI busy state carries the active sign-in account ID. Calendar, Inbox, and category checks use account-specific blocking. Tests cover overlapping sign-ins; the release note describes the behavior.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant SignIn as Active sign-in
  participant Busy as Busy state
  participant Scheduler as Account schedulers
  SignIn->>Busy: Set signing-in account ID
  Busy->>Scheduler: Check account-specific blocker
  Scheduler->>Scheduler: Hold that account's work
  Scheduler->>Scheduler: Schedule eligible work for other accounts
Loading

Possibly related PRs

  • UCS-Care-Group/mailcraft#690: Adds automatic-reply permission and pending-change behavior that this PR updates to queue changes per account.
  • UCS-Care-Group/mailcraft#1298: Moves calendar, To Do, rules, and fetch jobs into the engine flow that this PR updates for account-specific sign-in blocking.

Suggested reviewers: kartas39

Merge Risk: Minimal · up to c5f63 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "A sign-in open in the browser holds only its own account's jobs" matches the main change: Busy::signing_in becomes per-account (Option), and Busy::blocks(job, account) holds only that a…
Description check Passed The description follows the template's intent. It states the problem and the fix, and it lists the changed files and the new tests. It also reports how the change was checked (cargo xtask ci passed,…
Linked Issues check Passed [#1557] Done-when criteria are met by the changes in the whole-PR summary and raw change summary. (1) Per-account tracking: Busy::signing_in is Option<Id> in jobs.rs. `Busy::blocks(job, account)…
Out of Scope Changes check Passed Each changed area maps to #1557 or to the mechanism that holds the affected jobs: jobs.rs and jobs_tests.rs (blocking rules); the drivers in sync_driver (tasks.rs, rules.rs, `auto_replies.rs…
Full details: Title check

Explanation

The title "A sign-in open in the browser holds only its own account's jobs" matches the main change: Busy::signing_in becomes per-account (Option<Id>), and Busy::blocks(job, account) holds only that account's jobs instead of every account's. The title is specific and describes the primary behavior change, which the summary, objectives, and linked issue #1557 all support.

Full details: Description check

Explanation

The description follows the template's intent. It states the problem and the fix, and it lists the changed files and the new tests. It also reports how the change was checked (cargo xtask ci passed, with cargo-deny skipped) and notes the lack of a live server check. It names the linked issue with 'Closes #1557.' The template's checklist items (CLA signature, maintainer-edit box, regression test for a crash or data-loss fix) are not addressed. The 'What changes for the person using MailCraft' section is not written as a user-facing change, though the release note file covers that part.

Full details: Linked Issues check

Explanation

[#1557] Done-when criteria are met by the changes in the whole-PR summary and raw change summary. (1) Per-account tracking: Busy::signing_in is Option&lt;Id&gt; in jobs.rs. Busy::blocks(job, account) holds a job only for the signing account, or when blocks_every(job) holds it. Drivers (tasks_due, rules_due, auto_replies_due, calendar_due), free_busy_look, calendar_job_around, check_calendar and inbox_check_tick pass the account. (2) Two-account case: jobs_tests.rs (a_sign_in_left_open_on_one_account_holds_its_jobs_and_none_of_the_others) and inbox_pass_tests.rs (a_sign_in_left_open_on_one_account_holds_only_its_own_check) cover the other account's calendar, to-dos, rules, automatic replies and Inbox check. (3) Test in sync_driver: jobs_tests.rs, tasks_tests.rs, auto_replies_tests.rs and free_busy_tests.rs cover the per-driver rows. Changes since the previous review (per-account auto_replies.waiting, retained calendar due_for, category_sync.rs per-account skipping) support the same criteria. Residual scope point: the issue title and 'Expected' text mention 'sending and receiving'. The Send/Receive round (auto_sync, ui.sync) remains blocked during any sign-in. The issue's scope list and done-when criteria do not name Send/Receive, so this is not an unmet criterion. Basis: PR description, PR summary, and raw change summary. Source files were not read in this review.

Full details: Out of Scope Changes check

Explanation

Each changed area maps to #1557 or to the mechanism that holds the affected jobs: jobs.rs and jobs_tests.rs (blocking rules); the drivers in sync_driver (tasks.rs, rules.rs, auto_replies.rs, calendar_plan.rs, free_busy.rs) and their tests; calendar.rs (retained due_for calendar refresh wish during sign-in); reset_tests.rs (the auto_replies.waiting type change); ui-egui calendar_sync.rs, inbox_pass.rs, jobs.rs, auto_replies.rs, category_sync.rs and inbox_pass_tests.rs (the MB3.18 expectation change follows from the per-account Inbox check); and the release note packaging/release-notes.d/fixes/1557.md. category_sync.rs applies the same per-account blocking to category work, which the PR states is intended. The Send/Receive round and AskWindow::signing_in remain global by design, as the PR description states. No changed area shown is unrelated to #1557. Ignored docs files (docs/gaps.md, docs/log.d/...) were excluded and were not inspected. Basis: PR description, PR summary, and raw change summary. Source files were not read in this review.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b1dacd5 and c5f63c1.

Files ignored due to path filters: 3

  • docs/gaps.md is excluded by !docs/**
  • docs/log.d/ROADMAP/progress/1557.md is excluded by !docs/**
  • docs/log.d/docs/gaps/revisions/1557.md is excluded by !docs/**
Files selected for processing: 11

  • crates/engine/src/sync_driver/auto_replies.rs
  • crates/engine/src/sync_driver/calendar.rs
  • crates/engine/src/sync_driver/calendar_plan.rs
  • crates/engine/src/sync_driver/jobs.rs
  • crates/engine/src/sync_driver/jobs_tests.rs
  • crates/engine/src/sync_driver/rules.rs
  • crates/engine/src/sync_driver/tasks.rs
  • crates/ui-egui/src/auto_replies.rs
  • crates/ui-egui/src/calendar_sync.rs
  • crates/ui-egui/src/category_sync.rs
  • crates/ui-egui/src/jobs.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@benandez benandez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SetsuaD, this is a clean split: blocks_every for what holds every account and blocks(job, account) for the sign-in, and the tests go through every row. No P1/P2. Sign-in and sync changes get every finding fixed before merge, P3s included, so I'm requesting changes for three small ones.

Checked

  • Head b3c5570fc459cf5890d641a4e85a3d716e6f100b. CI is green (run 44123680467, plus Fuzz, CodeQL and CLA; 19 pass, 1 skipped). Merges cleanly with main and with #1599, #1575, #1572 and #1573.
  • cargo test -p mailcraft-engine --lib sync_driver: 139 passed, 0 failed. The ui-egui tests (inbox_pass_tests) and clippy were not run locally; CI ran them green.
  • Read: sync_driver/jobs.rs, auto_replies.rs, calendar_plan.rs, calendar.rs, free_busy.rs, rules.rs/tasks.rs due, ui jobs.rs, inbox_pass.rs, calendar_sync.rs, lib.rs (begin_sign_in), task_sync.rs, scheduling.rs, Mailbox::owner_of, and the new tests.
  • Every row minus signing equals the old row with signing = false (checked row by row in jobs.rs). No caller is left on the old blocks(job) signature. Another account's job wanting a sign-in while one is open is refused by begin_sign_in, so there's no double sign-in.
  • Not checked: a live two-account browser sign-in. Keeping Send/Receive global and a public blocks_every are fine for this PR.

To fix

  1. [P3] The calendar's "ask at once" wish is lost for the signing account (crates/engine/src/sync_driver/calendar_plan.rs:140-146, calendar.rs:212-221). CalendarDriver::due is one flag, and started() clears it for any job with own_days. With A signing in and the calendar brought to the front, B's job starts and clears due, so A's calendar waits for its interval after the sign-in. The test passes because it calls calendar_none_started and never starts B's plan. Could the wish be kept per held account (or not cleared while an account was held), with a test that starts B's plan?
  2. [P3] A held automatic-replies change can be overwritten (auto_replies.rs:269, :293-299). waiting holds one change, so A's change, held for A's sign-in, is replaced without a word when the owner changes B's replies meanwhile. This predates the PR, but the PR makes "held for its sign-in" an ordinary state. Could waiting be per account like held, with a test?
  3. [P3] crates/ui-egui/src/inbox_pass.rs:105: busy is read once before the queue loop. That's right while the loop starts at most one pass; a one-line comment would keep a later change from starting several passes on a stale Busy.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

…nt's doesn't replace it

AutoRepliesDriver::waiting held one change: a change held for its account's sign-in was replaced,
without a word, when the owner changed another account's replies meanwhile. It is now kept per
account, like the changes held for the permission: a newer change of the same account still takes
the place of the one before, and the changes go one at a time, each when its account isn't signing in.

Human-reviewed, AI-assisted, nobody's mailbox harmed.
…ning in

CalendarDriver::due is one flag, and the first job to start clears it: with one account signing in
and the calendar brought to the front, another account's job started and took the wish with it, so
the account that signed in waited for its interval. The look now keeps the wish for each account it
holds for a sign-in (due_for), and that account's own job is what lets go of it.

Human-reviewed, AI-assisted, nobody's mailbox harmed.
Human-reviewed, AI-assisted, nobody's mailbox harmed.
@SetsuaD

SetsuaD commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @benandez. All three are fixed in new commits on top of b3c5570f; nothing you reviewed was rebased.

  1. The calendar's wish to ask at once (20c40bb). The look now keeps the wish for each account it holds for a sign-in (CalendarDriver::due_for). refresh_due counts it for that account, only that account's own job lets go of it, and a look that really looked and started nothing clears it with due. The new test the_wish_to_ask_the_calendar_at_once_is_kept_for_the_account_signing_in_though_another_starts_meanwhile starts B's plan while A signs in, checks that due is gone, and then checks that A alone is asked at once (well inside its interval), and only once.
  2. A held automatic-replies change (7a46c31). AutoRepliesDriver::waiting is now a map per account, like held. A newer change of the same account still replaces the one before, but another account's change never does. Waiting changes go one at a time, lowest account first, each once its account isn't signing in. The new test a_change_held_for_its_sign_in_is_not_overwritten_by_another_accounts_change_meanwhile changes B's replies while A's change waits for A's sign-in. B's change goes, and then A's goes as it was made. Offline still drops every waiting change and says so once, and account removal forgets them.
  3. inbox_pass.rs (b1dacd5). There is now a comment that busy is read once per tick, and that this is right only while the loop starts at most one pass.

Tested at b1dacd5 with cargo test -p mailcraft-engine --lib sync_driver: 141 passed, 0 failed, including the two new tests. cargo fmt --all -- --check is clean. With the old behaviour put back (a single due flag in refresh_due, and a single waiting change), both new tests fail. cargo xtask ci at b1dacd5: all 14 steps passed.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

@benandez benandez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks: all three earlier points are fixed (due_for, the per-account auto-replies map, the inbox comment), and I found nothing new that blocks.

It needs a merge with main first. Main's #790 (category sync) added Start::Categories, and category_sync.rs:157 calls self.job_busy().blocks(Start::Categories) before its per-account loop. Please resolve it like the other drivers:

  • blocks_every before the loop;
  • in the loop, skip any account where blocks(Start::Categories, account);
  • add a Categories row to blocks_every (main's row minus signing);
  • add categories to everything_else_at_work_holds_a_job_whichever_account_it_is_for.

Converting it to plain blocks_every would let a signing-in account's categories job run during its sign-in, and the old blanket rule would bring back #1557 for categories.

@omg-review-bot omg-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated review of b1dacd5

The change is safe to merge. This PR addresses a critical synchronization bug by correctly scoping job blocking during an account sign-in process. By refactoring Busy::signing_in from a global boolean flag to an optional, account-specific ID (Option<Id>), the system now ensures that only jobs belonging to the currently signing-in account are paused, allowing all other accounts' background checks (Inbox, Calendar, Tasks, etc.) to proceed normally. The extensive refactoring across multiple drivers and the addition of comprehensive tests validate this complex state management fix.

No issues found.

✅ Approved: no unresolved findings at [P4] MINOR (Quality) or above.

Model google/gemma-4-e4b · skill code-change-review · 20 files reviewed. Reply to an inline comment to discuss it.

Human-reviewed, AI-assisted, nobody's mailbox harmed.
…nt's

Human-reviewed, AI-assisted, nobody's mailbox harmed.
… is kept for its own account

Main's auto_replies_allowed set the single waiting change; on this branch each account keeps its own.

Human-reviewed, AI-assisted, nobody's mailbox harmed.
@SetsuaD

SetsuaD commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, @benandez. Three commits on top of b1dacd5b, nothing reviewed rewritten:

  • Merge with main (8dd6d052). In jobs.rs the Calendar row takes main's || self.categories and its Categories: a category I delete or rename on a Microsoft account comes back at the next sync #661
    comment, and there is a Categories row in blocks_every: main's row minus signing
    (calendar || tasks || rules || graph || mail_run || queued). jobs_tests.rs keeps this branch's tests and
    main's the_categories_job_waits_for_the_other_jobs_of_the_sign_in_and_the_calendar_for_it (as blocks_every),
    and everything_else_at_work_holds_a_job_whichever_account_it_is_for has categories in its list.
  • Categories (26ae298f), as you described: category_sync.rs asks blocks_every(Start::Categories) before
    its loop and skips an account where blocks(Start::Categories, account). A category list is only read for the
    owner's own Microsoft accounts, so the account is its own signer. Every other .blocks( in the tree already
    names an account.
  • Automatic replies (c5f63c11). Something the merge didn't show as a conflict: main's auto_replies_allowed
    (in ui-egui/src/auto_replies.rs) put the change that waited for the permission back as the single waiting
    change, driver.waiting = Some((account, change)). On this branch each account keeps its own, so it is now
    driver.waiting.insert(account, change), as the engine side does it.

Tested. cargo xtask ci on the last commit (Linux x86_64, toolchain 1.98.1, the CI image): all 14 steps
passed.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

@omg-review-bot

omg-review-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Review posted on c5f63c1

  • Started: 2026-11-24 04:47:22 UTC
  • Model: glm-5.3-flash
  • Review skill: code-change-review

The review is posted here.

@omg-review-bot

Copy link
Copy Markdown

🛑 Daily review limit reached. This organization has had 114 of its 100 reviews for the last 24 hours, so I won't review this pull request, or further pushes to it, for now. Reviews resume automatically from about 2026-11-23 23:08 UTC. I'll still answer replies in my review threads. The limit is set by the bot's administrator.

@sonarqubecloud

Copy link
Copy Markdown

@omg-review-bot omg-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated re-review of c5f63c1

Bot review number 2 of 15.

The per-account busy rule is built correctly: every blocks_every row is exactly the old row minus the sign-in term (verified row by row), blocks(job, account) restores the old behaviour for the account that is signing in, and the waiting map for automatic replies also fixes a latent bug where one account's queued change clobbered another's, with a regression test. No blocking defects found; the only finding is a placeholder link in the release-notes fragment. Reviewed from the diff alone (not independently verified); worth a human glance: free_busy.rs (passes account.id) and category_sync.rs (passes the raw account) are the only new blocks(...) call sites without the owner-of-shared-mailbox mapping every other site applies, which only holds if those paths never see a shared mailbox id.

No new issues found in this update.

✅ Approved: no unresolved findings at [P3] MINOR (Defect) or above.

1 lower-priority or previously reported findings were omitted.

Model glm-5.3-flash · skill code-change-review · 22 files reviewed. Reply to an inline comment to discuss it.

@benandez benandez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SetsuaD, the merge is done the way we asked, and everything from the earlier rounds is still in place. Approving.

Checked

  • Head c5f63c1. CI is green (CI, Fuzz, CodeQL, CLA), and it still merges cleanly with main.
  • Categories: the row in blocks_every is main's row minus the sign-in, the Calendar row keeps main's self.categories, categories_tick_at asks blocks_every before the loop and skips the signing account inside it (category_sync.rs:157-165), and categories is in the every-field test. category_accounts leaves shared mailboxes out, so passing the raw account id is right there. free_busy_account only returns accounts that sign in with Microsoft themselves, and a shared mailbox never does, so account.id is right in free_busy_look too.
  • The merge puts the calendar's sign-in skip before main's #851 rename note, so a held account gets its note once it's free. c5f63c1 makes main's auto_replies_allowed use the per-account waiting map, the same as the engine's own path.
  • The three earlier points (due_for, per-account automatic replies, the Inbox comment) are unchanged.

Optional, not blocking

  • crates/ui-egui/src/category_sync.rs:163: no test covers the new skip. If someone later deleted the continue, the signing account's category job could start in the middle of its sign-in. If they put the blanket hold back, #1557 would come back for categories. Either way every test would still pass. A short window test like the Inbox one (sign-in open on one account, the other account's list job starts and the signing one's doesn't) would pin it down. That can go in this PR or a later one, up to you.

Human-reviewed, AI-assisted, nobody's mailbox harmed.

@benandez
benandez added this pull request to the merge queue Nov 25, 2026
Merged via the queue into UCSLabs:main with commit e3382c9 Nov 25, 2026
20 checks passed
benandez added a commit that referenced this pull request Nov 25, 2026
…y as main has them)

Human-reviewed, AI-assisted, nobody's mailbox harmed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep other accounts sending and receiving while one waits on a browser sign-in

2 participants