Skip to content

Sort Variables in the variable selector by most recently declared #18564

Closed
@GeorgeCaoJ

Description

@GeorgeCaoJ

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Current Behavior

Currently, variables in the selector are sorted from the start node to the current node. This means:

  • Variables declared in earlier nodes appear at the top
  • Most recently declared variables appear at the bottom
  • Users often need to scroll to the bottom to find recently declared variables, which is time-consuming and reduces efficiency

Expected Behavior

  • Reverse the current ordering to show variables from nearest to farthest
  • Most recently declared variables (nearest to current node) should appear at the top

Benefits

  1. Reduced scrolling and faster variable selection
  2. More intuitive variable discovery
  3. Aligns with programming best practices of variable scoping
  4. Improves overall workflow/chatflow efficiency

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions