GitHub Action imports the app server and misses the #3670 /ask fix
github_action_runner.py:22 imports handle_line_comments and matches_review_state from github_app, and that import has side effects in the Action: it switches logs to JSON (setup_logger at github_app.py:31) and sets GITHUB.DEPLOYMENT_TYPE to "app" (github_app.py:599-601, only reset later at github_action_runner.py:202). The Action also keeps its own quoted /ask reformatting (github_action_runner.py:363-366), which missed #3670, so a mobile quote reply with /ask twice loses everything after the second /ask.
Proposal: move the helpers and _reformat_quote_ask_command into a side-effect-free servers/github_common.py, re-exported from github_app, use them from both entry points and delete the Action's copy. Call setup_logger explicitly in the Action's main() so the log level and analytics filter keep working; the Action's log format then changes from JSON to console, which needs a maintainer yes. Add tests for Action/app reformat parity and for importing the runner without loading github_app.
Source: The-PR-Agent/pr-agent