From 7272c8b4fa103afca9bc1a24fa604ea953063070 Mon Sep 17 00:00:00 2001 From: Saul5662 Date: Wed, 29 Jul 2026 04:34:19 +0100 Subject: [PATCH] fix(commands): say "User not found" instead of "Selector not found" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The identity resolver's fuzzy-miss error was labelled "Selector", which is internal jargon — the operator running `rs gain grant ` or `rs kick ` typed a username, not a "selector". Relabel that one message to "User" so the chat reply reads plainly. The sibling "Selector matched multiple records." and "Selector required." messages are intentionally left alone for now. Co-Authored-By: Claude Opus 5 (1M context) --- .../src/services/operatorCommandService/commands/resolvers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/services/operatorCommandService/commands/resolvers.js b/server/src/services/operatorCommandService/commands/resolvers.js index b8ee2b01..ab412d76 100644 --- a/server/src/services/operatorCommandService/commands/resolvers.js +++ b/server/src/services/operatorCommandService/commands/resolvers.js @@ -146,7 +146,7 @@ function resolveIdentitySelector(selector, records = [], options = {}) { ], }); const results = fuse.search(query); - if (!results.length) return { error: buildResultError('not_found', 'Selector', candidates) }; + if (!results.length) return { error: buildResultError('not_found', 'User', candidates) }; const first = results[0]; const second = results[1];