greatmengqi 4df595b033 refactor(config): harden AppConfig lifecycle based on review feedback
- set_override now returns a Token; add reset_override() for proper cleanup
- DeerFlowContext.app_config typed as AppConfig (via TYPE_CHECKING) instead of Any
- resolve_context now warns on empty thread_id to surface silent fallback
- Client uses set_override() in addition to init() so multiple clients with
  different configs don't clobber each other at the process-global level
- current() auto-load now warns instead of debug-logs, since implicit
  file-load at arbitrary call sites is easy to miss
- Document that _global needs no lock (atomic pointer swap under GIL)
2026-04-16 11:15:57 +08:00
..