dify/api/core/helper
EvanYao826 fe29a6585e fix: remove premature db.session operations and validate code language
Remove premature db.session.commit() and db.session.close() calls that
break transaction isolation and cause DetachedInstanceError:

- DatasetRetrieval._on_query: remove commit(), stage audit rows on the
  scoped session for the caller to commit (#37886)
- cloud_edition_billing_rate_limit_check: remove commit() after adding
  rate limit log, upstream session state is no longer flushed (#37885)
- ToolEngine._create_message_files: replace commit()+close() with
  flush() to obtain IDs without ending the transaction (#37884)

Add defensive validation for unsupported code languages in
CodeExecutor.execute_code to prevent sending null language to the
sandbox service (#37874)
2026-06-25 14:16:24 +08:00
..
code_executor fix: remove premature db.session operations and validate code language 2026-06-25 14:16:24 +08:00
__init__.py feat: server multi models support (#799) 2023-08-12 00:57:00 +08:00
creators.py feat: marketplace and oauth fixes (#35509) 2026-04-24 07:53:14 +00:00
credential_utils.py feat: allow disabling run time cred check (#36031) 2026-05-14 07:12:10 +00:00
csv_sanitizer.py chore: normalize frozenset literals and myscale typing (#34327) 2026-03-31 08:21:22 +00:00
download.py fix(api): centralize remote file retrieval (#36399) 2026-06-01 09:25:08 +00:00
encrypter.py refactor: core/tools, agent, callback_handler, encrypter, llm_generator, plugin, inner_api (#34205) 2026-03-28 10:14:43 +00:00
http_client_pooling.py improve: pooling httpx clients for requests to code sandbox and ssrf (#26052) 2025-09-24 22:14:50 +08:00
marketplace.py fix(api): add bounded timeouts to Marketplace POST requests (#37424) 2026-06-16 03:04:48 +00:00
model_provider_cache.py refactor: replace bare dict with dict[str, Any] in helper cache modules (#35067) 2026-04-13 14:05:50 +00:00
moderation.py chore(api): upgrade graphon to v0.3.0 (#35469) 2026-05-09 07:30:03 +00:00
module_import_helper.py chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
name_generator.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
position_helper.py chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
provider_cache.py refactor: add missing @override decorator to agent runners, tool caches, and logging extensions (#36511) 2026-05-22 06:41:48 +00:00
provider_encryption.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
ssrf_proxy.py fix(api): centralize remote file retrieval (#36399) 2026-06-01 09:25:08 +00:00
tool_parameter_cache.py refactor: replace bare dict with dict[str, Any] in helper cache modules (#35067) 2026-04-13 14:05:50 +00:00
trace_id_helper.py chore: port isinstance to match case (#37271) 2026-06-18 00:18:03 +00:00