[PR #32009] fix(logstore): fixed field mapping fixes and LLM node single-step debug #33503

Open
opened 2026-02-21 20:53:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32009

State: open
Merged: No


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

1. Fixed field mapping inconsistencies in workflow_execution logstore table

  • Renamed error_messageerror to align with PostgreSQL schema
  • Renamed started_atcreated_at for consistency
  • Added missing elapsed_time field

2. Fixed LLM node single-step debugging in logstore mode

  • Enables single-step debugging for workflow nodes when using logstore persistence

Screenshots

Workflow Execution Field Mapping Fix

Before After
Before After

LLM Node Single-Step Debug Fix

Before After
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
**Original Pull Request:** https://github.com/langgenius/dify/pull/32009 **State:** open **Merged:** No --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it > 1. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary ### 1. Fixed field mapping inconsistencies in `workflow_execution` logstore table - Renamed `error_message` → `error` to align with PostgreSQL schema - Renamed `started_at` → `created_at` for consistency - Added missing `elapsed_time` field ### 2. Fixed LLM node single-step debugging in logstore mode - Enables single-step debugging for workflow nodes when using logstore persistence ## Screenshots ### Workflow Execution Field Mapping Fix | Before | After | |--------|-------| | <img src="https://github.com/user-attachments/assets/3bdfea35-98e5-48c0-a50b-0a556c2d3d32" alt="Before" width="400" /> | <img src="https://github.com/user-attachments/assets/8bd3aaa1-9645-4f35-8acb-ce64b4c25927" alt="After" width="400" /> | ### LLM Node Single-Step Debug Fix | Before | After | |--------|-------| | <img src="https://github.com/user-attachments/assets/6baa53ac-3810-4653-9a8e-c9208e373922" alt="Before" width="400" /> | <img src="https://github.com/user-attachments/assets/e5a0923f-ec87-47bd-924d-ea6652ef03f4" alt="After" width="400" /> | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `make lint` and `make type-check` (backend) and `cd web && npx lint-staged` (frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:53:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33503