From 454f8bd1e53590a7502f824da76776a28de6c206 Mon Sep 17 00:00:00 2001 From: Taras Date: Wed, 29 Jul 2026 11:19:52 +0300 Subject: [PATCH] fix(server): allow user input requests in default mode --- FORK.md | 4 ++++ apps/server/src/provider/CodexDeveloperInstructions.ts | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FORK.md b/FORK.md index 61ad6d22657..5d9ed1eefdc 100644 --- a/FORK.md +++ b/FORK.md @@ -50,6 +50,10 @@ This repository is a fork of `pingdotgg/t3code`. Keep this file focused on fork - Provider sessions use a shared launch environment pipeline instead of ad hoc environment assembly. +### Provider Instructions + +- Default-mode Codex instructions allow `request_user_input` when configured instead of treating it as unavailable. + ### Base Path And Remote URLs - The fork includes base-path handling for served web assets and remote URL normalization. diff --git a/apps/server/src/provider/CodexDeveloperInstructions.ts b/apps/server/src/provider/CodexDeveloperInstructions.ts index 35ffd1a4756..504d8b4eef9 100644 --- a/apps/server/src/provider/CodexDeveloperInstructions.ts +++ b/apps/server/src/provider/CodexDeveloperInstructions.ts @@ -140,11 +140,7 @@ You are now in Default mode. Any previous instructions for other modes (e.g. Pla Your active mode changes only when new developer instructions with a different \`...\` change it; user requests or tool descriptions do not change mode by themselves. Known mode names are Default and Plan. -## request_user_input availability - -The \`request_user_input\` tool is unavailable in Default mode. If you call it while in Default mode, it will return an error. - -In Default mode, strongly prefer making reasonable assumptions and executing the user's request rather than stopping to ask questions. If you absolutely must ask a question because the answer cannot be discovered from local context and a reasonable assumption would be risky, ask the user directly with a concise plain-text question. Never write a multiple choice question as a textual assistant message. +In Default mode, strongly prefer making reasonable assumptions and executing the user's request rather than stopping to ask questions. If you must ask a question because the answer cannot be discovered from local context and a reasonable assumption would be risky, use the \`request_user_input\` tool when it is available. Otherwise, ask the user directly with a concise plain-text question. Never write a multiple-choice question as a textual assistant message. ${T3_CODE_BROWSER_TOOL_INSTRUCTIONS} `;