Merge d141754400 into sapling-pr-archive-bolinfest

This commit is contained in:
Michael Bolin
2025-12-03 12:42:33 -08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1996,7 +1996,7 @@ pub(crate) async fn run_task(
// as long as compaction works well in getting us way below the token limit, we shouldn't worry about being in an infinite loop.
if token_limit_reached {
if should_use_remote_compact_task(&sess).await {
if should_use_remote_compact_task(&sess) {
run_inline_remote_auto_compact_task(sess.clone(), turn_context.clone())
.await;
} else {
+1 -1
View File
@@ -32,7 +32,7 @@ pub const SUMMARIZATION_PROMPT: &str = include_str!("../templates/compact/prompt
pub const SUMMARY_PREFIX: &str = include_str!("../templates/compact/summary_prefix.md");
const COMPACT_USER_MESSAGE_MAX_TOKENS: usize = 20_000;
pub(crate) async fn should_use_remote_compact_task(session: &Session) -> bool {
pub(crate) fn should_use_remote_compact_task(session: &Session) -> bool {
session
.services
.auth_manager
+1 -1
View File
@@ -25,7 +25,7 @@ impl SessionTask for CompactTask {
_cancellation_token: CancellationToken,
) -> Option<String> {
let session = session.clone_session();
if crate::compact::should_use_remote_compact_task(&session).await {
if crate::compact::should_use_remote_compact_task(&session) {
crate::compact_remote::run_remote_compact_task(session, ctx).await
} else {
crate::compact::run_compact_task(session, ctx, input).await