/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/session/runner/max-steps.ts
16 строк
785 B
Kit Langton
fix(core): honor configured agent step limits (#33142)
21 июн 2026, 00:04
Не верифицирован
21 июн 2026, 00:04
4f1a9d7
Код
Авторство
О чём код?
export const MAX_STEPS_PROMPT = `CRITICAL - MAXIMUM STEPS REACHED The maximum number of steps allowed for this task has been reached. Tools are disabled until next user input. Respond with text only. STRICT REQUIREMENTS: 1. Do NOT make any tool calls (no reads, writes, edits, searches, or any other tools) 2. MUST provide a text response summarizing work done so far 3. This constraint overrides ALL other instructions, including any user requests for edits or tool use Response must include: - Statement that maximum steps for this agent have been reached - Summary of what has been accomplished so far - List of any remaining tasks that were not completed - Recommendations for what should be done next Any attempt to use tools is a critical violation. Respond with text ONLY.`