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

Method should_block_for_tool_error

crates/opencode-session/src/llm.rs:294–299  ·  view source on GitHub ↗
(kind: Option<StreamToolErrorKind>, error: &str)

Source from the content-addressed store, hash-verified

292 }
293
294 fn should_block_for_tool_error(kind: Option<StreamToolErrorKind>, error: &str) -> bool {
295 matches!(
296 classify_tool_error(kind, error),
297 ToolExecutionErrorKind::PermissionDenied | ToolExecutionErrorKind::QuestionRejected
298 )
299 }
300
301 /// Run the full stream processing loop with retry support.
302 /// Returns `ProcessResult` matching the TS "compact" | "stop" | "continue".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected