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
refactor(config): replace mutable hydration with immutable ResolvedAppConfig and deprecate IConfig.set()
Architecture changes:
- Introduce immutable ResolvedAppConfig for startup-derived values
- Replace mutating hydrate_auto_append_first_prompt() with pure resolve
functions that return values without modifying config
- Refactor _prune_unavailable_routes() to store effective routes in runtime
state via set_failover_route() instead of mutating app_config.failover_routes
- Add DeprecationWarning to IConfig.set()/AppConfig.set() — callers should
use model_copy(update=...) or ApplicationState instead
- Remove post-load config mutation from load_config(), from_env(), and
ConfigurationApplicator
- Update RequestTransformPipeline to read resolved_app_config from runtime
state with lazy fallback to resolve_app_config()
- Populate app.state.resolved_app_config during application startup
This is the first slice of a staged refactor toward immutable AppConfig +
mutable ApplicationRuntime separation.
0 commit comments