惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(android): wire v2 onboarding actions · openclaw/openc...
obviyus · 2026-05-20 · via Recent Commits to openclaw:main

@@ -14,11 +14,14 @@ import ai.openclaw.app.ui.design.ClawStatusPill

1414

import ai.openclaw.app.ui.design.ClawTextField

1515

import ai.openclaw.app.ui.design.ClawTheme

1616

import android.Manifest

17+

import android.content.ClipData

18+

import android.content.ClipboardManager

1719

import android.content.Context

1820

import android.content.Intent

1921

import android.content.pm.PackageManager

2022

import android.os.Build

2123

import android.provider.Settings

24+

import android.widget.Toast

2225

import androidx.activity.compose.rememberLauncherForActivityResult

2326

import androidx.activity.result.contract.ActivityResultContracts

2427

import androidx.compose.foundation.BorderStroke

@@ -492,6 +495,7 @@ private fun V2GatewayRecoveryScreen(

492495

modifier: Modifier = Modifier,

493496

) {

494497

val pairingRequired = gatewayStatusLooksLikePairing(statusText)

498+

val context = LocalContext.current

495499

PairingAutoRetryEffect(enabled = pairingRequired && attemptedConnect && !ready, onRetry = onAutoRetry)

496500497501

ClawScaffold(modifier = modifier, contentPadding = PaddingValues(horizontal = 18.dp, vertical = 16.dp)) {

@@ -534,7 +538,7 @@ private fun V2GatewayRecoveryScreen(

534538

Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {

535539

ClawPrimaryButton(text = if (ready) "Continue" else "Retry connection", icon = if (ready) Icons.Default.CheckCircle else Icons.Default.Refresh, onClick = if (ready) onContinue else onRetry, modifier = Modifier.fillMaxWidth())

536540

V2OutlinedAction(title = "Edit connection", icon = Icons.Default.Edit, onClick = onEdit)

537-

V2OutlinedAction(title = "Copy diagnostic", icon = Icons.Default.ContentCopy, onClick = {})

541+

V2OutlinedAction(title = "Copy diagnostic", icon = Icons.Default.ContentCopy, onClick = { copyGatewayDiagnostic(context, statusText, serverName, remoteAddress, ready) })

538542

}

539543

}

540544

}

@@ -688,6 +692,26 @@ private fun V2TogglePill(

688692689693

@Composable

690694

private fun V2PermissionTopBar(onBack: () -> Unit) {

695+

var showHelp by remember { mutableStateOf(false) }

696+

if (showHelp) {

697+

AlertDialog(

698+

onDismissRequest = { showHelp = false },

699+

containerColor = ClawTheme.colors.surfaceRaised,

700+

title = { Text("Permissions", style = ClawTheme.type.section, color = ClawTheme.colors.text) },

701+

text = {

702+

Text(

703+

"Choose what this phone can share with OpenClaw. You can change these later in Settings.",

704+

style = ClawTheme.type.body,

705+

color = ClawTheme.colors.textMuted,

706+

)

707+

},

708+

confirmButton = {

709+

TextButton(onClick = { showHelp = false }) {

710+

Text("Done")

711+

}

712+

},

713+

)

714+

}

691715

Box(modifier = Modifier.fillMaxWidth().height(38.dp), contentAlignment = Alignment.Center) {

692716

Surface(

693717

onClick = onBack,

@@ -706,7 +730,7 @@ private fun V2PermissionTopBar(onBack: () -> Unit) {

706730

maxLines = 1,

707731

)

708732

Surface(

709-

onClick = {},

733+

onClick = { showHelp = true },

710734

modifier = Modifier.align(Alignment.CenterEnd).size(28.dp),

711735

shape = CircleShape,

712736

color = Color.Transparent,

@@ -858,6 +882,26 @@ private fun recoveryGatewayDetail(

858882

"Gateway unreachable"

859883

}

860884885+

private fun copyGatewayDiagnostic(

886+

context: Context,

887+

statusText: String,

888+

serverName: String?,

889+

remoteAddress: String?,

890+

ready: Boolean,

891+

) {

892+

val diagnostic =

893+

listOf(

894+

"OpenClaw Android gateway diagnostic",

895+

"Status: $statusText",

896+

"Gateway: ${serverName?.takeIf { it.isNotBlank() } ?: "Home Gateway"}",

897+

"Address: ${remoteAddress?.takeIf { it.isNotBlank() } ?: "Not available"}",

898+

"Ready: ${if (ready) "yes" else "no"}",

899+

).joinToString("\n")

900+

val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager

901+

clipboard.setPrimaryClip(ClipData.newPlainText("OpenClaw gateway diagnostic", diagnostic))

902+

Toast.makeText(context, "Diagnostic copied", Toast.LENGTH_SHORT).show()

903+

}

904+861905

private data class V2PermissionRowModel(

862906

val title: String,

863907

val subtitle: String,