inspector icon indicating copy to clipboard operation
inspector copied to clipboard

fix(web): surface InspectorClient error events

Open go165 opened this issue 5 months ago • 0 comments

Summary

  • expose the existing InspectorClient error event as lastError from useInspectorClient
  • show a deduped connection-error toast when the hook reports an error status with a reason
  • pin SDK subpath aliases used by repo-root unit tests so App.test.tsx resolves core imports from clients/web/node_modules

Fixes #1323

Validation

  • cd clients/web && npm test -- src/test/core/react/useInspectorClient.test.tsx src/App.test.tsx
  • ./clients/web/node_modules/.bin/prettier --check core/react/useInspectorClient.ts clients/web/src/App.tsx clients/web/src/App.test.tsx clients/web/src/test/core/react/useInspectorClient.test.tsx
  • cd clients/web && ./node_modules/.bin/eslint src/App.tsx src/App.test.tsx src/test/core/react/useInspectorClient.test.tsx vite.config.ts
  • git diff --check

go165 avatar Jun 14 '26 10:06 go165