Skip to content

Improve Default mode prompt (less confusion with Plan mode)#10545

Merged
charley-oai merged 1 commit intomainfrom
improve-default-mode-prompt
Feb 3, 2026
Merged

Improve Default mode prompt (less confusion with Plan mode)#10545
charley-oai merged 1 commit intomainfrom
improve-default-mode-prompt

Conversation

@charley-oai
Copy link
Collaborator

Summary

This PR updates request_user_input behavior and Default-mode guidance to match current collaboration-mode semantics and reduce model confusion.

Why

  • request_user_input should be explicitly documented as Plan-only.
  • Tool description and runtime availability checks should be driven by the same centralized mode policy.
  • Default mode prompt needed stronger execution guidance and explicit instruction that request_user_input is unavailable.
  • Error messages should report the actual mode name (not aliases that can read as misleading).

What changed

  • Centralized request_user_input mode policy in core handler logic:
    • Added a single allowed-modes config (Plan only).
    • Reused that policy for:
      • runtime rejection messaging
      • tool description text
  • Updated tool description to include availability constraint:
    • "This tool is only available in Plan mode."
  • Updated runtime rejection behavior:
    • Default -> "request_user_input is unavailable in Default mode"
    • Execute -> "request_user_input is unavailable in Execute mode"
    • PairProgramming -> "request_user_input is unavailable in Pair Programming mode"
  • Strengthened Default collaboration prompt:
    • Added explicit execution-first behavior
    • Added assumptions-first guidance
    • Added explicit request_user_input unavailability instruction
    • Added concise progress-reporting expectations
  • Simplified formatting implementation:
    • Inlined allowed-mode name collection into format_allowed_modes()
    • Kept format_allowed_modes() output for 3+ modes as CSV style (modes: a,b,c)

@charley-oai
Copy link
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Contributor

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".

@charley-oai charley-oai merged commit 998eb8f into main Feb 3, 2026
31 checks passed
@charley-oai charley-oai deleted the improve-default-mode-prompt branch February 3, 2026 20:08
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants