text:'Compaction is unavailable because this process has an active compaction, or the agent is not idle.',
}
case'changed':
return{
kind:'error',
text:'The history selected for compaction changed before it could be replaced. The conversation is unchanged; the attempt is recorded in the session log.',
}
case'summary':
return{
kind:'error',
text:'Compaction could not produce a useful summary. The conversation is unchanged; the attempt is recorded in the session log.',
}
case'commit':
return{
kind:'error',
text:'Compaction did not finish cleanly; some session history may have changed. Inspect the current session state before retrying.',
}
case'persistence':
return{
kind:'error',
text:'Compaction finished, but the session could not be saved.',
}
/* v8 ignore next 2 -- ManualCompactionErrorCode is closed and every member is handled above */
default:returnassertNever(error.code)
}
}
/** Execute one argument-free manual compaction request. */