Skip to content

fix(peers): phase 1 polish — deferred review items#130

Merged
ParkerM2 merged 1 commit into
developfrom
fix/peers-phase1-polish
Apr 24, 2026
Merged

fix(peers): phase 1 polish — deferred review items#130
ParkerM2 merged 1 commit into
developfrom
fix/peers-phase1-polish

Conversation

@ParkerM2
Copy link
Copy Markdown
Owner

Addresses the three minor code-review items deferred from PR #129:

  1. Array.isArray(ops) guard in ws-transport.ts — malformed OPS frames now log and return rather than throwing during iteration.
  2. WS-transport shutdown hookservice-registry now captures the WsTransport handle and exposes disposePeerTransport; lifecycle.before-quit awaits it so the server socket + incoming client sockets close cleanly on app quit.
  3. archiveTask test in progress-service-replicates.test.ts — verifies the op carries status='archived' + archived_at + updated_at in snake_case.

Also: .gitignore gets playwright-report/ and test-results/ (local artifacts).

Test plan

  • All 57 peers integration tests pass (was 56, +1 for archiveTask)
  • Typecheck clean
  • Lint clean on all touched files

…rchiveTask test, gitignore

- ws-transport: validate Array.isArray(ops) on incoming OPS frame; log and
  return on malformed payload instead of throwing during iteration
- service-registry: capture WsTransport handle; expose disposePeerTransport
  for app-quit cleanup instead of fire-and-forget
- lifecycle: invoke disposePeerTransport on before-quit
- progress-service-replicates.test: add archiveTask coverage (update op
  with status=archived + archived_at)
- .gitignore: exclude playwright-report/ and test-results/ artifacts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ParkerM2 ParkerM2 merged commit fd753ed into develop Apr 24, 2026
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