mirror of
https://github.com/openai/codex.git
synced 2026-04-29 08:56:38 +00:00
Let Agent runtime launch Genie sessions
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user