chore(clean up): remove unused imports, unnecessary object impls, concurrency/coroutine issues, trailing commas, etc.
This commit is contained in:
+9
-8
@@ -142,10 +142,7 @@ abstract class SessionOrchestrator(
|
||||
?.let { path ->
|
||||
runCatching { promptResolver.resolve(path) }
|
||||
.onFailure {
|
||||
log.error(
|
||||
"[SessionOrchestrator] stage=${stageId.value}: " +
|
||||
"failed to load prompt '$path': ${it.message}",
|
||||
)
|
||||
log.error(error(stageId, path, it))
|
||||
}
|
||||
.getOrNull()
|
||||
}
|
||||
@@ -165,10 +162,7 @@ abstract class SessionOrchestrator(
|
||||
?.let { path ->
|
||||
runCatching { promptResolver.resolve(path) }
|
||||
.onFailure {
|
||||
log.error(
|
||||
"[SessionOrchestrator] stage=${stageId.value}: " +
|
||||
"failed to load default system prompt '$path': ${it.message}",
|
||||
)
|
||||
log.error(error(stageId, path, it))
|
||||
}
|
||||
.getOrNull()
|
||||
}
|
||||
@@ -275,6 +269,13 @@ abstract class SessionOrchestrator(
|
||||
}
|
||||
}
|
||||
|
||||
private fun error(
|
||||
stageId: StageId,
|
||||
path: String,
|
||||
throwable: Throwable,
|
||||
): String = "[SessionOrchestrator] stage=${stageId.value}: " +
|
||||
"failed to load prompt '$path': ${throwable.message}"
|
||||
|
||||
private suspend fun dispatchToolCalls(
|
||||
sessionId: SessionId,
|
||||
stageId: StageId,
|
||||
|
||||
Reference in New Issue
Block a user