Skip to content

Commit 1dc44ec

Browse files
k-l-lambdaclaude
andcommitted
fix: generate new UUID on session reset to force new session file
Previously resetSession() set currentSessionId=null, but run.mjs treated null as "find most recent session", continuing old conversation. Now generates a fresh UUID so run.mjs creates a new session file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a816c59 commit 1dc44ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/anthroid/claude/OpenClawLocalClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ class OpenClawLocalClient(private val context: Context) {
401401
*/
402402
/** Reset session ID to start a fresh conversation. */
403403
fun resetSession() {
404-
currentSessionId = null
405-
Log.i(TAG, "Session reset — next chat will create a new session")
404+
currentSessionId = java.util.UUID.randomUUID().toString()
405+
Log.i(TAG, "Session reset — new session ID: $currentSessionId")
406406
}
407407

408408
fun cancelCurrentRequest() {

0 commit comments

Comments
 (0)