REGRESSION: codex doesnt know defs and refs

This commit is contained in:
lda
2026-05-18 18:47:36 +07:00 Verified
parent 7605a5292d
commit b3586453a5
5 changed files with 58 additions and 2 deletions
+20
View File
@@ -186,6 +186,26 @@ def test_workflow_tools_have_human_metadata() -> None:
asyncio.run(run_proxy())
def test_create_artifact_from_plan_exposes_plan_as_plain_object() -> None:
config = BrokerConfig(
store_root=local_temp_root() / "unified_create_artifact_schema_store",
connections=[],
)
async def run_proxy() -> None:
client = create_server_client(config, admin_tools=False)
async with client:
tools = await client.list_tools()
by_name = {tool.name: tool for tool in tools}
schema = by_name["wf.workflow.create_artifact_from_plan"].inputSchema
plan_schema = schema["properties"]["plan"]
assert plan_schema["type"] == "object"
assert plan_schema.get("additionalProperties") is True
asyncio.run(run_proxy())
def test_server_exposes_platform_documentation_resources() -> None:
config = BrokerConfig(
store_root=local_temp_root() / "unified_docs_resource_store",