Skip to content

Digital assistant: hold the side button to talk to OpenCode (Experimental) - #31

Merged
Tarquinen merged 1 commit into
devfrom
feat/assistant
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
feat/assistant

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Holding the side button opens a small bar over the current app and starts a voice call to an OpenCode session. The session can act on the phone through 40 phone tools. It's all behind Settings › Experimental › Assistant, off by default.

  • The tools reach only the session the assistant is talking to, over OpenCode's client-MCP channel. They cover timers and alarms, calls, texts, contacts, calendar, maps and location, notifications (read, reply, tap a button, snooze), media and device settings, the camera, sharing and opening links.
  • read_screen reads the app behind the bar. Where the phone doesn't hand screen content to assistants (Samsung), it falls back to Android's screen sharing.
  • Calls, texts, replies, risky notification buttons, and reading notifications, texts or the call log ask first with a card. Settings › Assistant can let some run without asking.
  • When the phone is locked, tools that open an app ask Android to unlock, and say so if it stays locked.
  • Needs OpenCode ≥ 2.1.4. Per-session scoping needs feat(mcp): scope a client MCP connection to one session opencode#63213.

Verified:

  • Full scripts/check.sh passes after merging dev.
  • On an emulator, every phone tool ran through the debug lab trigger, including the cards and the locked phone.
  • Earlier: emulator end-to-end with a real model (48 of 49; the miss is fixed) and real-phone checks on a Galaxy S24 Ultra.

Not tested yet: answering and ending a real incoming call, and send_text when OpenCode isn't the default assistant (unit test only). There's no on-device speech mode yet.

Bar over the current app Pill when quiet Confirm card

@Tarquinen
Tarquinen marked this pull request as draft November 14, 2026 04:14
Holding the side button opens a small bar over the current app and starts
a voice call to an OpenCode session, which can act on the phone through 40
phone tools over OpenCode's client-MCP channel. Calls, texts, replies,
risky notification buttons and reading private data ask first with a
card. It's all behind Settings › Experimental › Assistant, off by default.

This is feat/assistant (80 commits up to d258ba5, 16 of them merges with
hand-resolved conflicts) replayed onto dev 809f3dd as one commit. Its
change set is line-for-line the same as d258ba5's against its old base;
the seven conflicts were only where dev's string resources and comment
trim met assistant additions, and they keep both.

Verified: scripts/check.sh passes.
@Tarquinen
Tarquinen marked this pull request as ready for review November 16, 2026 23:02
@Tarquinen
Tarquinen merged commit 536c032 into dev Nov 16, 2026
3 checks passed
Tarquinen added a commit that referenced this pull request Nov 16, 2026
Revert "hold the side button to talk to OpenCode" (#31)

This branch was previously deployed

1 inactive deployment
release — 1748724a Deployed Nov 16, 2026 by Tarquinen via check #372
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