Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX: streamify was appending StatusStreamingCallback directly to the shared settings.callbacks list#9073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
glesperance wants to merge3 commits intostanfordnlp:main
base:main
Choose a base branch
Loading
fromTrampoline-AI:fix/streamify-callbacks-settings-leak

Conversation

@glesperance
Copy link
Contributor

Fix streaming status message callback mutation

Bug
streamify was appendingStatusStreamingCallback directly to the sharedsettings.callbacks list.

That list was mutated in place and reused across calls, callbacks (and their status message providers) leaked between differentdspy.streamify(...) invocations.

Fix
Each call tostreamify now works on an isolated callback list by copying the global callbacks before modification.

This prevents callback leakage between programs, ensures that custom status message providers only affect the specific program they are passed to, and restores the correct, deterministic status message behavior required by the tests.

@glesperanceglesperance changed the titleBUG (+FIX): streamify was appending StatusStreamingCallback directly to the shared settings.callbacks listFIX: streamify was appending StatusStreamingCallback directly to the shared settings.callbacks listNov 18, 2025
@glesperanceglesperanceforce-pushed thefix/streamify-callbacks-settings-leak branch frome7a8f45 to2497b19CompareNovember 18, 2025 20:03
Copy link
Collaborator

@chenmoneygithubchenmoneygithub left a comment

Choose a reason for hiding this comment

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

Thanks for spotting the bug and putting up the PR!

glesperance reacted with thumbs up emoji
@glesperance
Copy link
ContributorAuthor

@chenmoneygithub just bumping this in case you missed the notif about the new commit fixing the issue you brought up

chenmoneygithub reacted with thumbs up emoji

Copy link
Collaborator

@chenmoneygithubchenmoneygithub left a comment

Choose a reason for hiding this comment

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

Thank you for the updates and reminder! One comment about the testing, then it should be good to go!



@pytest.mark.anyio
asyncdeftest_default_then_custom_status_message_provider():
Copy link
Collaborator

Choose a reason for hiding this comment

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

We may want to refactor the testing a bit - instead of default => custom, we can put up two threads that apply differentMyStatusMessageProvider, and verify that both threads work as expected. Then at the end we verify that the callback is not being modified.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chenmoneygithubchenmoneygithubchenmoneygithub left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@glesperance@chenmoneygithub@magix022

[8]ページ先頭

©2009-2025 Movatter.jp