Back to feed

sledtools/pika branch #157

fix-nightly-android-ui

Fix Android nightly agent chooser

Target branch: master

Merge Commit: 762389296fbc385a412d5d382c56fe9707e81991

branch: merged tutorial: ready ci: success
Open CI Details

Continuous Integration

CI: success

Compact status on the review page, with full logs on the CI page.

Open CI Details

Latest run #195 success

2 passed

head 7edf5529a74145bdf984b20caf98ad6b1a0ad235 · queued 2026-03-28 12:40:05 · 2 lane(s)

queued 7s · ran 3s

check-pika-rust · success check-pika-followup · success

Summary

This branch fixes the Android nightly agent chooser dialog in the ChatListScreen by removing the now-unsupported Pi agent option and updating the dialog copy to reflect that only the OpenClaw agent is available. The change simplifies the chooser from a multi-agent selection dialog into a single-agent creation prompt.

Tutorial Steps

Update agent chooser dialog copy

Intent: Replace the generic multi-agent prompt text with copy specific to the OpenClaw agent, since Pi is being removed and OpenClaw is the only remaining option.

Affected files: android/app/src/main/java/com/pika/app/ui/screens/ChatListScreen.kt

Evidence
@@ -211,7 +211,7 @@ fun ChatListScreen(manager: AppManager, padding: PaddingValues) {
-                    text = "Choose which agent to create.",
+                    text = "Create an OpenClaw agent.",

The subtitle Text composable inside the agent chooser dialog previously read "Choose which agent to create.", implying multiple options. With the Pi agent removed, the wording is updated to "Create an OpenClaw agent." so the dialog accurately describes the single action available.

// ChatListScreen.kt:214
Text(
    text = "Create an OpenClaw agent.",
    style = MaterialTheme.typography.bodyMedium,
    color = MaterialTheme.colorScheme.onSurfaceVariant,
)

Remove the Pi agent button from the chooser

Intent: Eliminate the Pi agent creation path from the dialog, leaving only the OpenClaw button and the Cancel text button.

Affected files: android/app/src/main/java/com/pika/app/ui/screens/ChatListScreen.kt

Evidence
@@ -224,15 +224,6 @@ fun ChatListScreen(manager: AppManager, padding: PaddingValues) {
-                Button(
-                    onClick = {
-                        showAgentChooser = false
-                        manager.ensureAgent(AgentKind.PI)
-                    },
-                    modifier = Modifier.fillMaxWidth(),
-                ) {
-                    Text("Pi")
-                }

The entire Button composable that triggered manager.ensureAgent(AgentKind.PI) is deleted (previously at lines 227-234). This block dismissed the dialog and instantiated a Pi agent. After removal, the dialog's action area contains only:

  1. The OpenClaw button — creates an OpenClaw agent.
  2. The Cancel TextButton — dismisses the dialog without action.

No other code references AgentKind.PI in this file, so the removal is self-contained within the UI layer. If AgentKind.PI is also being retired elsewhere in the codebase, that would be handled in a separate change.

Diff