Skip to content

Skip continuation-mark probing when stack traces are disabled - #8937

Merged
tim-smart merged 3 commits into
mainfrom
agent/effect-bot/e318b3a2380a
Oct 8, 2026
Merged

tim-smart merged 3 commits into
mainfrom
agent/effect-bot/e318b3a2380a

Conversation

@effect-bot

Copy link
Copy Markdown
Contributor

Summary

  • Skip the module-load continuation-mark probe when Error.stackTraceLimit is zero, avoiding Error allocation and stack formatting.
  • Preserve existing continuation-mark detection when stack traces are enabled.
  • Include the existing regression test commit; tests were unchanged in the implementation run.

Validation

  • Regression previously failed with one stack read instead of zero; now passes.
  • nix develop -c pnpm test --run packages/effect/test/StackCapture.test.ts packages/effect/test/StackTraceLimit.test.ts packages/effect/test/Tracer.test.ts packages/effect/test/Cause.test.ts
  • nix develop -c pnpm lint-fix
  • nix develop -c pnpm check

Closes #8936
Closes EFF-1873

@changeset-bot

changeset-bot Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6920558

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 32 packages
Name Type
effect Patch
@effect/opentelemetry Patch
@effect/vitest Patch
@effect/ai-anthropic Patch
@effect/ai-cloudflare Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/ai-typesafe Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-deno Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-pglite Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch
@effect/docgen Patch
@effect/doctest Patch
@effect/openapi-generator Patch

Not sure what this means? Click here to learn what changesets are.

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

@effect-janitor effect-janitor Bot added the 4.0 label Oct 8, 2026
@tim-smart
tim-smart enabled auto-merge (squash) October 8, 2026 23:51
@github-actions

github-actions Bot commented Oct 8, 2026

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 38.82 KB 38.79 KB +0.03 KB (+0.09%)
basic.ts 7.06 KB 7.06 KB 0.00 KB (0.00%)
batching.ts 10.14 KB 10.14 KB 0.00 KB (0.00%)
brand.ts 6.73 KB 6.73 KB 0.00 KB (0.00%)
cache.ts 10.90 KB 10.90 KB 0.00 KB (0.00%)
config.ts 22.28 KB 22.27 KB +0.01 KB (+0.05%)
differ.ts 21.34 KB 21.34 KB +0.01 KB (+0.04%)
http-client.ts 22.69 KB 22.68 KB +0.01 KB (+0.04%)
http-router.ts 34.12 KB 34.11 KB +0.01 KB (+0.03%)
logger.ts 11.23 KB 11.23 KB 0.00 KB (0.00%)
metric.ts 9.03 KB 9.03 KB 0.00 KB (0.00%)
optic.ts 6.96 KB 6.96 KB 0.00 KB (0.00%)
pubsub.ts 15.21 KB 15.19 KB +0.02 KB (+0.12%)
queue.ts 12.14 KB 12.14 KB 0.00 KB (0.00%)
schedule.ts 11.25 KB 11.23 KB +0.01 KB (+0.12%)
schema-bigdecimal.ts 13.77 KB 13.76 KB +0.01 KB (+0.07%)
schema-binary.ts 40.02 KB 40.00 KB +0.03 KB (+0.07%)
schema-class.ts 21.11 KB 21.09 KB +0.01 KB (+0.05%)
schema-fromJsonSchemaDocument.ts 32.12 KB 32.10 KB +0.02 KB (+0.06%)
schema-representation-roundtrip.ts 27.32 KB 27.31 KB +0.01 KB (+0.04%)
schema-string-transformation.ts 14.52 KB 14.51 KB +0.01 KB (+0.06%)
schema-string.ts 12.03 KB 12.02 KB +0.01 KB (+0.07%)
schema-template-literal.ts 16.09 KB 16.09 KB +0.01 KB (+0.06%)
schema-toArbitrary.ts 38.35 KB 38.32 KB +0.03 KB (+0.08%)
schema-toCodeDocument.ts 25.31 KB 25.30 KB +0.02 KB (+0.06%)
schema-toCodecJson.ts 20.27 KB 20.26 KB +0.01 KB (+0.07%)
schema-toEquivalence.ts 20.48 KB 20.45 KB +0.02 KB (+0.11%)
schema-toFormatter.ts 20.58 KB 20.57 KB +0.00 KB (+0.01%)
schema-toJsonSchemaDocument.ts 25.05 KB 25.03 KB +0.02 KB (+0.06%)
schema-toRepresentation.ts 20.57 KB 20.55 KB +0.01 KB (+0.07%)
schema.ts 20.32 KB 20.31 KB +0.01 KB (+0.05%)
stm.ts 13.27 KB 13.26 KB +0.01 KB (+0.07%)
stream.ts 9.99 KB 9.99 KB 0.00 KB (0.00%)

@tim-smart
tim-smart merged commit 7ff5048 into main Oct 8, 2026
13 checks passed
@tim-smart
tim-smart deleted the agent/effect-bot/e318b3a2380a branch October 8, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

continuationMarksStack formats a stack at module load even when Error.stackTraceLimit is 0

2 participants