- Close the Scripts modal immediately before making the async script-run API call, preventing the modal from interfering with the terminal handoff - Add regression tests covering script-to-terminal handoff behavior (modal close timing, API call sequencing, error handling) - Document the script-run modal handoff behavior in the dashboard README