Skip to content

fix(transport): serialize explicit error details - #284

Merged
ArtMathArt merged 2 commits into
masterfrom
fix/portable-error-details
Nov 19, 2026
Merged

ArtMathArt merged 2 commits into
masterfrom
fix/portable-error-details

Conversation

@ArtMathArt

@ArtMathArt ArtMathArt commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Serialize Errors through an explicit portable shape: name, message, stack, string code, bounded cause, and explicit plain-object details.
  • Cap serialized cause payloads at 16 KiB; omit unsupported or oversized cause/details with markers so reporting an Error cannot crash the worker.
  • Keep generic transport serialization strict.
  • Move cleanup, termination, lifecycle, HTTP, and Browser Proxy diagnostics onto explicit details while preserving existing in-process aliases.
  • Add serializer and child-process regressions for AbortSignal, RequestJar, nested causes, URLs, secrets, and successful command recovery after an error.

Validation

  • npm run check-types:main
  • npm run lint (plus focused ESLint after final follow-up)
  • Focused serializer, Browser Proxy, HTTP API, API, test-run-controller, test-worker, and addErrorDetails tests

The unfiltered utils suite still encounters an environment port bind failure on port 45400; focused helper tests pass. GitHub CI for the current head is running.

@ArtMathArt
ArtMathArt marked this pull request as ready for review November 19, 2026 14:16
@ArtMathArt
ArtMathArt merged commit 5cae1a6 into master Nov 19, 2026
4 checks passed
@ArtMathArt
ArtMathArt deleted the fix/portable-error-details branch November 19, 2026 14:17
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