fix(agent): expose network context
Server CI/CD / docker-image (push) Successful in 16s
Server CI/CD / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-07-08 18:41:56 +08:00
parent 5a91da0904
commit 76cf6c32bc
4 changed files with 22 additions and 2 deletions
+2
View File
@@ -28,6 +28,7 @@ def test_agent_auth_context_returns_metadata_user_and_project_context():
client = _build_client(
project_context=ProjectContext(
project_id=project_id,
project_code="fengyang",
user_id=user_id,
project_role="editor",
),
@@ -50,6 +51,7 @@ def test_agent_auth_context_returns_metadata_user_and_project_context():
"role": "user",
"is_superuser": False,
"project_id": str(project_id),
"network": "fengyang",
"project_role": "editor",
"token_expires_at": "2026-06-11T13:10:00+00:00",
}