Skip to content

Commit 0aac72f

Browse files
committed
Refactor inbox rendering around mailbox cache
1 parent de38061 commit 0aac72f

20 files changed

Lines changed: 3871 additions & 472 deletions

frontend/src/hooks/use-ops.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export function useRunOpsScan() {
6666
mutationFn: (timeRange: MailboxTimeRange) => runOpsScan(timeRange),
6767
onSuccess: (result) => {
6868
invalidate();
69-
toast.success("Unread scan refreshed", {
70-
description: `${result.unreadCount} unread emails mapped for the current provider.`,
69+
toast.success("Unread scan started", {
70+
description: `${result.unreadCount} unread emails are queued for mailbox refresh on the current provider.`,
7171
});
7272
},
7373
onError: (err) => toast.error(`Failed to refresh scan: ${err.message}`),

inboxanchor/agents/action_extractor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def extract(
4444
email: EmailMessage,
4545
*,
4646
classification: Optional[EmailClassification] = None,
47+
allow_llm: bool = True,
4748
) -> list[EmailActionItem]:
4849
preview = email.content_for_processing().strip()
4950
heuristic_items = self._heuristic_extract(email)
51+
if not allow_llm:
52+
return heuristic_items
5053
if not self._should_use_llm(
5154
email,
5255
heuristic_items,

inboxanchor/agents/classifier.py

Lines changed: 249 additions & 195 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)