Skip to content

Cursor/optional request persister#32

Merged
hmmftg merged 2 commits into
mainfrom
cursor/optional-request-persister
Jun 20, 2026
Merged

Cursor/optional request persister#32
hmmftg merged 2 commits into
mainfrom
cursor/optional-request-persister

Conversation

@hmmftg

@hmmftg hmmftg commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace SaveToRequest with optional generic RequestPersister[Req, Resp] on HandlerParameters; wire Insert after parse and best-effort Update in Recovery.
  • Fix libContext type switch so *gin.Context is handled before generic context.Context.
  • Promote go-chi/chi and golang.org/x/oauth2 to direct go.mod dependencies.

Test plan

  • go test -mod=mod ./handlers/...

Hamid Malek Mohammadi and others added 2 commits June 20, 2026 12:25
Replace SaveToRequest with generic HandlerParameters.Persistence so consumers opt in to insert/update lifecycle hooks without a built-in persister.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@hmmftg hmmftg marked this pull request as ready for review June 20, 2026 11:41
@hmmftg hmmftg merged commit e30e847 into main Jun 20, 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.

1 participant