Expand description
GAP-005 (v1.0.82): mapping of LLM subprocess exit codes to actionable diagnostics.
Enums§
- LlmBackend
Error - 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::logmacros 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
LlmBackendErrorto a legacyAppError::Embedding(String)so call sites that still return the old shape keep compiling during the migration window. Once all call sites are migrated to returnLlmBackendErrordirectly, this helper can be deleted.