fix: from_system_async now reuses provided system instead of creating new one#6874
fix: from_system_async now reuses provided system instead of creating new one#6874YizukiAme wants to merge 1 commit intochroma-core:mainfrom
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
|
Fix This PR fixes a bug where The async initialization flow (identity fetch, tenant/database resolution, admin client creation, validation, and startup event emission) is preserved, and explicit exception cleanup was added to release both client/admin system references when initialization fails. A regression test in This summary was automatically generated by @propel-code-bot |
Fixes #6871
Root cause
AsyncClient.from_system_async()ignored thesystemobject it was given and rebuilt a client fromsystem.settings, which created a fresh shared system instead of binding to the caller's existing component graph.Fix
This change makes
from_system_async()populate and reuse the providedSystemdirectly, preserves the existing async initialization flow on top of that system, and adds a regression test that asserts the returned client references the sameSysteminstance.