Skip to content

Conversation

FeodorFitsner
Copy link
Contributor

@FeodorFitsner FeodorFitsner commented Jul 8, 2025

Close #5276

Summary by Sourcery

Fix OAuth flow with cookie-based state persistence, authorize callbacks, and session error handling; improve Session message buffering and async method invocation with timeouts; refactor Alignment API to constants; apply various web, FastAPI, and Flutter client enhancements.

New Features:

  • Persist OAuth state via a secure cookie and automatically apply authorization callbacks after redirect
  • Add timeout support and cancellation for async UI method invocations in Session

Bug Fixes:

  • Raise explicit error when reconnecting to missing or expired sessions in app manager
  • Handle BrokenPipeError and general exceptions safely in FastAPI session handler
  • Exclude localhost IP from client hash generation for consistent session IDs

Enhancements:

  • Refactor Alignment to use class-level constants instead of class methods
  • Buffer outgoing messages in Session until WebSocket connection is established
  • Simplify Control.invokeMethod listener logic and update Flutter service registries only when UID changes
  • Mark certain Page properties with metadata skip flags to exclude from diff payloads

Build:

  • Bump uvicorn dependency to >=0.35.0 and switch to websockets-sansio transport

Documentation:

  • Update README and code examples to use new Alignment constants

Tests:

  • Adjust tests for new Alignment API and updated control diff expectations

Chores:

  • Remove deprecated websockets/uvicorn warning filters

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

Copy link

cloudflare-workers-and-pages bot commented Jul 8, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7fa5f9
Status:🚫  Build failed.

View logs

@FeodorFitsner FeodorFitsner merged commit b996d06 into main Jul 8, 2025
2 of 3 checks passed
@FeodorFitsner FeodorFitsner deleted the feodor/alpha-fixes-1 branch July 8, 2025 20:22
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.

DeprecationWarning: websockets.legacy is deprecated

1 participant