Skip to content

fix: request context - #70

Merged
alanshaw merged 1 commit into
mainfrom
ash/fix/request-context
Sep 24, 2026
Merged

alanshaw merged 1 commit into
mainfrom
ash/fix/request-context

Conversation

@alanshaw

Copy link
Copy Markdown
Member

Retain the context across HTTP requests.

@alanshaw
alanshaw requested review from a team and a lite review from Copilot September 24, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

馃煛 Changes recommended

The exported codec contract breaks existing downstream implementations and needs a compatibility-preserving approach.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

This pull request propagates caller context through outbound HTTP requests, including cancellation and context values.

Changes:

  • Updates outbound codec encoding to accept context.
  • Attaches context to HTTP requests.
  • Adds propagation and cancellation tests.
File Summary
transport/鈥媡ransport.go Updates the outbound codec contract.
transport/鈥媍odec.go Attaches context to HTTP requests.
transport/鈥媍odec_test.go Tests context propagation.
client/鈥媓ttp_test.go Tests context values and cancellation.
client/鈥媍lient.go Forwards execution context to the codec.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread transport/transport.go
@alanshaw
alanshaw merged commit c31dec7 into main Sep 24, 2026
7 checks passed
@alanshaw
alanshaw deleted the ash/fix/request-context branch September 24, 2026 16:00
alanshaw added a commit to fil-forge/libforge that referenced this pull request Sep 24, 2026
alanshaw added a commit to fil-forge/ingot that referenced this pull request Sep 24, 2026
Upgrades ucantone to bring in the context fix, which allows distributed
tracing to work.

refs fil-forge/ucantone#70
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