MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / max_steps_for_agent

Function max_steps_for_agent

crates/opencode-session/src/prompt.rs:3147–3149  ·  view source on GitHub ↗
(agent_steps: Option<u32>)

Source from the content-addressed store, hash-verified

3145}
3146
3147pub fn max_steps_for_agent(agent_steps: Option<u32>) -> u32 {
3148 agent_steps.unwrap_or(MAX_STEPS)
3149}
3150
3151pub fn generate_session_title(first_user_message: &str) -> String {
3152 let first_line = first_user_message.lines().next().unwrap_or("").trim();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected