fix(agent): don't eat /compact flag on failed turn; restore ctx fallback; requeue on SessionNotFound

This commit is contained in:
müde 2026-07-06 00:01:15 +02:00
commit b4f54a194b
4 changed files with 40 additions and 6 deletions

View file

@ -105,6 +105,7 @@ pub fn build_row(args: TurnRowArgs<'_>) -> TurnStatRow {
Err(TurnError::PromptTooLong) => ("prompt_too_long", None),
Err(TurnError::RateLimited) => ("rate_limited", None),
Err(TurnError::AuthFailed) => ("auth_failed", None),
Err(TurnError::SessionNotFound) => ("session_not_found", None),
Err(TurnError::Failed(e)) => ("failed", Some(format!("{e:#}"))),
};
let wake_from = if wake_from.starts_with("bash-task-") {