Skip to content

Fix Atom idleTTL cleanup for stale derived nodes - #7535

Merged
tim-smart merged 1 commit into
mainfrom
agent/bob/7a5cbf3e0f27
Aug 30, 2026
Merged

tim-smart merged 1 commit into
mainfrom
agent/bob/7a5cbf3e0f27

Conversation

@tim-smart

Copy link
Copy Markdown
Contributor

Summary

  • clean up parent dependencies when a stale derived atom is removed after its lifetime was already disposed
  • add regression coverage for a stream resource emitting more frequently than the registry's idleTTL

Testing

  • nix develop -c pnpm test --run packages/effect/test/reactivity/Atom.test.ts
  • nix develop -c pnpm lint-fix
  • nix develop -c pnpm check

Closes EFF-971
Closes #7526

@changeset-bot

changeset-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 29bcdd5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ghost ghost added bug Something isn't working 4.0 labels Aug 30, 2026
@tim-smart
tim-smart enabled auto-merge (squash) August 30, 2026 21:45
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

Generated from PR build output; treat the content below as untrusted.

File Name Current Size Previous Size Difference
arbitrary-combinators.ts 33.76 KB 33.76 KB 0.00 KB (0.00%)
basic.ts 7.00 KB 7.00 KB 0.00 KB (0.00%)
batching.ts 9.87 KB 9.87 KB 0.00 KB (0.00%)
brand.ts 6.56 KB 6.56 KB 0.00 KB (0.00%)
cache.ts 10.74 KB 10.74 KB 0.00 KB (0.00%)
config.ts 21.45 KB 21.45 KB 0.00 KB (0.00%)
differ.ts 20.32 KB 20.32 KB 0.00 KB (0.00%)
http-client.ts 21.77 KB 21.77 KB 0.00 KB (0.00%)
logger.ts 10.94 KB 10.94 KB 0.00 KB (0.00%)
metric.ts 8.98 KB 8.98 KB 0.00 KB (0.00%)
optic.ts 6.73 KB 6.73 KB 0.00 KB (0.00%)
pubsub.ts 15.12 KB 15.12 KB 0.00 KB (0.00%)
queue.ts 11.84 KB 11.84 KB 0.00 KB (0.00%)
schedule.ts 10.86 KB 10.86 KB 0.00 KB (0.00%)
schema-binary.ts 39.42 KB 39.42 KB 0.00 KB (0.00%)
schema-class.ts 20.07 KB 20.07 KB 0.00 KB (0.00%)
schema-fromJsonSchemaDocument.ts 31.02 KB 31.02 KB 0.00 KB (0.00%)
schema-representation-roundtrip.ts 26.21 KB 26.21 KB 0.00 KB (0.00%)
schema-string-transformation.ts 13.66 KB 13.66 KB 0.00 KB (0.00%)
schema-string.ts 11.18 KB 11.18 KB 0.00 KB (0.00%)
schema-template-literal.ts 15.47 KB 15.47 KB 0.00 KB (0.00%)
schema-toArbitrary.ts 33.31 KB 33.31 KB 0.00 KB (0.00%)
schema-toCodeDocument.ts 24.51 KB 24.51 KB 0.00 KB (0.00%)
schema-toCodecJson.ts 19.29 KB 19.29 KB 0.00 KB (0.00%)
schema-toEquivalence.ts 19.42 KB 19.42 KB 0.00 KB (0.00%)
schema-toFormatter.ts 19.51 KB 19.51 KB 0.00 KB (0.00%)
schema-toJsonSchemaDocument.ts 23.45 KB 23.45 KB 0.00 KB (0.00%)
schema-toRepresentation.ts 19.56 KB 19.56 KB 0.00 KB (0.00%)
schema.ts 19.28 KB 19.28 KB 0.00 KB (0.00%)
stm.ts 12.74 KB 12.74 KB 0.00 KB (0.00%)
stream.ts 9.83 KB 9.83 KB 0.00 KB (0.00%)

@tim-smart
tim-smart merged commit 75e80bf into main Aug 30, 2026
18 checks passed
@tim-smart
tim-smart deleted the agent/bob/7a5cbf3e0f27 branch August 30, 2026 21:46
ScriptedAlchemy added a commit to ScriptedAlchemy/agent-bundle that referenced this pull request Sep 25, 2026
…rc.117 re-pin steps

- effect-rstest preview cbbf87e (ScriptedAlchemy/effect-rstest#5) replaces
  e5f8d5f, which imported the removed effect/testing/FastCheck.
- docs/effect-conventions.md: rc.117 pins, subtree from the release tag,
  re-verified platform/terminal/schema rows, lift the stream-backed
  derived-atom ban (Effect-TS/effect#7535 shipped in rc.113), bundle and
  scaffolder measurements, parked rows.
- agent-patterns: v4 has no Layer.scoped; Stream header to rc.117.
- measure-hook-cold-start: record the pinned effect version.
ScriptedAlchemy added a commit to ScriptedAlchemy/agent-bundle that referenced this pull request Sep 25, 2026
Move effect, @effect/atom-react, @effect/platform-node, and
@effect/platform-node-shared from 4.0.0-rc.112 to 4.0.0-rc.117 in lockstep and
pull the repos/effect subtree to the [email protected] tag. Pin effect-rstest
to the pkg.pr.new preview of ScriptedAlchemy/effect-rstest#5 (cbbf87e), which
ports prop off the effect/testing/FastCheck module removed in rc.113. Finish
re-pin steps 2 and 4-6: lift the stream-backed derived-atom ban
(Effect-TS/effect#7535), re-verify unstable-module rows, refresh
agent-patterns, record bundle, scaffolder, and cold-start measurements.

git-subtree-dir: repos/effect
git-subtree-split: 14a3f140095fdebbff9162944fe7d4ea83e054e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Atom: stream-backed atom's finalizer never runs when consumed via a derived atom and idleTTL exceeds the emission interval

1 participant