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
4 changes: 4 additions & 0 deletions assistant/src/daemon/ipc-contract-inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"GalleryInstallRequest",
"GalleryListRequest",
"GetSigningIdentityResponse",
"GuardianVerificationRequest",
"HistoryRequest",
"HomeBaseGetRequest",
"IdentityGetRequest",
Expand Down Expand Up @@ -155,6 +156,7 @@
"GenerationCancelled",
"GenerationHandoff",
"GetSigningIdentityRequest",
"GuardianVerificationResponse",
"HistoryResponse",
"HomeBaseGetResponse",
"IdentityGetResponse",
Expand Down Expand Up @@ -278,6 +280,7 @@
"gallery_install",
"gallery_list",
"get_signing_identity_response",
"guardian_verification",
"history_request",
"home_base_get",
"identity_get",
Expand Down Expand Up @@ -400,6 +403,7 @@
"generation_cancelled",
"generation_handoff",
"get_signing_identity",
"guardian_verification_response",
"history_response",
"home_base_get_response",
"identity_get_response",
Expand Down
2 changes: 1 addition & 1 deletion assistant/src/runtime/channel-guardian-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function createVerificationChallenge(
return {
challengeId,
secret,
instruction: `Send \`/guardian-verify ${secret}\` to your bot from your Telegram account within 10 minutes.`,
instruction: `Send \`/guardian_verify ${secret}\` to your bot from your Telegram account within 10 minutes.`,
Comment thread
noanflaherty marked this conversation as resolved.
};
}

Expand Down
4 changes: 2 additions & 2 deletions assistant/src/runtime/routes/channel-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ export async function handleChannelInbound(
// Handled before normal message processing so it never enters the agent loop.
if (
!result.duplicate &&
trimmedContent.startsWith('/guardian-verify ') &&
trimmedContent.startsWith('/guardian_verify ') &&
replyCallbackUrl &&
body.senderExternalUserId
) {
const token = trimmedContent.slice('/guardian-verify '.length).trim();
const token = trimmedContent.slice('/guardian_verify '.length).trim();
if (token.length > 0) {
const verifyResult = validateAndConsumeChallenge(
'self',
Expand Down
Loading