fix(android): disable auto-send for ASK_OPENCLAW · openclaw/openclaw@5b3e73e
vincentkoc
·
2026-04-24
·
via Recent Commits to openclaw:main
File tree
main/java/ai/openclaw/app
test/java/ai/openclaw/app
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,6 +8,7 @@ Docs: https://docs.openclaw.ai
|
8 | 8 | |
9 | 9 | ### Fixes |
10 | 10 | |
| 11 | +- Android/security: stop `ASK_OPENCLAW` intents from auto-sending injected prompts, so external app actions only prefill the draft instead of dispatching it immediately. (#70714) Thanks @vincentkoc. |
11 | 12 | - Control UI/chat: queue Stop-button aborts across Gateway reconnects so a disconnected active run is canceled on reconnect instead of only clearing local UI state. (#70673) Thanks @chinar-amrutkar. |
12 | 13 | - QQBot/security: require framework auth for `/bot-approve` so unauthorized QQ senders cannot change exec approval settings through the unauthenticated pre-dispatch slash-command path. (#70706) Thanks @vincentkoc. |
13 | 14 | - MCP/tools: stop the ACPX OpenClaw tools bridge from listing or invoking owner-only tools such as `cron`, closing a privilege-escalation path for non-owner MCP callers. (#70698) Thanks @vincentkoc. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ fun parseAssistantLaunchIntent(intent: Intent?): AssistantLaunchRequest? {
|
34 | 34 | AssistantLaunchRequest( |
35 | 35 | source = "app_action", |
36 | 36 | prompt = prompt, |
37 | | - autoSend = prompt != null, |
| 37 | + autoSend = false, |
38 | 38 | ) |
39 | 39 | } |
40 | 40 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,6 @@ import android.content.Intent
|
4 | 4 | import org.junit.Assert.assertEquals |
5 | 5 | import org.junit.Assert.assertFalse |
6 | 6 | import org.junit.Assert.assertNull |
7 | | -import org.junit.Assert.assertTrue |
8 | 7 | import org.junit.Test |
9 | 8 | import org.junit.runner.RunWith |
10 | 9 | import org.robolectric.RobolectricTestRunner |
@@ -33,7 +32,7 @@ class AssistantLaunchTest {
|
33 | 32 | requireNotNull(parsed) |
34 | 33 | assertEquals("app_action", parsed.source) |
35 | 34 | assertEquals("summarize my unread texts", parsed.prompt) |
36 | | -assertTrue(parsed.autoSend) |
| 35 | +assertFalse(parsed.autoSend) |
37 | 36 | } |
38 | 37 | |
39 | 38 | @Test |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。