[minor/bug] fix db query conditional in agent search by target
[minor] better templating of action during copy in console
[minor] console improvements: action details and command results