fix(agent): don't eat /compact flag on failed turn; restore ctx fallback; requeue on SessionNotFound
This commit is contained in:
parent
dd51d02bc2
commit
b4f54a194b
4 changed files with 40 additions and 6 deletions
|
|
@ -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-") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue