Skip to content

🤖 fix: disable ask_user_question in mux run#3336

Merged
ThomasK33 merged 1 commit into
mainfrom
fix/mux-run-disable-ask-user-question
May 20, 2026
Merged

🤖 fix: disable ask_user_question in mux run#3336
ThomasK33 merged 1 commit into
mainfrom
fix/mux-run-disable-ask-user-question

Conversation

@ThomasK33
Copy link
Copy Markdown
Member

Summary

Disable ask_user_question for headless mux run sessions so CLI runs cannot stall waiting for a desktop/mobile answer UI.

Background

mux run already disables UI-only tools such as TODO/status/notify. ask_user_question is also UI-dependent unless prefilled answers are supplied, so exposing it in headless CLI runs can leave the session waiting for an answer path the CLI does not provide.

Implementation

Adds ask_user_question to the CLI toolPolicy disable list used by mux run, with an inline comment explaining the headless interaction constraint.

Validation

  • bun run typecheck
  • bun test src/cli/run.test.ts
  • make fmt-check
  • make lint
  • make static-check

Risks

Low. This only narrows the tool set for mux run; desktop/mobile and normal plan-mode UI flows are unchanged.


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh • Cost: $9.14

@ThomasK33
Copy link
Copy Markdown
Member Author

/coder-agents-review

@ThomasK33
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33 ThomasK33 enabled auto-merge May 20, 2026 12:33
@ThomasK33 ThomasK33 added this pull request to the merge queue May 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@ThomasK33 ThomasK33 added this pull request to the merge queue May 20, 2026
Merged via the queue into main with commit da50747 May 20, 2026
24 checks passed
@ThomasK33 ThomasK33 deleted the fix/mux-run-disable-ask-user-question branch May 20, 2026 13:09
mux-bot Bot added a commit that referenced this pull request May 20, 2026
Five toolPolicy entries differed only by tool name and all shared
`action: "disable" as const`. Hoist the names into a local
`CLI_DISABLED_TOOL_NAMES` tuple and produce the policy array via
`.map(name => ({ regex_match: name, action: "disable" as const }))`.

Picked from the `ask_user_question` disable that landed in #3336 —
that commit added a fifth identical-shape entry, so the table form is
now strictly tidier than five copy-pasted object literals. Adding the
next disabled CLI tool drops to one string instead of duplicating the
shape. Byte-equivalent toolPolicy contents (same five entries, same
order, same action), so no behavior change.

Generated with `mux`
mux-bot Bot added a commit that referenced this pull request May 20, 2026
Five toolPolicy entries differed only by tool name and all shared
`action: "disable" as const`. Hoist the names into a local
`CLI_DISABLED_TOOL_NAMES` tuple and produce the policy array via
`.map(name => ({ regex_match: name, action: "disable" as const }))`.

Picked from the `ask_user_question` disable that landed in #3336 —
that commit added a fifth identical-shape entry, so the table form is
now strictly tidier than five copy-pasted object literals. Adding the
next disabled CLI tool drops to one string instead of duplicating the
shape. Byte-equivalent toolPolicy contents (same five entries, same
order, same action), so no behavior change.

Generated with `mux`
mux-bot Bot added a commit that referenced this pull request May 21, 2026
Five toolPolicy entries differed only by tool name and all shared
`action: "disable" as const`. Hoist the names into a local
`CLI_DISABLED_TOOL_NAMES` tuple and produce the policy array via
`.map(name => ({ regex_match: name, action: "disable" as const }))`.

Picked from the `ask_user_question` disable that landed in #3336 —
that commit added a fifth identical-shape entry, so the table form is
now strictly tidier than five copy-pasted object literals. Adding the
next disabled CLI tool drops to one string instead of duplicating the
shape. Byte-equivalent toolPolicy contents (same five entries, same
order, same action), so no behavior change.

Generated with `mux`
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.

2 participants