discourse/plugins/discourse-ai/spec/lib/modules/ai_bot
Rafael dos Santos Silva 74693d5f75
FIX: Agentic agents crash when max_turn_tokens is empty (#40952)
Previously, an agent in agentic execution mode with an empty
`max_turn_tokens` crashed with "comparison of Integer with nil failed"
because the token-budget loop compared the running token count against a
nil budget.

This change defaults the turn budget to half of the model's context
window when `max_turn_tokens` is empty, so agentic agents keep working
without an explicit budget.
2026-06-16 16:59:58 -03:00
..
jobs/regular DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
entry_point_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
playground_spec.rb FEATURE: Provider-native built-in tools for agents (web search) (#40809) 2026-06-16 14:37:51 -03:00
site_setting_extension_spec.rb DEV: migrate enabled_chat_bot column to a setting (#36707) 2025-12-17 09:26:19 -08:00
stream_reply_custom_tools_session_spec.rb FIX: Agentic agents crash when max_turn_tokens is empty (#40952) 2026-06-16 16:59:58 -03:00