chore(agent-v2): sync changes#38442
Merged
Merged
Conversation
Contributor
Pyrefly Type Coverage
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #38442 +/- ##
==========================================
+ Coverage 85.31% 85.34% +0.03%
==========================================
Files 5000 5003 +3
Lines 264953 265284 +331
Branches 50366 50424 +58
==========================================
+ Hits 226042 226419 +377
+ Misses 34466 34415 -51
- Partials 4445 4450 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-07-06 13:31:19.841835360 +0000
+++ /tmp/pyrefly_pr.txt 2026-07-06 13:31:10.508991472 +0000
@@ -1916,6 +1916,18 @@
--> tests/unit_tests/conftest.py:48:13
ERROR Object of class `ModuleType` has no attribute `pubsub_redis_client` [missing-attribute]
--> tests/unit_tests/conftest.py:50:13
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:49:95
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:72:66
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:84:66
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:110:66
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:128:66
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.common.agent_app_parameters.get_published_agent_app_feature_dict_and_user_input_form` [bad-argument-type]
+ --> tests/unit_tests/controllers/common/test_agent_app_parameters.py:146:95
ERROR No attribute `MethodView` in module `builtins` [missing-attribute]
--> tests/unit_tests/controllers/common/test_fields.py:8:5
ERROR Cannot index into `object` [bad-index]
@@ -2233,19 +2245,19 @@
ERROR Object of class `FunctionType` has no attribute `view_class` [missing-attribute]
--> tests/unit_tests/controllers/openapi/test_device_token.py:31:12
ERROR Object of class `UnprocessableEntity` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:105:9
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:106:9
ERROR Object of class `UnprocessableEntity` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:118:16
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:119:16
ERROR Object of class `UnprocessableEntity` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:122:9
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:123:9
ERROR Object of class `UnprocessableEntity` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:137:9
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:138:9
ERROR No matching overload found for function `dict.__init__` called with arguments: (dict[str, Any] | None) [no-matching-overload]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:146:20
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:147:20
ERROR Object of class `Conflict` has no attribute `hint` [missing-attribute]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:155:9
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:156:9
ERROR No matching overload found for function `dict.__init__` called with arguments: (dict[str, Any] | None) [no-matching-overload]
- --> tests/unit_tests/controllers/openapi/test_error_contract.py:220:48
+ --> tests/unit_tests/controllers/openapi/test_error_contract.py:221:48
ERROR Object of class `NoneType` has no attribute `total_tokens` [missing-attribute]
--> tests/unit_tests/controllers/openapi/test_models.py:13:12
ERROR Argument `test_verify_approval_grant_raises_on_missing_field._FakeKeyset` is not assignable to parameter `keyset` with type `KeySet` in function `libs.jws.sign` [bad-argument-type]
@@ -2285,15 +2297,15 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/app/test_audio.py:186:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:152:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:154:20
ERROR Missing argument `session` in function `services.app_generate_service.AppGenerateService.generate` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:252:45
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:254:45
ERROR Missing argument `session` in function `services.app_generate_service.AppGenerateService.generate` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:264:40
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:266:40
ERROR Missing argument `session` in function `services.app_generate_service.AppGenerateService.generate` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:274:40
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:276:40
ERROR Missing argument `session` in function `services.app_generate_service.AppGenerateService.generate` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:284:40
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:286:40
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_conversation.py:82:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
@@ -3276,9 +3288,13 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.agent_app.app_generator.AgentAppGenerator._resolve_agent` [bad-argument-type]
--> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:92:18
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.agent_app.app_generator.AgentAppGenerator._resolve_agent` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:105:17
+ --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:111:17
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.agent_app.app_generator.AgentAppGenerator._resolve_agent` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:108:22
+ --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:114:22
+ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.agent_app.app_generator.AgentAppGenerator._resolve_agent` [bad-argument-type]
+ --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:122:17
+ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.agent_app.app_generator.AgentAppGenerator._resolve_agent` [bad-argument-type]
+ --> tests/unit_tests/core/app/apps/agent_app/test_resolve_agent.py:125:22
ERROR Object of class `LayerConfig` has no attribute `plugin_id`
ERROR Object of class `LayerConfig` has no attribute `model_provider`
ERROR Object of class `LayerConfig` has no attribute `conversation_id`
@@ -6206,25 +6222,29 @@
ERROR Cannot index into `object` [bad-index]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:218:22
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1116:25
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1125:25
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1117:18
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1126:18
ERROR Class member `FileVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1134:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1143:13
ERROR Class member `FileVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1134:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1143:13
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1159:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1168:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1195:12
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1204:12
ERROR Class member `FileArrayVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1206:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1215:13
ERROR Class member `FileArrayVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1206:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1215:13
+ERROR Class member `UploadedFilesVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1268:13
+ERROR Class member `UploadedFilesVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1268:13
ERROR Class member `LongRemoteUrlVariablePool.get` overrides parent class `FakeVariablePool` in an inconsistent manner [bad-override]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1259:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1310:13
ERROR Class member `LongRemoteUrlVariablePool.get` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1259:13
+ --> tests/unit_tests/core/workflow/nodes/agent_v2/test_runtime_request_builder.py:1310:13
ERROR Object of class `LayerConfig` has no attribute `prefix`
ERROR Object of class `LayerConfig` has no attribute `prefix`
ERROR Class member `_WaitableFakeAgentBackendRunClient.wait_run` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -6989,75 +7009,75 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `pause_model` with type `WorkflowPause` in function `repositories.sqlalchemy_api_workflow_run_repository._PrivateWorkflowPauseEntity.__init__` [bad-argument-type]
--> tests/unit_tests/repositories/test_sqlalchemy_api_workflow_run_repository.py:121:21
ERROR Argument `SimpleNamespace` is not assignable to parameter `binding` with type `WorkflowAgentNodeBinding` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:257:17
+ --> tests/unit_tests/services/agent/test_agent_services.py:258:17
ERROR Argument `SimpleNamespace` is not assignable to parameter `agent` with type `Agent | None` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:258:15
+ --> tests/unit_tests/services/agent/test_agent_services.py:259:15
ERROR Argument `SimpleNamespace` is not assignable to parameter `binding` with type `WorkflowAgentNodeBinding` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:278:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:279:21
ERROR Argument `SimpleNamespace` is not assignable to parameter `agent` with type `Agent | None` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:279:19
+ --> tests/unit_tests/services/agent/test_agent_services.py:280:19
ERROR Argument `SimpleNamespace` is not assignable to parameter `binding` with type `WorkflowAgentNodeBinding` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:287:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:288:21
ERROR Argument `SimpleNamespace` is not assignable to parameter `agent` with type `Agent | None` in function `services.agent.composer_service.AgentComposerService._workflow_inline_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:288:19
+ --> tests/unit_tests/services/agent/test_agent_services.py:289:19
ERROR Object of class `object` has no attribute `prompt` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:1169:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1219:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:1345:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1395:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:1346:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1396:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:1347:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1397:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:1349:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1399:12
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:1350:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:1400:12
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `scoped_session[Unknown]` in function `services.app_service.AppService._build_app_list_filters` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2660:61
+ --> tests/unit_tests/services/agent/test_agent_services.py:2710:61
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `scoped_session[Unknown]` in function `services.app_service.AppService._build_app_list_filters` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2669:63
+ --> tests/unit_tests/services/agent/test_agent_services.py:2719:63
ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:3147:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:3197:16
ERROR Object of class `object` has no attribute `mode` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:3148:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:3198:16
ERROR Object of class `object` has no attribute `agent_role` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:3149:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:3199:16
ERROR Object of class `object` has no attribute `agent_role` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:3225:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:3275:16
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3479:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:3529:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.validate_agent_nodes_for_publish` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3506:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:3556:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.validate_agent_nodes_for_publish` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3528:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:3578:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.project_draft_bindings_to_graph` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3592:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:3642:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.project_draft_bindings_to_graph` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3649:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:3699:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.project_draft_bindings_to_graph` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3700:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:3750:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3753:21
-ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3848:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:3803:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
--> tests/unit_tests/services/agent/test_agent_services.py:3898:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3949:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:3948:21
+ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
+ --> tests/unit_tests/services/agent/test_agent_services.py:3999:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3981:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:4031:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:4014:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:4064:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:4064:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:4114:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:4124:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:4174:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:4194:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:4244:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:4227:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:4277:21
ERROR Cannot set item in `dict[str, str]` [unsupported-operation]
- --> tests/unit_tests/services/agent/test_agent_services.py:4604:31
+ --> tests/unit_tests/services/agent/test_agent_services.py:4659:31
ERROR Object of class `NoneType` has no attribute `workflow_prompt` [missing-attribute]
--> tests/unit_tests/services/agent/test_composer_mention_validation.py:113:5
ERROR Argument `object` is not assignable to parameter `pwd` with type `bytes | None` in function `zipfile.ZipFile.read` [bad-argument-type]
@@ -7387,13 +7407,13 @@
ERROR Argument `_FakeWriteSession` is not assignable to parameter `session` with type `scoped_session[Unknown]` in function `services.agent_app_feature_service.AgentAppFeatureConfigService.update_features` [bad-argument-type]
--> tests/unit_tests/services/test_agent_app_feature_service.py:102:21
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
- --> tests/unit_tests/services/test_agent_app_sandbox_service.py:166:5
+ --> tests/unit_tests/services/test_agent_app_sandbox_service.py:192:5
ERROR Object of class `FromClause` has no attribute `drop` [missing-attribute]
- --> tests/unit_tests/services/test_agent_app_sandbox_service.py:171:5
+ --> tests/unit_tests/services/test_agent_app_sandbox_service.py:197:5
ERROR Object of class `object` has no attribute `session_snapshot` [missing-attribute]
- --> tests/unit_tests/services/test_agent_app_sandbox_service.py:259:12
+ --> tests/unit_tests/services/test_agent_app_sandbox_service.py:383:12
ERROR Object of class `object` has no attribute `session_snapshot` [missing-attribute]
- --> tests/unit_tests/services/test_agent_app_sandbox_service.py:292:12
+ --> tests/unit_tests/services/test_agent_app_sandbox_service.py:416:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `version` with type `AgentConfigDraft | AgentConfigSnapshot` in function `services.agent_config_service.AgentConfigTarget.__init__` [bad-argument-type]
--> tests/unit_tests/services/test_agent_config_service.py:69:17
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
|
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Split Agent Stub shell env/token-factory wiring out of server imports, defer CLI helper imports off the help path, and add import-boundary coverage for default client installs.
zyssyz123
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods