Skip to content

fix: support qa_preview shape in IndexProcessor preview formatting#34151

Merged
crazywoola merged 4 commits intolanggenius:mainfrom
EndlessLucky:olive-34066
Apr 1, 2026
Merged

fix: support qa_preview shape in IndexProcessor preview formatting#34151
crazywoola merged 4 commits intolanggenius:mainfrom
EndlessLucky:olive-34066

Conversation

@EndlessLucky
Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Fixes #34066

The Knowledge Pipeline “Knowledge Base” node was failing in test execution/preview mode for the Simple Q&A template with a KeyError: 'preview'. The QA index processor’s preview output uses qa_preview (and does not include a preview key), but the shared IndexProcessor.format_preview() assumed preview always exists.

This change updates IndexProcessor.format_preview() to support both preview payload shapes (preview and qa_preview) and adds a unit test to prevent regressions.

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 26, 2026
@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@JohnJyong @QuantumGhost @laipz8200 I enabled the workflow on my forked repo but this workflow isn't started automatically. Would you please take a look? Thanks.

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-26 20:34:22.760752648 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-26 20:34:11.329735211 +0000
@@ -24,6 +24,8 @@
   --> controllers/console/version.py:30:2
 ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunk] | LLMResult` [unsafe-overlap]
    --> core/agent/fc_agent_runner.py:113:35
+ERROR Object of class `Base` has no attribute `id` [missing-attribute]
+   --> core/app/apps/advanced_chat/app_generator.py:693:49
 ERROR Class member `EasyUIBasedGenerateTaskPipeline._application_generate_entity` overrides parent class `BasedGenerateTaskPipeline` in an inconsistent manner [bad-override]
   --> core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py:75:5
 ERROR `+=` is not supported between `list[PromptMessageContentUnionTypes]` and `str` [unsupported-operation]
@@ -376,6 +378,8 @@
   --> extensions/storage/huawei_obs_storage.py:31:20
 ERROR `reason` may be uninitialized [unbound-name]
    --> graphon/graph_engine/layers/execution_limits.py:137:61
+ERROR Object of class `GraphExecutionProtocol` has no attribute `node_executions` [missing-attribute]
+   --> graphon/nodes/base/node.py:315:31
 ERROR `str` is not assignable to attribute `id` with type `Never` [bad-assignment]
    --> graphon/nodes/base/node.py:373:32
 ERROR Object of class `BaseOxmlElement` has no attribute `body` [missing-attribute]
@@ -1760,7 +1764,7 @@
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:87:9
 ERROR Type `Response` is not iterable [not-iterable]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:87:9
-ERROR Cannot unpack ((dict[str, Any], StartResponse) -> Iterable[bytes]) | AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[WorkflowPauseDetailsResponse, int] (of size 3) into 2 values [bad-unpacking]
+ERROR Cannot unpack ((dict[str, Any], StartResponse) -> Iterable[bytes]) | AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[dict[str, list[Unknown] | str | None], int] | tuple[dict[str, list[Unknown] | Unknown | None], int] (of size 3) into 2 values [bad-unpacking]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:87:9
 ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:90:12
@@ -1798,6 +1802,10 @@
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:91:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:91:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:91:12
+ERROR Cannot index into `str` [bad-index]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:91:12
 ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:92:12
 ERROR Cannot index into `AsyncIterable[str]` [bad-index]
@@ -1816,6 +1824,10 @@
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:92:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:92:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:92:12
+ERROR Cannot index into `str` [bad-index]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:92:12
 ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:94:9
 ERROR Cannot index into `AsyncIterable[str]` [bad-index]
@@ -1834,6 +1846,10 @@
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:94:9
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:94:9
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:94:9
+ERROR Cannot index into `str` [bad-index]
+  --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:94:9
 ERROR `not in` is not supported between `Literal['pending_human_inputs']` and `bytes` [unsupported-operation]
   --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:97:12
 ERROR `not in` is not supported between `Literal['pending_human_inputs']` and `AsyncIterable[bytes]` [not-iterable]
@@ -1854,7 +1870,7 @@
    --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:114:13
 ERROR Type `Response` is not iterable [not-iterable]
    --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:114:13
-ERROR Cannot unpack ((dict[str, Any], StartResponse) -> Iterable[bytes]) | AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[WorkflowPauseDetailsResponse, int] (of size 3) into 2 values [bad-unpacking]
+ERROR Cannot unpack ((dict[str, Any], StartResponse) -> Iterable[bytes]) | AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int] | tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]] | tuple[dict[str, list[Unknown] | str | None], int] | tuple[dict[str, list[Unknown] | Unknown | None], int] (of size 3) into 2 values [bad-unpacking]
    --> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:114:13
 ERROR Missing argument `app_model` in function `controllers.console.app.wraps.decorated_view` [missing-argument]
   --> tests/unit_tests/controllers/console/app/test_wraps.py:21:19
@@ -2579,179 +2595,193 @@
 ERROR Expected a mapping, got Unknown | None [invalid-argument]
   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_config_manager.py:32:29
 ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_]], invoke_from=Literal[InvokeFrom.WEB_APP], workflow_run_id=Literal['run-id'], streaming=Literal[False]) [no-matching-overload]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:31:31
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:24:31
 ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_] | int], invoke_from=Literal[InvokeFrom.WEB_APP], workflow_run_id=Literal['run-id'], streaming=Literal[False]) [no-matching-overload]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:45:31
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:38:31
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:60:27
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:53:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:61:26
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:54:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:63:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:56:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:70:27
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:63:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:71:26
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:64:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:73:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:66:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:83:27
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:76:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:84:26
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:77:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:86:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:79:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:87:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:80:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:93:27
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:86:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:94:26
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:87:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:96:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:89:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:97:22
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:90:22
 ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=Account, args=dict[str, dict[str, str] | list[dict[str, str]] | str], invoke_from=Literal[InvokeFrom.WEB_APP], workflow_run_id=Literal['run-id'], streaming=Literal[False]) [no-matching-overload]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:178:36
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:171:36
 ERROR Object of class `object` has no attribute `files` [missing-attribute]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:195:16
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:188:16
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:223:23
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:216:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:224:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:217:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:225:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:218:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:226:26
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:219:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:227:21
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:220:21
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:229:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:222:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:230:48
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:223:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:231:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:224:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:283:23
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:276:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:284:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:277:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_iteration_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:286:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:279:18
 ERROR Object of class `object` has no attribute `single_iteration_run` [missing-attribute]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:294:16
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:287:16
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:341:23
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:334:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:342:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:335:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:344:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:337:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:345:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:338:18
 ERROR Object of class `object` has no attribute `single_loop_run` [missing-attribute]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:352:16
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:345:16
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:428:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:427:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:429:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:428:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:432:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:431:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:433:48
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:432:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `pause_state_config` with type `PauseStateLayerConfig | None` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:437:32
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:436:32
 ERROR Cannot index into `Generator[Mapping[str, Any] | str, Any]` [bad-index]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:440:16
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:439:16
 ERROR Cannot index into `object` [bad-index]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:442:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:441:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:520:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:522:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:521:18
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:523:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:524:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:526:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:525:48
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:527:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation | None` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:526:26
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:528:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message | None` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:527:21
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:529:21
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:584:27
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:586:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:589:25
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:591:25
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:590:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:592:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:591:47
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:593:47
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:592:52
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:594:52
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:648:27
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:650:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:653:25
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:655:25
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:654:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:656:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:655:47
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:657:47
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:656:52
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:658:52
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:720:23
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:722:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:725:21
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:727:21
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:726:29
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:728:29
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:727:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:729:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:728:48
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:730:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:804:23
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:806:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:809:21
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:811:21
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:810:29
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:812:29
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:811:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:813:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:812:48
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:814:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:885:27
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:887:27
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:890:25
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:892:25
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:891:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:893:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:892:47
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:894:47
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:893:52
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:895:52
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:943:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:942:31
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:944:31
+ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:945:30
+ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:946:25
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:951:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:947:22
 ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:952:41
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:948:41
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:984:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:989:31
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:985:31
+ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:986:30
+ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:987:25
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:998:22
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:988:22
 ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:999:41
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:989:41
+ERROR `SimpleNamespace` is not assignable to upper bound `Base` of type variable `_T` [bad-specialization]
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1016:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1076:23
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1091:23
 ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1081:21
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1096:21
 ERROR Argument `SimpleNamespace` is not assignable to parameter `variable_loader` with type `VariableLoader` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1082:29
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1097:29
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1083:43
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1098:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1084:48
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1099:48
 ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=Account, args=dict[str, dict[@_, @_] | str], invoke_from=Literal[InvokeFrom.DEBUGGER], workflow_run_id=Literal['run-id'], streaming=Literal[False]) [no-matching-overload]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1156:36
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1171:36
 ERROR Object of class `NoneType` has no attribute `show_retrieve_source` [missing-attribute]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1167:16
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1182:16
 ERROR No matching overload found for function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, workflow=SimpleNamespace, user=EndUser, args=dict[str, dict[@_, @_] | str], invoke_from=Literal[InvokeFrom.SERVICE_API], workflow_run_id=Literal['run-id'], streaming=Literal[False]) [no-matching-overload]
-    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1235:27
+    --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1250:27
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_response_converter.py:94:16
 ERROR Cannot index into `str` [bad-index]
@@ -2762,90 +2792,102 @@
    --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:109:45
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
    --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:176:37
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:177:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
    --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:178:23
+ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:179:22
+ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:180:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
    --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:184:33
 ERROR `SimpleNamespace` is not assignable to attribute `_application_generate_entity` with type `AdvancedChatAppGenerateEntity` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:218:45
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:199:45
 ERROR `SimpleNamespace` is not assignable to attribute `_application_generate_entity` with type `AdvancedChatAppGenerateEntity` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:240:45
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline.py:221:45
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:89:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:95:23
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:90:23
+ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:91:22
+ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:92:17
 ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:101:33
+  --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:96:33
 ERROR `SimpleNamespace` is not assignable to attribute `_message_cycle_manager` with type `MessageCycleManager` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:128:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:123:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `event` with type `QueueTextChunkEvent` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._handle_text_chunk_event` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:136:60
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:131:60
 ERROR Argument `SimpleNamespace` is not assignable to parameter `publisher` with type `AppGeneratorTTSPublisher | None` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._listen_audio_msg` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:145:57
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:140:57
 ERROR `(err: Unknown) -> Unknown` is not assignable to attribute `error_to_stream_response` with type `(self: BasedGenerateTaskPipeline, e: Exception) -> ErrorStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:160:65
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:155:65
 ERROR `() -> _GeneratorContextManager[SimpleNamespace]` is not assignable to attribute `_database_session` with type `(self: AdvancedChatAppGenerateTaskPipeline) -> _GeneratorContextManager[Session]` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:166:38
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:161:38
 ERROR `(**kwargs: Unknown) -> Literal['started']` is not assignable to attribute `workflow_start_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_run_id: str, workflow_id: str, reason: WorkflowStartReason) -> WorkflowStartStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:178:83
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:173:83
 ERROR `TestAdvancedChatGenerateTaskPipeline.test_handle_output_moderation_chunk_publishes_stop._Moderation` is not assignable to attribute `output_moderation_handler` with type `OutputModeration | None` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:214:66
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:209:66
 ERROR `SimpleNamespace` is not assignable to attribute `queue_manager` with type `AppQueueManager` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:215:54
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:210:54
 ERROR `(outputs: Unknown) -> list[dict[str, str]]` is not assignable to attribute `fetch_files_from_node_outputs` with type `(cls: type[WorkflowResponseConverter], outputs_dict: Mapping[str, Any] | None) -> Sequence[Mapping[str, Any]]` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:228:79
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:223:79
 ERROR `(**kwargs: Unknown) -> Literal['done']` is not assignable to attribute `workflow_node_finish_to_stream_response` with type `(self: WorkflowResponseConverter, *, event: QueueNodeExceptionEvent | QueueNodeFailedEvent | QueueNodeSucceededEvent, task_id: str) -> NodeFinishStreamResponse | None` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:231:89
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:226:89
 ERROR Argument `SimpleNamespace` is not assignable to parameter `event` with type `QueueNodeSucceededEvent` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._handle_node_succeeded_event` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:241:64
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:236:64
 ERROR `(**kwargs: Unknown) -> Literal['iter_start']` is not assignable to attribute `workflow_iteration_start_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueIterationStartEvent) -> IterationNodeStartStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:249:93
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:244:93
 ERROR `(**kwargs: Unknown) -> Literal['iter_next']` is not assignable to attribute `workflow_iteration_next_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueIterationNextEvent) -> IterationNodeNextStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:252:92
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:247:92
 ERROR `(**kwargs: Unknown) -> Literal['iter_done']` is not assignable to attribute `workflow_iteration_completed_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueIterationCompletedEvent) -> IterationNodeCompletedStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:253:97
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:248:97
 ERROR `(**kwargs: Unknown) -> Literal['loop_start']` is not assignable to attribute `workflow_loop_start_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueLoopStartEvent) -> LoopNodeStartStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:256:88
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:251:88
 ERROR `(**kwargs: Unknown) -> Literal['loop_next']` is not assignable to attribute `workflow_loop_next_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueLoopNextEvent) -> LoopNodeNextStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:257:87
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:252:87
 ERROR `(**kwargs: Unknown) -> Literal['loop_done']` is not assignable to attribute `workflow_loop_completed_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_execution_id: str, event: QueueLoopCompletedEvent) -> LoopNodeCompletedStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:258:92
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:253:92
 ERROR `(**kwargs: Unknown) -> Literal['finish']` is not assignable to attribute `workflow_finish_to_stream_response` with type `(self: WorkflowResponseConverter, *, task_id: str, workflow_id: str, status: WorkflowExecutionStatus, graph_runtime_state: GraphRuntimeState, error: str | None = None, exceptions_count: int = 0) -> WorkflowFinishStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:323:84
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:318:84
 ERROR `(**kwargs: Unknown) -> list[str]` is not assignable to attribute `workflow_pause_to_stream_response` with type `(self: WorkflowResponseConverter, *, event: QueueWorkflowPausedEvent, task_id: str, graph_runtime_state: GraphRuntimeState) -> list[StreamResponse]` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:324:83
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:319:83
 ERROR `(err: Unknown) -> Unknown` is not assignable to attribute `error_to_stream_response` with type `(self: BasedGenerateTaskPipeline, e: Exception) -> ErrorStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:329:65
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:324:65
 ERROR `(**kwargs: Unknown) -> SimpleNamespace` is not assignable to attribute `_get_message` with type `(self: AdvancedChatAppGenerateTaskPipeline, *, session: Session) -> Message` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:330:33
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:325:33
 ERROR `(**kwargs: Unknown) -> Literal['node_finish']` is not assignable to attribute `workflow_node_finish_to_stream_response` with type `(self: WorkflowResponseConverter, *, event: QueueNodeExceptionEvent | QueueNodeFailedEvent | QueueNodeSucceededEvent, task_id: str) -> NodeFinishStreamResponse | None` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:361:89
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:356:89
 ERROR `SimpleNamespace` is not assignable to attribute `_message_cycle_manager` with type `MessageCycleManager` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:396:43
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:391:43
 ERROR Argument `SimpleNamespace` is not assignable to parameter `event` with type `QueueTextChunkEvent` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._handle_text_chunk_event` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:402:47
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:397:47
 ERROR Argument `TestAdvancedChatGenerateTaskPipeline.test_handle_text_chunk_event_tracks_streaming_metrics._Publisher` is not assignable to parameter `tts_publisher` with type `AppGeneratorTTSPublisher | None` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._handle_text_chunk_event` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:402:68
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:397:68
 ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_message` with type `MessageQueueMessage | WorkflowQueueMessage | None` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._handle_text_chunk_event` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:402:96
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:397:96
 ERROR `TestAdvancedChatGenerateTaskPipeline.test_handle_output_moderation_chunk_appends_token._Moderation` is not assignable to attribute `output_moderation_handler` with type `OutputModeration | None` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:423:66
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:418:66
 ERROR `(**kwargs: Unknown) -> Literal['replace']` is not assignable to attribute `message_replace_to_stream_response` with type `(self: MessageCycleManager, answer: str, reason: str = '') -> MessageReplaceStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:452:78
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:447:78
 ERROR `(**kwargs: Unknown) -> Literal['filled']` is not assignable to attribute `human_input_form_filled_to_stream_response` with type `(self: WorkflowResponseConverter, *, event: QueueHumanInputFormFilledEvent, task_id: str) -> HumanInputFormFilledResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:465:92
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:460:92
 ERROR `(**kwargs: Unknown) -> Literal['timeout']` is not assignable to attribute `human_input_form_timeout_to_stream_response` with type `(self: WorkflowResponseConverter, *, event: QueueHumanInputFormTimeoutEvent, task_id: str) -> HumanInputFormTimeoutResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:466:93
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:461:93
 ERROR Argument `TestAdvancedChatGenerateTaskPipeline.test_save_message_strips_markdown_and_sets_usage._Session` is not assignable to parameter `session` with type `Session` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline._save_message` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:535:40
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:530:40
 ERROR `() -> Literal['end']` is not assignable to attribute `_message_end_to_stream_response` with type `(self: AdvancedChatAppGenerateTaskPipeline) -> MessageEndStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:543:52
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:538:52
 ERROR `(answer: Unknown) -> Literal['safe']` is not assignable to attribute `handle_output_moderation_when_task_finished` with type `(self: BasedGenerateTaskPipeline, completion: str) -> str | None` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:568:84
+   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py:563:84
 ERROR `(**kwargs: Unknown) -> Literal['replace']` is not assignable to attribute `message_replace_to_stream_response` with type `(self: MessageCycleManager, answer: str, reason: str = '') -> MessageReplaceStreamResponse` [bad-assignment]
-   --> tests/unit_tests/core/app/apps/advanced_chat/test_generate_tas\n\n... (truncated) ...

@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@asukaminato0721 Would you please review this PR? Thanks.

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@EndlessLucky EndlessLucky changed the title fix issue #34066 fix: handle basic auth and credential cleanup Mar 30, 2026
@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@asukaminato0721 I enabled workflow on the forked repo but the workflow isn't started automatically. You should manually approve it?

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-31 06:14:53.913041299 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-31 06:14:42.056931830 +0000
@@ -360,6 +360,16 @@
   --> core/tools/utils/web_reader_tool.py:66:35
 ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
    --> core/tools/workflow_as_tool/provider.py:237:26
+ERROR Object of class `NoneType` has no attribute `instrument_app` [missing-attribute]
+   --> extensions/otel/instrumentation.py:103:5
+ERROR Object of class `NoneType` has no attribute `instrument` [missing-attribute]
+   --> extensions/otel/instrumentation.py:109:9
+ERROR Object of class `NoneType` has no attribute `instrument` [missing-attribute]
+   --> extensions/otel/instrumentation.py:113:5
+ERROR Object of class `NoneType` has no attribute `instrument` [missing-attribute]
+   --> extensions/otel/instrumentation.py:117:5
+ERROR Object of class `NoneType` has no attribute `instrument` [missing-attribute]
+   --> extensions/otel/instrumentation.py:123:9
 ERROR Object of class `NoneType` has no attribute `instrument` [missing-attribute]
   --> extensions/otel/runtime.py:96:9
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -660,12 +670,6 @@
    --> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
-ERROR `SimpleNamespace` is not assignable to attribute `mcp_ns` with type `Namespace` [bad-assignment]
-  --> tests/test_containers_integration_tests/controllers/mcp/test_mcp.py:27:21
-ERROR Attribute `payload` of class `Namespace` is a read-only property and cannot be set [read-only]
-  --> tests/test_containers_integration_tests/controllers/mcp/test_mcp.py:31:5
-ERROR Argument `DummyServer` is not assignable to parameter `mcp_server` with type `AppMCPServer` in function `controllers.mcp.mcp.MCPAppApi._validate_server_status` [bad-argument-type]
-   --> tests/test_containers_integration_tests/controllers/mcp/test_mcp.py:460:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:74:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
@@ -1158,24 +1162,12 @@
   --> tests/test_containers_integration_tests/services/test_model_load_balancing_service.py:93:20
 ERROR Argument `Literal['custom']` is not assignable to parameter `provider_type` with type `ProviderType | SQLCoreOperations[ProviderType]` in function `models.provider.Provider.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/services/test_model_load_balancing_service.py:133:27
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_load_balancing_service.py:144:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_load_balancing_service.py:301:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_load_balancing_service.py:420:24
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/services/test_model_provider_service.py:55:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/services/test_model_provider_service.py:64:20
 ERROR Argument `Literal['custom']` is not assignable to parameter `provider_type` with type `ProviderType | SQLCoreOperations[ProviderType]` in function `models.provider.Provider.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/services/test_model_provider_service.py:108:27
-ERROR Argument `Literal['free']` is not assignable to parameter `quota_type` with type `ProviderQuotaType | SQLCoreOperations[ProviderQuotaType | None] | None` in function `models.provider.Provider.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_provider_service.py:110:24
-ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_provider_service.py:149:24
-ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/services/test_model_provider_service.py:187:24
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
 ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
@@ -2050,6 +2042,8 @@
    --> tests/unit_tests/controllers/console/test_wraps.py:298:28
 ERROR Object of class `Exception` has no attribute `description` [missing-attribute]
    --> tests/unit_tests/controllers/console/test_wraps.py:299:48
+ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `controllers.console.workspace.tool_providers.is_valid_url` [bad-argument-type]
+   --> tests/unit_tests/controllers/console/workspace/test_tool_provider.py:155:33
 ERROR `SimpleNamespace` is not assignable to attribute `db` with type `SQLAlchemy` [bad-assignment]
   --> tests/unit_tests/controllers/files/test_image_preview.py:23:17
 ERROR `SimpleNamespace` is not assignable to attribute `request` with type `Request` [bad-assignment]
@@ -2110,6 +2104,14 @@
    --> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:286:35
 ERROR Argument `type[PluginTestPayload]` is not assignable to parameter `payload_type` with type `type[BaseModel]` in function `controllers.inner_api.plugin.wraps.plugin_data` [bad-argument-type]
    --> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:299:35
+ERROR `SimpleNamespace` is not assignable to attribute `db` with type `SQLAlchemy` [bad-assignment]
+  --> tests/unit_tests/controllers/mcp/test_mcp.py:19:17
+ERROR `SimpleNamespace` is not assignable to attribute `mcp_ns` with type `Namespace` [bad-assignment]
+  --> tests/unit_tests/controllers/mcp/test_mcp.py:40:21
+ERROR Attribute `payload` of class `Namespace` is a read-only property and cannot be set [read-only]
+  --> tests/unit_tests/controllers/mcp/test_mcp.py:44:5
+ERROR Argument `DummyServer` is not assignable to parameter `mcp_server` with type `AppMCPServer` in function `controllers.mcp.mcp.MCPAppApi._validate_server_status` [bad-argument-type]
+   --> tests/unit_tests/controllers/mcp/test_mcp.py:467:37
 ERROR Cannot index into `Iterable[bytes]` [bad-index]
    --> tests/unit_tests/controllers/service_api/app/test_audio.py:213:16
 ERROR Cannot index into `Response` [bad-index]
@@ -5691,22 +5693,6 @@
   --> tests/unit_tests/core/telemetry/test_facade.py:46:5
 ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
   --> tests/unit_tests/core/telemetry/test_facade.py:47:5
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/test_provider_manager.py:51:20
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/test_provider_manager.py:64:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/test_provider_manager.py:73:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/test_provider_manager.py:113:20
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/test_provider_manager.py:124:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/test_provider_manager.py:160:20
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/test_provider_manager.py:171:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/test_provider_manager.py:180:24
 ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
   --> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
 ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6574,50 +6560,6 @@
    --> tests/unit_tests/models/test_dataset_models.py:823:16
 ERROR `in` is not supported between `Literal['segmentation']` and `None` [not-iterable]
    --> tests/unit_tests/models/test_dataset_models.py:824:16
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:296:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:316:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:332:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:349:24
-ERROR Argument `Literal['text-embedding']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:357:24
-ERROR Argument `Literal['speech2text']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:365:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.TenantDefaultModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:387:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.TenantDefaultModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:406:24
-ERROR Argument `Literal['text-embedding']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.TenantDefaultModel.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:413:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:573:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:591:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:607:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:628:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:650:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:669:24
-ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:689:44
-ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:690:46
-ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:691:43
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelCredential.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:763:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelCredential.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:785:24
-ERROR Argument `Literal['text-embedding']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelCredential.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:794:24
-ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelCredential.__init__` [bad-argument-type]
-   --> tests/unit_tests/models/test_provider_models.py:818:24
 ERROR Argument `Literal['oauth2']` is not assignable to parameter `credential_type` with type `CredentialType | SQLCoreOperations[CredentialType]` in function `models.tools.BuiltinToolProvider.__init__` [bad-argument-type]
    --> tests/unit_tests/models/test_tool_models.py:141:29
 ERROR Argument `None` is not assignable to parameter `value` with type `SQLCoreOperations[str] | str` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
@@ -6665,15 +6607,15 @@
 ERROR Argument `Literal['invalid_action']` is not assignable to parameter `action` with type `Literal['archive', 'disable', 'enable', 'un_archive']` in function `services.dataset_service.DocumentService.batch_update_document_status` [bad-argument-type]
   --> tests/unit_tests/services/document_service_status.py:70:81
 ERROR Unexpected keyword argument `workspace_id` in function `services.enterprise.enterprise_service.DefaultWorkspaceJoinResult.__init__` [unexpected-keyword]
-   --> tests/unit_tests/services/enterprise/test_enterprise_service.py:239:40
+  --> tests/unit_tests/services/enterprise/test_enterprise_service.py:69:40
 ERROR Unexpected keyword argument `workspace_id` in function `services.enterprise.enterprise_service.DefaultWorkspaceJoinResult.__init__` [unexpected-keyword]
-   --> tests/unit_tests/services/enterprise/test_enterprise_service.py:263:17
+  --> tests/unit_tests/services/enterprise/test_enterprise_service.py:93:17
 ERROR Unexpected keyword argument `workspace_id` in function `services.enterprise.enterprise_service.DefaultWorkspaceJoinResult.__init__` [unexpected-keyword]
-   --> tests/unit_tests/services/enterprise/test_enterprise_service.py:282:17
+   --> tests/unit_tests/services/enterprise/test_enterprise_service.py:112:17
 ERROR Argument `None` is not assignable to parameter `request` with type `Request` in function `httpx._exceptions.HTTPStatusError.__init__` [bad-argument-type]
-  --> tests/unit_tests/services/enterprise/test_plugin_manager_service.py:60:25
+  --> tests/unit_tests/services/enterprise/test_plugin_manager_service.py:54:25
 ERROR Argument `None` is not assignable to parameter `response` with type `Response` in function `httpx._exceptions.HTTPStatusError.__init__` [bad-argument-type]
-  --> tests/unit_tests/services/enterprise/test_plugin_manager_service.py:61:26
+  --> tests/unit_tests/services/enterprise/test_plugin_manager_service.py:55:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `metadata_condition` with type `MetadataCondition | None` in function `services.external_knowledge_service.ExternalDatasetService.fetch_external_knowledge_retrieval` [bad-argument-type]
    --> tests/unit_tests/services/external_dataset_service.py:849:36
 ERROR Cannot index into `list[Unknown]` [bad-index]
@@ -7131,8 +7073,6 @@
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `Mapping` has no attribute `startswith` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_tools_transform_service.py:464:16
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:126:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@asukaminato0721 Would you please approve this PR? Thanks.

Comment thread api/tests/unit_tests/core/rag/indexing/test_index_processor.py Outdated
@asukaminato0721 asukaminato0721 self-requested a review March 31, 2026 09:31
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 31, 2026
@EndlessLucky EndlessLucky changed the title fix: handle basic auth and credential cleanup fix: support qa_preview shape in IndexProcessor preview formatting Mar 31, 2026
@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@asukaminato0721 I got this issue when run the workflow. Would you please take a look? Thanks.

[FAIL] commit-author-match — Commit author(s) "autofix-ci[bot]" do not match PR author "EndlessLucky"

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 31, 2026
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@EndlessLucky
Copy link
Copy Markdown
Contributor Author

EndlessLucky commented Mar 31, 2026

@asukaminato0721 Is there any way to remove autofix.ci commit? The CI check was failed because of it.

@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@dosu Is there any way to remove autofix.ci commit? The CI check was failed because of it.

@dosubot
Copy link
Copy Markdown

dosubot Bot commented Mar 31, 2026

You can remove the autofix-ci[bot] commit by rebasing interactively and dropping it. Here's how:

  1. Interactive rebase — find how many commits are on your branch and run:

    git rebase -i HEAD~N

    (where N covers all your commits including the autofix one)

  2. In the editor, change the line for the autofix-ci[bot] commit from pick to drop (or just delete that line entirely).

  3. Save and close. If there are conflicts (the autofix likely applied formatting changes), resolve them manually.

  4. Force push your branch:

    git push --force-with-lease origin your-branch

Alternatively, if you want a cleaner approach, you can squash the autofix commit into your own so the author stays as you:

git rebase -i HEAD~N

Then mark the autofix commit as squash (or fixup) so it merges into your commit.

If the autofix changes were useful formatting fixes, you may want to apply them yourself before dropping the bot commit — just incorporate those changes into your own commits so nothing is lost.

This should resolve the commit-author-match CI failure.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor  Share on X

@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@dosu I rebased and removed autofix-ci[bot] commit but it is added later. Is there any solution to make it cannot be added?

@dosubot
Copy link
Copy Markdown

dosubot Bot commented Mar 31, 2026

The autofix-ci[bot] commit keeps coming back because the repository's autofix workflow automatically runs linting/formatting tools on every PR push and commits any changes back to your branch. There's no per-PR opt-out mechanism — if the bot finds something to fix, it will push a commit.

The way to prevent it is to run the same fixes locally before pushing, so the bot has nothing to change:

  • Python (api/): Run ruff format and ruff check --fix [1]
  • Frontend (web/): Run eslint --prune-suppressions --quiet
  • Docker files: Run ./generate_docker_compose in the docker/ directory if you changed Docker-related files

The workflow also applies ast-grep transformations for Python modernization patterns (e.g., Optional[T]T | None, .filter().where()), so you may want to check if those are triggering changes too [1].

Once your code passes all these checks locally with no modifications, the autofix bot won't have anything to commit, and the commit-author-match CI check should pass.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor  Share on X

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-01 04:06:50.247369454 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-01 04:06:39.415144474 +0000
@@ -270,9 +270,9 @@
 ERROR `None` is not subscriptable [unsupported-operation]
    --> core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py:452:38
 ERROR `None` is not subscriptable [unsupported-operation]
-  --> core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py:71:20
+  --> core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py:62:20
 ERROR `None` is not subscriptable [unsupported-operation]
-  --> core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py:72:35
+  --> core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py:63:35
 ERROR Class member `UpstashVector.add_texts` overrides parent class `BaseVector` in an inconsistent manner [bad-override]
   --> core/rag/datasource/vdb/upstash/upstash_vector.py:47:9
 ERROR Class member `VikingDBVector.add_texts` overrides parent class `BaseVector` in an inconsistent manner [bad-override]
@@ -3021,13 +3021,13 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:65:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:143:37
+   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:148:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:168:37
+   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:173:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:194:37
+   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:203:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:253:37
+   --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:266:37
 ERROR `Literal['generated-conversation-id']` is not assignable to attribute `id` with type `Never` [bad-assignment]
   --> tests/unit_tests/core/app/apps/test_advanced_chat_app_generator.py:53:22
 ERROR `Literal['generated-message-id']` is not assignable to attribute `id` with type `Never` [bad-assignment]
@@ -3873,7 +3873,7 @@
 ERROR Object of class `BlobChunkMessage` has no attribute `text`
 ERROR Object of class `BlobChunkMessage` has no attribute `json_object`
 ERROR No matching overload found for function `list.__init__` called with arguments: (Generator[Unknown] | None) [no-matching-overload]
-   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:390:20
+   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:404:20
 ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
   --> tests/unit_tests/core/datasource/test_datasource_manager.py:52:5
 ERROR Argument `SimpleNamespace` is not assignable to parameter `datasource_type` with type `DatasourceProviderType` in function `core.datasource.datasource_manager.DatasourceManager.get_datasource_plugin_provider` [bad-argument-type]
@@ -3898,7 +3898,7 @@
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/datasource/test_datasource_manager.py:663:12
 ERROR `in` is not supported between `Literal['Single Page']` and `None` [not-iterable]
-   --> tests/unit_tests/core/datasource/test_website_crawl.py:992:16
+   --> tests/unit_tests/core/datasource/test_website_crawl.py:989:16
 ERROR Argument `Iterator[DatasourceMessage]` is not assignable to parameter `messages` with type `Generator[DatasourceMessage]` in function `core.datasource.utils.message_transformer.DatasourceFileMessageTransformer.transform_datasource_invoke_messages` [bad-argument-type]
   --> tests/unit_tests/core/datasource/utils/test_message_transformer.py:27:26
 ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -4442,15 +4442,15 @@
 ERROR Object of class `NoneType` has no attribute `node` [missing-attribute]
     --> tests/unit_tests/core/plugin/test_plugin_manager.py:1030:16
 ERROR `in` is not supported between `Literal['Rate limit exceeded']` and `None` [not-iterable]
-   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:374:20
+   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:360:20
 ERROR `in` is not supported between `Literal['Invalid credentials']` and `None` [not-iterable]
-   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:393:20
+   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:379:20
 ERROR `in` is not supported between `Literal['Invalid parameters']` and `None` [not-iterable]
-   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:412:20
+   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:398:20
 ERROR `in` is not supported between `Literal['Connection to external service failed']` and `None` [not-iterable]
-   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:431:20
+   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:417:20
 ERROR `in` is not supported between `Literal['Service temporarily unavailable']` and `None` [not-iterable]
-   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:450:20
+   --> tests/unit_tests/core/plugin/test_plugin_runtime.py:436:20
 ERROR Argument `list[SystemPromptMessage | UserPromptMessage]` is not assignable to parameter `prompt_messages` with type `list[PromptMessage]` in function `core.prompt.agent_history_prompt_transform.AgentHistoryPromptTransform.__init__` [bad-argument-type]
   --> tests/unit_tests/core/prompt/test_agent_history_prompt_transform.py:59:25
 ERROR Argument `list[AssistantPromptMessage | SystemPromptMessage | ToolPromptMessage | UserPromptMessage]` is not assignable to parameter `history_messages` with type `list[PromptMessage]` in function `core.prompt.agent_history_prompt_transform.AgentHistoryPromptTransform.__init__` [bad-argument-type]
@@ -5184,13 +5184,13 @@
 ERROR Missing required key `enable` for TypedDict `SummaryIndexSettingDict` [bad-typed-dict-key]
    --> tests/unit_tests/core/rag/indexing/processor/test_qa_index_processor.py:333:78
 ERROR Argument `None` is not assignable to parameter `state` with type `InstanceState[Any]` in function `sqlalchemy.orm.exc.ObjectDeletedError.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:924:84
+   --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:934:84
 ERROR Argument `Literal['completed']` is not assignable to parameter `after_indexing_status` with type `IndexingStatus` in function `core.indexing_runner.IndexingRunner._update_document_index_status` [bad-argument-type]
-    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1038:13
+    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1045:13
 ERROR Argument `Literal['completed']` is not assignable to parameter `after_indexing_status` with type `IndexingStatus` in function `core.indexing_runner.IndexingRunner._update_document_index_status` [bad-argument-type]
-    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1053:71
+    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1060:71
 ERROR Argument `Literal['completed']` is not assignable to parameter `after_indexing_status` with type `IndexingStatus` in function `core.indexing_runner.IndexingRunner._update_document_index_status` [bad-argument-type]
-    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1064:71
+    --> tests/unit_tests/core/rag/indexing/test_indexing_runner.py:1071:71
 ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
     --> tests/unit_tests/core/rag/rerank/test_reranker.py:1578:9
 ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 1, 2026
@crazywoola crazywoola added this pull request to the merge queue Apr 1, 2026
Merged via the queue into langgenius:main with commit 09ee8ea Apr 1, 2026
26 of 27 checks passed
@EndlessLucky
Copy link
Copy Markdown
Contributor Author

@crazywoola Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Knowledge Base node returns "preview" error in Simple Q&A pipeline

3 participants