Recommended way to get the active file path DebugTaskAdapterAction?

Hi again,

I have a problem getting the active file for an assistant registered debug task, like the placeholders $FileRelative etc do in template tasks:

in the task, currently I use

nova.workspace.activeTextEditor?.document.path

this works… mostly :confused: except for the situation where the task has been set to “Open report: At run” because then the active tab has already changed to the report output…

any other ideas I could get it from?

ideally it would be passed in TaskAction config parameter