Skip to content

feat(threads): auto-archive inactive threads - #1480

Merged
nixuuu merged 5 commits into
devfrom
feat/thread-auto-archive
Nov 29, 2026
Merged

nixuuu merged 5 commits into
devfrom
feat/thread-auto-archive

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Behavior

  • Add an account setting under Settings → Threads → Archiving on web, desktop, iOS and Android. It starts off and accepts 1–36,500 full days.
  • Count from the latest recorded activity across the main thread and its open side threads. Enabling or changing the rule, unarchiving, and restoring each start a full inactivity period.
  • Archive eligible local user threads through the existing lifecycle. The gateway rechecks the owner's policy and the entire family in the transaction. Pinned, snoozed, unread, working and waiting threads are among those protected. An attached side thread on another computer protects its parent. Drafts protect the thread on its home computer. A draft stored on another linked computer remains available after archiving.
  • The existing archive retention period applies when the account has enabled it. Add fixture coverage for owner isolation, grace periods, stale candidates, cascade, retries and restoring a side thread after its parent archives.

Verification

  • Local on Linux, revision 426a35a04: formatting and lint on the 30 changed TS, TSX and Svelte files and git diff --check passed. Protobuf generation passed earlier in the same branch. Computed the consolidation catalog signature against an isolated PostgreSQL schema and verified the previous signature. A focused Buf comparison found the same eight lint diagnostics as dev.
  • Local browser with fixture responses at 390 and 1280 px: off by default, a 30-day initial value, rejected out-of-range input, explicit saves for 1, 30 and 36,500 days, disabling, and horizontal fit.
  • Consolidation now preserves both inactivity timestamps. The previous CI run passed the new archive tests and identified the missing catalog signature.
  • CI owns repository-wide checks, builds and the PostgreSQL integration tests. Native renderer layout was not verified locally.

Copy audit

  • No inactivity control → Auto-archive inactive threads. Short descriptions explain how activity is counted, what receives protection, when a new period starts, and how automatic deletion applies.
  • Generic archived status → Auto-archived for inactivity for this reason, shown in text. Web keeps the existing archive timestamp.
  • Limits and save state remain legible without color. Checked the new copy and number field at narrow and desktop browser widths. Native wrapping remains unverified.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 16:28
@nixuuu
nixuuu merged commit 53d28a4 into dev Nov 29, 2026
25 checks passed
@nixuuu
nixuuu deleted the feat/thread-auto-archive branch November 29, 2026 16:50
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.

1 participant