Let Agent runtime launch Genie sessions

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Iliyan Malchev
2026-03-19 13:53:06 -07:00
parent 902c40d71f
commit 186368fe88
4 changed files with 257 additions and 79 deletions

View File

@@ -182,14 +182,12 @@ class MainActivity : Activity() {
}
thread {
val result = runCatching {
val plan = AgentTaskPlanner.plan(
AgentTaskPlanner.startSession(
context = this,
userObjective = prompt,
targetPackageOverride = targetPackageOverride.ifBlank { null },
)
agentSessionController.startDirectSession(
plan = plan,
allowDetachedMode = true,
sessionController = agentSessionController,
)
}
result.onFailure { err ->