Skip to content

Android: the AI screen is a conversation about one widget - #90

Merged
everettjf merged 1 commit into
mainfrom
android-ai-conversation
Nov 19, 2026
Merged

everettjf merged 1 commit into
mainfrom
android-ai-conversation

Conversation

@everettjf

Copy link
Copy Markdown
Owner

Outcome

On Android, Generate with AI and Improve with AI open a multi-turn conversation like the Mac app's: describe a widget, see it, ask for a change, see it again.

  • Preview on top with size and version stepper; turns below; request field above the keyboard.
  • Up to three automatic repairs per turn; a turn that never runs leaves the widget unchanged.
  • Go back to an older version and continue from it; later turns are marked left behind and no longer sent.
  • Drafts are kept and offered under Continue a draft.
  • An installed widget changes only on Apply to widget, which asks first and names any host the version adds.

Security and compatibility

  • Conversation files hold requests, notes and sources; never a key, provider or model. They are in the no-backup directory. A test checks the saved keys.
  • The model can still only declare the network permission. A conversation never removes a host an installed widget has; a new host is added only after the user agrees.
  • Malformed or foreign conversation files are ignored, not partly read.
  • No change to package, manifest or runtime contracts. The old single-request screen is removed.

Checks run

  • 502 JVM tests passed (20 new), play and foss debug builds.
  • Pixel 6, Android 17, as a debug copy beside the Play Store app (-PdevSuffix=.dev): app device suite 66 passed, including the two new AiConversationUiTest tests, which drive the real screen and runtime with a scripted model.

Not run

  • The conversation with a live model on a device (that copy has no key).
  • The core device suite, the emulators, other vendors' phones.
  • release-readiness.sh (it does not cover Android).

Not in this change

Streaming of the reply, three sizes side by side, and a place in the editor; noted in docs/android/TODO.md.

The conversation on a Pixel 6

🤖 Generated with Claude Code

Generate with AI and Improve with AI now open a multi-turn conversation,
as the Mac app's AI window does: the preview and its versions on top, the
turns below, the request field above the keyboard. A change that does not
run is repaired up to three times; one that never runs leaves the widget
as it was. Versions can be stepped through, a conversation continues from
the version on screen, and unsaved conversations are kept as drafts.

- core: AiConversation, its file store and the turn handling, ported from
  the Swift sources, with the turn prompt and reply form. 20 JVM tests.
- app: AiConversationScreen replaces the single request screen. An
  installed widget is changed only by Apply to widget, which asks before
  adding a host. Conversations live in the no-backup directory and are
  bound to a widget's installation id.
- The New widget button has a name for screen readers.
- -PdevSuffix=.dev installs a debug copy beside the Play Store app, and
  device-test.sh takes SUFFIX for it.
- AiConversationUiTest drives the real screen with a scripted model.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@everettjf
everettjf merged commit 0e6f793 into main Nov 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant