mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 00:23:25 -06:00
76cb418b6f
* fix(macos): let onboarding replace an auto-connected AI The AI page auto-tests the best detected candidate and connects without asking, then hides every alternative route. Add 'Choose a different AI' to the connected banner: a re-detect pass with auto-activation suppressed that ends at the picker (candidates, provider sign-in, API keys). Also disable the manual key Connect button while another test runs (submitManualKey silently dropped the tap), and isolate a test that read the machine's real resume store. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(macos): surface real daemon errors past the Node banner Gateway daemon failures summarized as 'Node.js v26.5.1' because the summary takes the last non-empty line and Node fatal errors end with a version banner. Drop trailing banner lines and prefer the last error-shaped line above them; all other output keeps its last line. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(macos): hand onboarding off to the dashboard custodian Native onboarding now ends once inference verifies: welcome, connection, install (when needed), AI setup. Finish opens the dashboard at /custodian?onboarding=1, where the custodian onboarding owns memory import, channels, app recommendations, and the hatch (browser-first per the onboarding redesign). The native memory-import and permissions pages leave the first-run flow; 'Set up later' keeps the native ready page. The native navigation bridge gains a validated optional search field so the handoff can request onboarding chrome; the URL fallback carries the query alongside the token fragment. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(macos): delete the unreachable native memory-import module The dashboard handoff removed the memory-import page from every flow, leaving the module reachable only from tests. CI's dead-code scan rightly flagged the first orphans; remove the whole path (model, page, mascot wiring, tests) instead of trimming symbol by symbol. The dashboard's own memory-import surface owns the feature. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Peter Steinberger <steipete@mac-studio-sf2.local> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
53 lines
1.8 KiB
Swift
53 lines
1.8 KiB
Swift
import AppKit
|
|
import OpenClawKit
|
|
|
|
@MainActor
|
|
enum AppNavigationActions {
|
|
static func openDashboard() {
|
|
DashboardManager.shared.presentDashboard()
|
|
}
|
|
|
|
/// Post-AI-setup handoff: land in the dashboard's custodian onboarding,
|
|
/// which owns everything after working inference (memory import, channels,
|
|
/// app recommendations, hatch).
|
|
static func openDashboardOnboarding() {
|
|
Task { @MainActor in
|
|
await DashboardManager.shared.show(
|
|
atPath: DashboardRouteMap.custodianPagePath,
|
|
search: DashboardRouteMap.custodianOnboardingSearch)
|
|
}
|
|
}
|
|
|
|
static func openChat(sessionKey: String? = nil, agentID: String? = nil, draft: String? = nil) {
|
|
NSApp.activate(ignoringOtherApps: true)
|
|
Task { @MainActor in
|
|
let resolvedSessionKey = if let sessionKey {
|
|
sessionKey
|
|
} else {
|
|
await WebChatManager.shared.preferredSessionKey()
|
|
}
|
|
WebChatManager.shared.show(sessionKey: resolvedSessionKey, agentID: agentID, draft: draft)
|
|
}
|
|
}
|
|
|
|
static func toggleCanvas() {
|
|
NSApp.activate(ignoringOtherApps: true)
|
|
Task { @MainActor in
|
|
if AppStateStore.shared.canvasPanelVisible {
|
|
CanvasManager.shared.hideAll()
|
|
} else {
|
|
let sessionKey = await GatewayConnection.shared.mainSessionKey()
|
|
_ = try? CanvasManager.shared.show(sessionKey: sessionKey, path: nil)
|
|
}
|
|
}
|
|
}
|
|
|
|
static func openSettings(tab: SettingsTab = .general) {
|
|
SettingsTabRouter.request(tab)
|
|
SettingsWindowOpener.shared.open()
|
|
DispatchQueue.main.async {
|
|
NotificationCenter.default.post(name: .openclawSelectSettingsTab, object: tab)
|
|
}
|
|
}
|
|
}
|