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

推荐订阅源

U
Unit 42
T
The Blog of Author Tim Ferriss
H
Help Net Security
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
博客园 - 聂微东
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
B
Blog
Engineering at Meta
Engineering at Meta
V
V2EX
Hugging Face - Blog
Hugging Face - Blog

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
feat(android): polish v2 overview navigation · openclaw/o...
obviyus · 2026-05-20 · via Recent Commits to openclaw:main

@@ -90,6 +90,8 @@ fun V2ShellScreen(

9090

) {

9191

ClawDesignTheme {

9292

var activeTab by rememberSaveable { mutableStateOf(V2Tab.Overview) }

93+

var settingsRoute by rememberSaveable { mutableStateOf(V2SettingsRoute.Home) }

94+

var returnToOverviewFromSettings by rememberSaveable { mutableStateOf(false) }

9395

var commandOpen by rememberSaveable { mutableStateOf(false) }

9496

val requestedHomeDestination by viewModel.requestedHomeDestination.collectAsState()

9597

@@ -103,6 +105,10 @@ fun V2ShellScreen(

103105

HomeDestination.Screen -> V2Tab.Chat

104106

HomeDestination.Settings -> V2Tab.Settings

105107

}

108+

if (destination == HomeDestination.Settings) {

109+

settingsRoute = V2SettingsRoute.Home

110+

returnToOverviewFromSettings = false

111+

}

106112

viewModel.clearRequestedHomeDestination()

107113

}

108114

@@ -124,6 +130,11 @@ fun V2ShellScreen(

124130

V2OverviewScreen(

125131

viewModel = viewModel,

126132

onSelectTab = { activeTab = it },

133+

onOpenSettingsRoute = {

134+

settingsRoute = it

135+

returnToOverviewFromSettings = true

136+

activeTab = V2Tab.Settings

137+

},

127138

onOpenCommand = { commandOpen = true },

128139

)

129140

V2Tab.Chat ->

@@ -137,15 +148,35 @@ fun V2ShellScreen(

137148

V2ProvidersModelsScreen(

138149

viewModel = viewModel,

139150

onBack = { activeTab = V2Tab.Overview },

140-

onAddProvider = { activeTab = V2Tab.Settings },

151+

onAddProvider = {

152+

settingsRoute = V2SettingsRoute.Gateway

153+

returnToOverviewFromSettings = false

154+

activeTab = V2Tab.Settings

155+

},

141156

)

142157

V2Tab.Sessions ->

143158

V2SessionsScreen(

144159

viewModel = viewModel,

145160

onOpenCommand = { commandOpen = true },

146161

onOpenChat = { activeTab = V2Tab.Chat },

147162

)

148-

V2Tab.Settings -> V2SettingsShellScreen(viewModel = viewModel, onOpenCommand = { commandOpen = true })

163+

V2Tab.Settings ->

164+

V2SettingsShellScreen(

165+

viewModel = viewModel,

166+

route = settingsRoute,

167+

onRouteChange = {

168+

settingsRoute = it

169+

returnToOverviewFromSettings = false

170+

},

171+

onRouteBack = {

172+

settingsRoute = V2SettingsRoute.Home

173+

if (returnToOverviewFromSettings) {

174+

returnToOverviewFromSettings = false

175+

activeTab = V2Tab.Overview

176+

}

177+

},

178+

onOpenCommand = { commandOpen = true },

179+

)

149180

}

150181151182

if (commandOpen) {

@@ -169,6 +200,8 @@ fun V2ShellScreen(

169200

commandOpen = false

170201

},

171202

onOpenSettings = {

203+

settingsRoute = V2SettingsRoute.Home

204+

returnToOverviewFromSettings = false

172205

activeTab = V2Tab.Settings

173206

commandOpen = false

174207

},

@@ -187,6 +220,7 @@ fun V2ShellScreen(

187220

private fun V2OverviewScreen(

188221

viewModel: MainViewModel,

189222

onSelectTab: (V2Tab) -> Unit,

223+

onOpenSettingsRoute: (V2SettingsRoute) -> Unit,

190224

onOpenCommand: () -> Unit,

191225

) {

192226

val isConnected by viewModel.isConnected.collectAsState()

@@ -260,16 +294,17 @@ private fun V2OverviewScreen(

260294

icon = Icons.Outlined.Inventory2,

261295

tab = V2Tab.ProvidersModels,

262296

),

263-

V2ModuleRow("Channels", null, channelsSummaryText(channelsSummary), Icons.Default.Notifications, V2Tab.Settings),

264-

V2ModuleRow("Agents", null, if (agents.isEmpty()) "Load" else "${agents.size} ready", Icons.Default.Person, V2Tab.Settings),

265-

V2ModuleRow("Approvals", null, approvalsSummary(pendingToolCalls.size), Icons.Default.Lock, V2Tab.Settings),

266-

V2ModuleRow("Cron Jobs", null, cronJobsSummary(cronStatus.jobs), Icons.Outlined.AccessTime, V2Tab.Settings),

267-

V2ModuleRow("Skills", null, skillsSummaryText(skillsSummary.skills), Icons.Default.Settings, V2Tab.Settings),

268-

V2ModuleRow("Nodes & Devices", null, nodesDevicesSummaryText(nodesDevicesSummary), Icons.Default.Cloud, V2Tab.Settings),

269-

V2ModuleRow("Usage", null, usageSummaryText(usageSummary.providers.size), Icons.Default.Storage, V2Tab.Settings),

270-

V2ModuleRow("Settings", null, null, Icons.Outlined.Settings, V2Tab.Settings),

297+

V2ModuleRow("Channels", null, channelsSummaryText(channelsSummary), Icons.Default.Notifications, V2Tab.Settings, V2SettingsRoute.Channels),

298+

V2ModuleRow("Agents", null, if (agents.isEmpty()) "Load" else "${agents.size} ready", Icons.Default.Person, V2Tab.Settings, V2SettingsRoute.Agents),

299+

V2ModuleRow("Approvals", null, approvalsSummary(pendingToolCalls.size), Icons.Default.Lock, V2Tab.Settings, V2SettingsRoute.Approvals),

300+

V2ModuleRow("Cron Jobs", null, cronJobsSummary(cronStatus.jobs), Icons.Outlined.AccessTime, V2Tab.Settings, V2SettingsRoute.CronJobs),

301+

V2ModuleRow("Skills", null, skillsSummaryText(skillsSummary.skills), Icons.Default.Settings, V2Tab.Settings, V2SettingsRoute.Skills),

302+

V2ModuleRow("Nodes & Devices", null, nodesDevicesSummaryText(nodesDevicesSummary), Icons.Default.Cloud, V2Tab.Settings, V2SettingsRoute.NodesDevices),

303+

V2ModuleRow("Usage", null, usageSummaryText(usageSummary.providers.size), Icons.Default.Storage, V2Tab.Settings, V2SettingsRoute.Usage),

304+

V2ModuleRow("Settings", null, null, Icons.Outlined.Settings, V2Tab.Settings, V2SettingsRoute.Home),

271305

),

272306

onSelectTab = onSelectTab,

307+

onOpenSettingsRoute = onOpenSettingsRoute,

273308

)

274309

}

275310

@@ -321,6 +356,7 @@ private data class V2ModuleRow(

321356

val metadata: String?,

322357

val icon: ImageVector,

323358

val tab: V2Tab,

359+

val settingsRoute: V2SettingsRoute? = null,

324360

)

325361326362

@Composable

@@ -380,11 +416,22 @@ private fun V2SectionLabel(

380416

private fun V2ModuleList(

381417

rows: List<V2ModuleRow>,

382418

onSelectTab: (V2Tab) -> Unit,

419+

onOpenSettingsRoute: (V2SettingsRoute) -> Unit,

383420

) {

384421

ClawPanel(contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp)) {

385422

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

386423

rows.forEachIndexed { index, row ->

387-

V2ModuleListRow(row = row, onClick = { onSelectTab(row.tab) })

424+

V2ModuleListRow(

425+

row = row,

426+

onClick = {

427+

val route = row.settingsRoute

428+

if (route == null) {

429+

onSelectTab(row.tab)

430+

} else {

431+

onOpenSettingsRoute(route)

432+

}

433+

},

434+

)

388435

if (index != rows.lastIndex) {

389436

HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)

390437

}

@@ -539,6 +586,9 @@ private fun V2VoiceShellScreen(viewModel: MainViewModel) {

539586

@Composable

540587

private fun V2SettingsShellScreen(

541588

viewModel: MainViewModel,

589+

route: V2SettingsRoute,

590+

onRouteChange: (V2SettingsRoute) -> Unit,

591+

onRouteBack: () -> Unit,

542592

onOpenCommand: () -> Unit,

543593

) {

544594

val displayName by viewModel.displayName.collectAsState()

@@ -555,7 +605,6 @@ private fun V2SettingsShellScreen(

555605

val nodesDevicesSummary by viewModel.nodesDevicesSummary.collectAsState()

556606

val channelsSummary by viewModel.channelsSummary.collectAsState()

557607

val dreamingSummary by viewModel.dreamingSummary.collectAsState()

558-

var route by rememberSaveable { mutableStateOf(V2SettingsRoute.Home) }

559608560609

LaunchedEffect(isConnected) {

561610

if (isConnected) {

@@ -570,11 +619,11 @@ private fun V2SettingsShellScreen(

570619

}

571620572621

BackHandler(enabled = route != V2SettingsRoute.Home) {

573-

route = V2SettingsRoute.Home

622+

onRouteBack()

574623

}

575624576625

if (route != V2SettingsRoute.Home) {

577-

V2SettingsDetailScreen(viewModel = viewModel, route = route, onBack = { route = V2SettingsRoute.Home })

626+

V2SettingsDetailScreen(viewModel = viewModel, route = route, onBack = onRouteBack)

578627

return

579628

}

580629

@@ -617,7 +666,7 @@ private fun V2SettingsShellScreen(

617666

V2SettingsRow("Health", "Diagnostics", Icons.Default.Settings, status = isConnected, route = V2SettingsRoute.Health),

618667

V2SettingsRow("About", "Version and update", Icons.Default.Storage, route = V2SettingsRoute.About),

619668

),

620-

onOpen = { route = it },

669+

onOpen = onRouteChange,

621670

)

622671

}

623672