Skip to content

fix(plugin): preserve response hook command context - #411

Open
saltbo wants to merge 1 commit into
rest-sh:mainfrom
saltbo:fix/response-middleware-context
Open

fix(plugin): preserve response hook command context#411
saltbo wants to merge 1 commit into
rest-sh:mainfrom
saltbo:fix/response-middleware-context

Conversation

@saltbo

@saltbo saltbo commented Aug 4, 2026

Copy link
Copy Markdown

Summary

  • invoke response-middleware plugins with the command context instead of the bounded response-body context
  • preserve command cancellation without canceling middleware when a bounded response body closes
  • cover timed responses with a response-middleware integration test

Behavior

Response-middleware hooks no longer fail with context canceled after a successful bounded response when --rsh-timeout is set.

Verification

  • CGO_ENABLED=1 go test ./...
  • CGO_ENABLED=1 go test -tags=integration ./...

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