chore(clean up): remove unused imports, unnecessary object impls, concurrency/coroutine issues, trailing commas, etc.

This commit is contained in:
2026-05-24 22:56:19 +04:00
parent 71aac8afc9
commit ac05ad8733
16 changed files with 85 additions and 83 deletions
@@ -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,