feat: update maximum steps and token limits to usize::MAX; add split_spans_into_lines function for improved chat display

This commit is contained in:
asepharyana
2026-07-12 04:01:10 +07:00
parent a974118b5a
commit 0cc60c12ce
6 changed files with 38 additions and 12 deletions
+2 -3
View File
@@ -9,9 +9,8 @@ use crate::app::state::runtime::TurnEvent;
use crate::app::state::types::{Origin, Overlay, Toast, ToastKind};
use crate::dto::chat::message::{ChatMessage, Role};
const MAX_TOOL_ONLY_TURNS: usize = 1000;
const MAX_AGENT_STEPS: usize = 1000;
const MAX_TOOL_ONLY_TURNS: usize = usize::MAX;
const MAX_AGENT_STEPS: usize = usize::MAX;
#[derive(Debug, Clone)]
pub enum Action {
+1 -1
View File
@@ -1,6 +1,6 @@
use crate::dto::chat::message::ChatMessage;
const MAX_WIRE_TOKENS: usize = 8000;
const MAX_WIRE_TOKENS: usize = 2_000_000;
const MIN_MESSAGES_BEFORE_SHAPE: usize = 20;
const ENGAGE_HYSTERESIS: usize = 5;