From aae4beb3dc8412aada407645a466e1503be1bb51 Mon Sep 17 00:00:00 2001
From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
Date: Wed, 22 Jul 2026 12:38:50 -0700
Subject: [PATCH] fix(mobile): explain unsupported quick commands on tap
instead of hiding
Per feedback on the disabled/hidden states: the button now always renders
and stays tappable. Tapping against a desktop that confirmed no support
shows "Desktop update required for quick commands" (mirroring the browser
streaming copy); tapping while the capability probe is still resolving says
to try again in a moment. The sheet still opens only once support is
confirmed, since pre-quick-commands hosts strip agentPrompt.
---
.../app/h/[hostId]/session/[worktreeId].tsx | 29 +++++++++++--------
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/mobile/app/h/[hostId]/session/[worktreeId].tsx b/mobile/app/h/[hostId]/session/[worktreeId].tsx
index bfbed0987d6..1158c7fb2de 100644
--- a/mobile/app/h/[hostId]/session/[worktreeId].tsx
+++ b/mobile/app/h/[hostId]/session/[worktreeId].tsx
@@ -4514,19 +4514,24 @@ export default function SessionScreen() {
>
- {/* Why: render during the capability probe (null) so the tab row doesn't shift as it loads; hide only when the host confirms no support. Disabled until confirmed — pre-quick-commands hosts strip agentPrompt, so an eager run would launch the agent without its prompt. */}
- {quickCommandsSupported !== false ? (
- {
+ if (quickCommandsSupported === true) {
+ setShowQuickCommands(true)
+ return
}
- onPress={() => setShowQuickCommands(true)}
- />
- ) : null}
+ showToast(
+ quickCommandsSupported === false
+ ? 'Desktop update required for quick commands'
+ : 'Checking desktop capabilities — try again in a moment',
+ 1600
+ )
+ }}
+ />
)}