kshitij
9cb456a9b9
fix: unify route dict or-None discipline in /model persist
...
The route dict in _persist_model_switch_to_session used filtering
(omits falsy values) while the top-level keys used (writes
explicit None to trigger deletion in _merge_model_config_json). This
asymmetry meant stale keys from a previous /model switch survived in
the nested gateway_runtime dict even after the fix in #85261 that
properly deleted them from the top-level keys.
Fix: build the route dict with and derive the top-level keys
from **route so both shapes always use identical deletion semantics.
Also filter None values in session_gateway_runtime's reader since
gateway_runtime is replaced as a whole dict (not deep-merged), so None
values written by the persist path survive in the nested dict.
Found by /simplify-code 3-reviewer review on #85261 (all 3 reviewers
converged on the route dict asymmetry as the verdict-relevant finding).
2026-08-14 13:18:53 +05:30
..
2026-07-29 19:53:17 -07:00
2026-07-31 21:21:20 -07:00
2026-07-29 13:10:23 -07:00
2026-08-08 17:37:26 -07:00
2026-07-29 13:10:23 -07:00
2026-07-08 07:59:24 -07:00
2026-06-19 16:59:43 -07:00
2026-07-29 13:10:23 -07:00
2026-07-14 22:14:10 -07:00
2026-07-31 22:35:12 -07:00
2026-07-29 13:10:23 -07:00
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 23:16:18 -07:00
2026-07-30 03:39:26 -05:00
2026-07-21 04:29:34 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-25 19:57:58 -05:00
2026-07-29 13:10:23 -07:00
2026-08-09 22:09:49 -04:00
2026-08-01 15:34:16 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 23:16:18 -07:00
2026-08-09 22:09:49 -04:00
2026-05-12 14:56:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-01 00:12:32 -07:00
2026-07-17 20:55:24 +00:00
2026-08-08 19:22:53 -07:00
2026-04-29 23:53:17 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-20 14:18:33 -05:00
2026-07-29 13:10:23 -07:00
2026-08-10 10:40:19 -07:00
2026-07-29 13:10:23 -07:00
2026-07-31 12:04:59 -04:00
2026-04-29 21:07:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:20:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-08 17:02:55 -07:00
2026-07-29 13:10:23 -07:00
2026-04-20 23:05:38 -07:00
2026-07-29 13:10:23 -07:00
2026-05-29 00:31:44 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 15:12:28 -07:00
2026-08-02 20:30:06 -07:00
2026-07-29 21:30:53 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 08:19:14 -07:00
2026-07-23 07:24:46 -07:00
2026-08-09 22:09:49 -04:00
2026-07-29 13:10:23 -07:00
2026-08-09 22:09:49 -04:00
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-05-24 16:13:03 -07:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:41:54 -07:00
2026-07-29 13:10:23 -07:00
2026-08-13 11:07:37 -07:00
2026-07-29 13:10:23 -07:00
2026-07-31 22:33:16 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-09 10:33:58 -07:00
2026-06-03 23:51:44 -06:00
2026-07-29 13:10:23 -07:00
2026-07-31 21:21:16 -07:00
2026-07-31 21:21:16 -07:00
2026-06-19 01:53:32 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-13 23:45:21 +05:30
2026-08-14 13:18:53 +05:30
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-07-27 21:10:51 -07:00
2026-07-29 13:10:23 -07:00
2026-05-28 22:26:25 -07:00
2026-08-09 22:09:49 -04:00
2026-05-29 19:04:40 -07:00
2026-07-29 13:10:23 -07:00
2026-07-28 23:53:16 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-28 01:08:09 -07:00
2026-08-13 14:22:14 -07:00
2026-07-29 15:12:28 -07:00
2026-08-08 14:06:30 +05:30
2026-07-29 13:10:23 -07:00
2026-07-22 16:51:01 -04:00
2026-06-05 18:05:05 -07:00
2026-07-29 23:16:18 -07:00
2026-07-29 15:34:53 -07:00
2026-07-29 23:16:18 -07:00