inspector icon indicating copy to clipboard operation
inspector copied to clipboard

fix: log dropped fetch body updates

Open go165 opened this issue 5 months ago • 0 comments

Summary

  • add an optional logger to FetchRequestLogState, defaulting to the existing silent logger
  • emit a debug log when fetchRequestBodyUpdate arrives after its request entry has already left the bounded log
  • pass the web app remote logger into FetchRequestLogState so the diagnostic reaches the existing logging pipeline

Fixes #1390.

Validation

  • cd clients/web && npm test -- src/test/core/mcp/state/fetchRequestLogState.test.ts
  • ./clients/web/node_modules/.bin/prettier --check core/mcp/state/fetchRequestLogState.ts clients/web/src/App.tsx clients/web/src/test/core/mcp/state/fetchRequestLogState.test.ts
  • ./clients/web/node_modules/.bin/eslint --config clients/web/eslint.config.js core/mcp/state/fetchRequestLogState.ts clients/web/src/App.tsx clients/web/src/test/core/mcp/state/fetchRequestLogState.test.ts
  • git diff --check

go165 avatar Jun 14 '26 11:06 go165