Skip to main content

Module exit_code_hints

Module exit_code_hints 

Source
Expand description

GAP-005 (v1.0.82): mapping of LLM subprocess exit codes to actionable diagnostics.

Enums§

LlmBackendError
Structured error for an LLM subprocess invocation that failed.

Constants§

DIAG_TAIL_BYTES
Maximum number of bytes captured from each subprocess stream (stdout and stderr) for the diagnostic tail. 1 KiB matches the limit used by tracing::log macros and keeps the JSON envelope under 4 KiB.

Statics§

EXIT_CODE_HINTS
Immutable table of known exit codes mapped to actionable suggestions.

Functions§

diagnose_exit_code
Returns an actionable diagnostic based on the exit code.
into_legacy_embedding
Converts an LlmBackendError to a legacy AppError::Embedding(String) so call sites that still return the old shape keep compiling during the migration window. Once all call sites are migrated to return LlmBackendError directly, this helper can be deleted.