From 2daf299ba7d888493fdea582805dd3dd866648b9 Mon Sep 17 00:00:00 2001 From: Echo Ito Date: Wed, 11 Feb 2026 07:09:55 +0800 Subject: [PATCH] fix(pairing): show actual code in approval command instead of placeholder The pairing reply shown to new users included the approval command with a literal '' placeholder. Users had to manually copy the code from one line and substitute it into the command. Now shows the ready-to-copy command with the real pairing code: Before: openclaw pairing approve telegram After: openclaw pairing approve telegram abc123 Fixed in both the shared pairing message builder and the Telegram inline pairing reply. --- src/pairing/pairing-messages.ts | 2 +- src/telegram/bot-message-context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pairing/pairing-messages.ts b/src/pairing/pairing-messages.ts index 86e3b471a7..bff3384ac4 100644 --- a/src/pairing/pairing-messages.ts +++ b/src/pairing/pairing-messages.ts @@ -15,6 +15,6 @@ export function buildPairingReply(params: { `Pairing code: ${code}`, "", "Ask the bot owner to approve with:", - formatCliCommand(`openclaw pairing approve ${channel} `), + formatCliCommand(`openclaw pairing approve ${channel} ${code}`), ].join("\n"); } diff --git a/src/telegram/bot-message-context.ts b/src/telegram/bot-message-context.ts index 456ae0523d..8f52c6b513 100644 --- a/src/telegram/bot-message-context.ts +++ b/src/telegram/bot-message-context.ts @@ -289,7 +289,7 @@ export const buildTelegramMessageContext = async ({ `Pairing code: ${code}`, "", "Ask the bot owner to approve with:", - formatCliCommand("openclaw pairing approve telegram "), + formatCliCommand(`openclaw pairing approve telegram ${code}`), ].join("\n"), ), });