Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
476 changes: 418 additions & 58 deletions apps/.i18n/native-source.json

Large diffs are not rendered by default.

35 changes: 33 additions & 2 deletions apps/android/app/src/main/java/ai/openclaw/app/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,41 @@ class MainViewModel(
ensureRuntime().refreshChat()
}

fun refreshChatSessions(limit: Int? = null) {
ensureRuntime().refreshChatSessions(limit = limit)
fun refreshChatSessions(
limit: Int? = null,
archived: Boolean = false,
) {
ensureRuntime().refreshChatSessions(limit = limit, archived = archived)
}

suspend fun patchChatSession(
key: String,
label: String? = null,
clearLabel: Boolean = false,
category: String? = null,
clearCategory: Boolean = false,
pinned: Boolean? = null,
archived: Boolean? = null,
unread: Boolean? = null,
) {
ensureRuntime().patchChatSession(
key = key,
label = label,
clearLabel = clearLabel,
category = category,
clearCategory = clearCategory,
pinned = pinned,
archived = archived,
unread = unread,
)
}

suspend fun deleteChatSession(key: String) {
ensureRuntime().deleteChatSession(key)
}

suspend fun forkChatSession(parentKey: String): String? = ensureRuntime().forkChatSession(parentKey)

fun setChatThinkingLevel(level: String) {
ensureRuntime().setChatThinkingLevel(level)
}
Expand Down
36 changes: 34 additions & 2 deletions apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ class NodeRuntime private constructor(
private val voiceCaptureOwnershipEpoch = AtomicLong()
private val talkPttCommandEpoch = AtomicLong()
private val talkPttOwnership = AtomicReference<TalkPttOwnership?>()

// Keep ownership epochs and their service/capture state transitions atomic.
// Otherwise stale PTT cleanup can pass its epoch check before a UI mode change.
private val voiceCaptureOwnershipLock = Any()
Expand Down Expand Up @@ -2650,10 +2651,41 @@ class NodeRuntime private constructor(
chat.refresh()
}

fun refreshChatSessions(limit: Int? = null) {
chat.refreshSessions(limit = limit)
fun refreshChatSessions(
limit: Int? = null,
archived: Boolean = false,
) {
chat.refreshSessions(limit = limit, archived = archived)
}

suspend fun patchChatSession(
key: String,
label: String? = null,
clearLabel: Boolean = false,
category: String? = null,
clearCategory: Boolean = false,
pinned: Boolean? = null,
archived: Boolean? = null,
unread: Boolean? = null,
) {
chat.patchSession(
key = key,
label = label,
clearLabel = clearLabel,
category = category,
clearCategory = clearCategory,
pinned = pinned,
archived = archived,
unread = unread,
)
}

suspend fun deleteChatSession(key: String) {
chat.deleteSession(key)
}

suspend fun forkChatSession(parentKey: String): String? = chat.forkSession(parentKey)

fun setChatThinkingLevel(level: String) {
chat.setThinkingLevel(level)
}
Expand Down
Loading
Loading