Skip to content

Bound long-lived server and client memory state (upstream #4176)#34

Merged
patroza merged 1 commit into
fork/candidatesfrom
import/upstream-pr-4176-lifetime
Jul 25, 2026
Merged

Bound long-lived server and client memory state (upstream #4176)#34
patroza merged 1 commit into
fork/candidatesfrom
import/upstream-pr-4176-lifetime

Conversation

@patroza

@patroza patroza commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

One provenance commit adapting upstream #4176 above the pagination/replay candidates.

  • replace the array-backed command read model with keyed persistent maps for O(1)-ish lookups and updates
  • evict deleted thread bodies while retaining deleted IDs as tombstones
  • release stale VCS, browser-surface, preview, and per-thread UI state
  • preserve this fork's settle, snooze, sequential deletion, and worktree-cleanup behavior

Source SHA: 56b6615afdfe3804a466e33cbab9056b8981f217

Verification

  • 10 focused test files, 77 tests passed
  • server typecheck passed (existing Effect suggestions only)
  • web typecheck passed

@patroza
patroza changed the base branch from import/upstream-pr-3510-reliability to import/upstream-pr-3510-reliability-v2 July 25, 2026 08:39
@patroza
patroza force-pushed the import/upstream-pr-4176-lifetime branch from 4c3012e to c43de6d Compare July 25, 2026 08:39
@patroza
patroza changed the base branch from import/upstream-pr-3510-reliability-v2 to fork/candidates July 25, 2026 08:46
Source: pingdotgg#4176
Source SHA: 56b6615

Imported: O(1) command read-model maps, deleted-thread eviction, VCS cache cleanup, browser surface cleanup, preview idle TTL, and per-thread UI cleanup.
Adapted: preserved our thread settlement, snooze, and sequential worktree deletion actions while wiring upstream cleanup into the current hook.
Excluded: none.
@patroza
patroza force-pushed the import/upstream-pr-4176-lifetime branch from c43de6d to c5ffaf8 Compare July 25, 2026 08:46
@patroza
patroza merged commit 0c8f086 into fork/candidates Jul 25, 2026
5 checks passed
@patroza
patroza deleted the import/upstream-pr-4176-lifetime branch July 25, 2026 08:53
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.

2 participants