The post has been translated automatically. Original language: Russian
On December 4, Qwen Code 0.29.4 was released, an open AI programming agent from the Qwen team. The release notes say that there are no incompatible changes. At the same time, several points change the agent's behavior: hooks have received a mode in which a verification failure denies the action. The managed agent's internal port is now capable of TLS and mutual authentication. And ACP sessions in editors run on the new event core by default.
Hooks: Validation failure no longer skips the action
Previously, a failed verification script or an unavailable HTTP policy service did not interfere with the agent: the tool call went on. Now command and HTTP hooks have an OnFailure parameter with two values: continue (by default, the previous behavior) and block. In block mode, the hook failure is equal to exit code 2, that is, the ban.
A failure is considered:
- the command failed to run, or it terminated with a code other than 0 and 2;
- The hook didn't meet the timeout;
- The output starts as a JSON object, but is not parsed.;
- The HTTP hook failed address verification, could not connect, received a response not in the 2xx range or broken JSON.
A normal text output and a hook that is canceled by interrupting a move are not considered failures. If the block hook fails in PreToolUse, calling the tool is prohibited, and permission from another hook does not cancel this. In PermissionRequest, the request is rejected, and in UserPromptSubmit, the prompt is rejected. This parameter does not apply to Stop, SubagentStop, asynchronous and prompt hooks.
Two edits work without OnFailure. The HTTP hook response type is now case-insensitive, so the uppercase version is also considered JSON. And an illegible body with the JSON type now gives a hook error, rather than a silent success.
TLS and mTLS for the managed agent's internal port
The managed agent mode has an internal port through which the components communicate. You can now enable TLS on it via the internal-server.ssl.bundle parameter. A separate client-auth parameter with the values none, want, and need enables verification of the client certificate. For want and need, there must be a trusted certificate store in the set: you cannot roll back to the system root CA. Configuration errors are caught at startup, for example, an unknown client-auth value or a plain HTTP address that looks at the TLS port. The set of certificates is re-read on the fly, and the agent rejects an incorrect replacement without touching the working configuration. The public port is not affected by these changes.
Default ACP on the event-bus core
ACP sessions in Zed, VS Code, web shell, and daemon now go through the kernel on the event bus by default. If something is broken, you can return to the previous path by setting experimental.eventBusAgentLoop to false or the environment variable QWEN_CODE_ENABLE_EVENT_BUS_AGENT_LOOP. The developers list intentional differences: unanswered permission requests are lifted immediately upon cancellation. And a move that is not completed 10 seconds after cancellation is closed as cancelled. Previously, the agent waited without restriction.
What does this mean in practice?
If the hooks protect against dangerous commands or verify access to secrets, enable OnFailure:block on them. Otherwise, the dropped policy service will silently skip everything. Just check the exit codes of your scripts first: any code except 0 and 2 will now also be banned. HTTP hooks that responded with the JSON type, but with an inaccurate body, should also be reviewed. An error in them will no longer pass for a resolution, even if OnFailure is not specified.
Keep two more points in mind when updating. The project's memory directories are now named by a readable prefix and a hash of the full path, so the agent may not see the old memory in its original place. And the results of the tools, trimmed to a limit of 100,000 characters, are now marked with the truncated flag. This should be taken into account if you analyze the agent's output with your scripts.
The draft text was prepared with the participation of AI, the facts were checked against the original source — official release notes Qwen Code 0.29.4 and descriptions of the pull request in the project repository on GitHub
4 декабря вышел Qwen Code 0.29.4, открытый ИИ-агент для программирования от команды Qwen. В release notes написано, что несовместимых изменений нет. При этом несколько пунктов меняют поведение агента: хуки получили режим, в котором сбой проверки запрещает действие. Внутренний порт управляемого агента теперь умеет TLS и взаимную аутентификацию. А сессии ACP в редакторах по умолчанию работают на новом ядре событий.
Хуки: сбой проверки больше не пропускает действие
Раньше упавший скрипт проверки или недоступный HTTP-сервис политики не мешали агенту: вызов инструмента проходил дальше. Теперь у командных и HTTP-хуков есть параметр onFailure с двумя значениями: continue (по умолчанию, прежнее поведение) и block. В режиме block сбой хука равен коду выхода 2, то есть запрету.
Сбоем считается:
- команду не удалось запустить, или она завершилась с кодом, отличным от 0 и 2;
- хук не уложился в таймаут;
- вывод начинается как JSON-объект, но не разбирается;
- HTTP-хук не прошёл проверку адреса, не смог подключиться, получил ответ не из диапазона 2xx или битый JSON.
Обычный текстовый вывод и хук, отменённый прерыванием хода, сбоем не считаются. Если в PreToolUse хук с block дал сбой, вызов инструмента запрещается, и разрешение от другого хука это не отменяет. В PermissionRequest запрос отклоняется, в UserPromptSubmit промпт отклоняется. На Stop, SubagentStop, асинхронные и промпт-хуки параметр не действует.
Две правки работают и без onFailure. Тип ответа HTTP-хука теперь сравнивается без учёта регистра, поэтому вариант с заглавными буквами тоже считается JSON. А неразбираемое тело с типом JSON теперь даёт ошибку хука, а не тихий успех.
TLS и mTLS для внутреннего порта управляемого агента
У режима managed agent есть внутренний порт, по которому общаются компоненты. Теперь на нём можно включить TLS через параметр internal-server.ssl.bundle. Отдельный параметр client-auth со значениями none, want и need включает проверку клиентского сертификата. Для want и need в наборе обязательно должно быть хранилище доверенных сертификатов: откатиться к системным корневым CA нельзя. Ошибки конфигурации ловятся при старте, например неизвестное значение client-auth или адрес по plain HTTP, который смотрит на TLS-порт. Набор сертификатов перечитывается на лету, а некорректную замену агент отклоняет, не трогая рабочую конфигурацию. Публичный порт эти изменения не затрагивают.
ACP по умолчанию на ядре event-bus
Сессии по протоколу ACP в Zed, VS Code, веб-оболочке и демоне теперь по умолчанию идут через ядро на шине событий. Если что-то сломалось, вернуть прежний путь можно настройкой experimental.eventBusAgentLoop со значением false или переменной окружения QWEN_CODE_ENABLE_EVENT_BUS_AGENT_LOOP. Разработчики перечисляют намеренные отличия: неотвеченные запросы разрешений при отмене снимаются сразу. А ход, который не завершился через 10 секунд после отмены, закрывается как отменённый. Раньше агент ждал без ограничения.
Что это значит на практике
Если хуки защищают от опасных команд или проверяют доступ к секретам, включите на них onFailure: block. Иначе упавший сервис политики будет молча пропускать всё подряд. Только сначала проверьте коды выхода своих скриптов: любой код, кроме 0 и 2, теперь тоже станет запретом. HTTP-хукам, которые отвечали с типом JSON, но с неаккуратным телом, тоже стоит провести ревизию. Ошибка в них больше не сойдёт за разрешение, даже если onFailure не указан.
При обновлении учтите ещё два момента. Каталоги памяти проекта теперь именуются по читаемому префиксу и хешу полного пути, так что агент может не увидеть старую память на прежнем месте. А результаты инструментов, обрезанные по лимиту в 100 000 символов, теперь помечаются флагом truncated — это стоит учесть, если вы разбираете вывод агента своими скриптами.
Черновик текста подготовлен с участием ИИ, факты сверены с первоисточником — официальные release notes Qwen Code 0.29.4 и описания pull request в репозитории проекта на GitHub
Comments 1
Newest Popular