Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
openclaw-android-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lisa
openclaw-android-node
Commits
6a629713
Commit
6a629713
authored
Mar 11, 2026
by
Lisa (AI Assistant)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Send pairing request on closing instead of just setting flag
parent
6fe34089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
NodeClient.kt
...n/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
+11
-4
No files found.
app/src/main/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
View file @
6a629713
...
@@ -285,13 +285,20 @@ class NodeClient() {
...
@@ -285,13 +285,20 @@ class NodeClient() {
override
fun
onClosing
(
webSocket
:
WebSocket
,
code
:
Int
,
reason
:
String
)
{
override
fun
onClosing
(
webSocket
:
WebSocket
,
code
:
Int
,
reason
:
String
)
{
Log
.
d
(
TAG
,
"WebSocket closing: code=$code reason=$reason"
)
Log
.
d
(
TAG
,
"WebSocket closing: code=$code reason=$reason"
)
// Check if it's a device signature error -
need to reconnect with pairing request
// Check if it's a device signature error -
send pairing request instead of closing
if
(
isPairingMode
&&
(
reason
.
contains
(
"device signature"
)
||
if
(
isPairingMode
&&
(
reason
.
contains
(
"device signature"
)
||
reason
.
contains
(
"invalid"
)
||
reason
.
contains
(
"invalid"
)
||
reason
.
contains
(
"device-required"
)))
{
reason
.
contains
(
"device-required"
)))
{
Log
.
d
(
TAG
,
"Connection rejected due to device auth, will send pairing request on reconnect"
)
Log
.
d
(
TAG
,
"Device auth rejected, sending pairing request instead of closing"
)
// Set flag to send pairing request after reconnect
// Send pairing request on this connection instead of closing
pendingPairingAfterConnect
=
true
// Note: We need the token and capabilities, but they're stored in local vars
// For now, use the values from currentNodeId and a placeholder
sendPairingRequest
(
currentNodeId
,
currentToken
,
NodeCapabilities
(
screenshot
=
true
,
touch
=
true
,
shell
=
true
,
notifications
=
true
,
appControl
=
true
,
sensors
=
true
))
// Don't close - wait for pairing response
return
}
}
webSocket
.
close
(
1000
,
null
)
webSocket
.
close
(
1000
,
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment