You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: eager binding in from_json prevents cross-chat resolution (P1)
When deserializing via activate() or global singleton (no explicit
chat= parameter), from_json now eagerly binds adapter and state from
the currently active Chat. This prevents a thread/channel deserialized
under chat_a from later resolving to chat_b when the context changes.
Changes:
- ThreadImpl.from_json: eagerly bind from get_chat_singleton() when
no explicit chat= or adapter= is provided
- ChannelImpl.from_json: same fix
- 2 new tests: eagerly-bound thread survives context exit, and doesn't
re-resolve to a different chat activated later
- Fix loose cache assertion (<=2 → ==1) in Discord eviction test
- Remove unused real_tests variable in fidelity script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments