fix(agent): preserve configured prompts in debug runs

[verified] Independently reviewed debug-only Query initialization, explicit-empty prompt semantics, scoped Runner schema/config, trusted execution metadata and MCP projection. Focused RED/GREEN and 249 regression tests pass. No shared orchestration or nondebug behavior changes.
This commit is contained in:
RockChinQ
2026-09-21 19:18:30 +00:00
parent e897c575e0
commit ee90ec61d0
3 changed files with 340 additions and 2 deletions
@@ -96,7 +96,7 @@ def _make_app():
_get_default_values_from_schema=Mock(return_value={}),
)
app.runner_registry = SimpleNamespace(
get=AsyncMock(return_value=SimpleNamespace(usages=['agent'])),
get=AsyncMock(return_value=SimpleNamespace(usages=['agent'], config_schema=[])),
list_runners=AsyncMock(return_value=[]),
)
app.tool_mgr = None