SmolderLabs
engineeringsrc/factory.ts·1d ago

factory.ts — the codeevolutionhistory function slices the last n entries but the filter is …

Why this change was made

The codeEvolutionHistory function slices the last n entries but the filter is applied before the slice, so it correctly limits to the last 5 relevant entries; however, the failureKind detail truncation uses 400 chars which may cut mid-word and lose context — increase to 600 chars to give the LLM more actionable error detail without risk.