Skip to content

Add interactive GUI PROMPT for Script session runs - #618

Merged
baseGame merged 2 commits into
masterfrom
feature/script-interactive-prompt
Sep 30, 2026
Merged

baseGame merged 2 commits into
masterfrom
feature/script-interactive-prompt

Conversation

@baseGame

Copy link
Copy Markdown
Collaborator

Summary

  • Visible Script session runs ask PROMPT through a real dialog in the Reports Script view (emit + answer command), with Stop/cancel support.
  • Env OPEN_DIFF_SCRIPT_PROMPT_* and Silent-mode defaults keep noninteractive behavior; unit tests cover handler answer and cancel.

Test plan

  • cargo test -p script-core prompt
  • cargo test -p open-diff-app run_script
  • vitest script API + ReportsScriptView + i18n key coverage
  • CI green

Visible script runs emit a prompt request to the Reports Script view,
block until the user answers or cancels, and keep env/default fallbacks
for noninteractive and Silent mode.
Unit tests that mount Reports Script without event mocks must not throw
or leave unhandled rejections when listen is unavailable.
@baseGame
baseGame merged commit 59c952f into master Sep 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant