When you want to show the output panel, you call:
window.run_command('show_panel', args={'panel': 'output.exec'})
But when you want to find the output panel view, you need to drop the output. from the panel name:
window.focus_view( window.find_output_panel( "exec" ) )
This does not make sense. Isn’t the panel name "output.exec"? Why I am searching for "exec" only?
Does the API internally drop everything before the first dot in "output.exec" leaving only "exec"? What is happening with the "output." here?
Related: