dify/api/tests/unit_tests/core
QuantumGhost fd255e81e1
feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122)
Certain metadata (including but not limited to `InvokeFrom`, `call_depth`, and `streaming`)  is required when resuming a paused workflow. However, these fields are not part of `GraphRuntimeState` and were not saved in the previous
 implementation of  `PauseStatePersistenceLayer`.

This commit addresses this limitation by introducing a `WorkflowResumptionContext` model that wraps both the `*GenerateEntity` and `GraphRuntimeState`. This approach provides:

- A structured container for all necessary resumption data
- Better separation of concerns between execution state and persistence
- Enhanced extensibility for future metadata additions
- Clearer naming that distinguishes from `GraphRuntimeState`

The `WorkflowResumptionContext` model makes extending the pause state easier while maintaining backward compatibility and proper version management for the entire execution state ecosystem.

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:00:02 +08:00
..
agent/output_parser fix: code block syntax cannot be displayed correctly in react mode (#16904) 2025-03-31 16:27:29 +08:00
app feat(api): Introduce `WorkflowResumptionContext` for pause state management (#28122) 2025-11-12 17:00:02 +08:00
file fix: `File` model add known extra fields, fix issue about the tool of… (#27607) 2025-11-04 09:57:25 +08:00
helper Fix/template transformer line number (#27867) 2025-11-05 15:21:47 +08:00
mcp fix: set conditional capabilities upon MCP client session initialization (#26234) 2025-10-29 15:11:45 +08:00
model_runtime fix: correct agent node token counting to properly separate prompt and completion tokens (#24368) 2025-08-23 11:00:14 +08:00
ops aliyun_trace: unify the span attribute & compatible CMS 2.0 endpoint (#26194) 2025-09-25 22:51:15 +08:00
plugin refactor: unify blob chunk merging logic for plugin tool and agent (#24575) 2025-08-26 21:15:23 +08:00
prompt Feat/chat message image first for agent and advanced_chat APP (#23796) 2025-08-22 16:42:15 +08:00
rag refactor: implement tenant self queue for rag tasks (#27559) 2025-11-06 21:25:50 +08:00
repositories remove .value (#26633) 2025-10-11 09:08:29 +08:00
schemas feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
tools fix: fix OpenAPI Schema Import Pydantic Validation Errors for Complex Default Values (#27159) 2025-10-22 11:45:31 +08:00
variables feat(graph_engine): Support pausing workflow graph executions (#26585) 2025-10-19 21:33:41 +08:00
workflow fix(api): fix `VariablePool.get` adding unexpected keys to variable_dictionary (#26767) 2025-11-06 18:30:35 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
test_file.py feat(llm_node): support order in text and files (#11837) 2024-12-20 14:12:50 +08:00
test_model_manager.py fix RetrievalMethod StrEnum (#26768) 2025-10-13 10:29:37 +08:00
test_provider_configuration.py fix enum and type (#26756) 2025-10-11 17:46:44 +08:00
test_provider_manager.py fix RetrievalMethod StrEnum (#26768) 2025-10-13 10:29:37 +08:00