From f427c6b40836423610b690c8d6943209170488c8 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Thu, 12 Feb 2026 06:33:30 +0000 Subject: [PATCH] Fix rendered config to include merged endpoints and resolved tracing The old code mutated config_yaml via dict references (endpoints and tracing dicts were modified in-place), so yaml.dump captured the merged state. The refactored code used separate variables without writing them back to config, causing the rendered YAML to miss agent-inferred endpoints and resolved tracing config. Co-Authored-By: Claude Opus 4.6 --- cli/planoai/config_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/planoai/config_generator.py b/cli/planoai/config_generator.py index fd1bae5a..df45b529 100644 --- a/cli/planoai/config_generator.py +++ b/cli/planoai/config_generator.py @@ -84,6 +84,7 @@ def validate_and_render_schema(): config.get("agents", []), config.get("filters", []) ) clusters = build_clusters(config.get("endpoints", {}), agent_endpoints) + config["endpoints"] = clusters log.info("Defined clusters: %s", clusters) validate_prompt_targets(config, clusters) @@ -91,6 +92,7 @@ def validate_and_render_schema(): tracing = validate_tracing( config.get("tracing", {}), DEFAULT_OTEL_TRACING_GRPC_ENDPOINT ) + config["tracing"] = tracing updated_providers, llms_with_endpoint, model_name_keys = process_model_providers( listeners, config.get("routing", {})