feat(cli): add currentRole field to thread show and thread list output #572
Reference in New Issue
Block a user
Delete Branch "fix/571-current-role"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Added
currentRole: string | nullfield tothread showandthread listoutput.Why
When monitoring workflows, it's important to know which role is currently executing (for running threads) or which role will execute next (for idle threads). This field makes thread status more actionable.
Changes
currentRole: string | nulltoStepOutputtyperesolveCurrentRole()helper that walks the CAS chain and evaluates the workflow graphstatus=idle→ returns next role from graph evaluationstatus=running→ returns currently executing rolestatus=completed|cancelled→ returnsnull$END→ returnsnullRef
Fixes #571