fix: drop decorative emoji from UI text, chat steps and channel replies

Bees, sparkle glyphs, fire, check and warning marks decorated buttons,
toasts, activity steps and channel replies (anti-slop audit-002, item 18).
Marks that carry state (key set, importance, the hive glyph) stay.
This commit is contained in:
shumeiko.it
2026-10-27 14:27:19 +01:00
parent 22846e4131
commit 827bf8488b
12 changed files with 28 additions and 29 deletions

View File

@@ -29,7 +29,7 @@ const MESSAGE_DEDUP_MAX = 2_000;
export const APPROVAL_NEEDED_REPLY =
'This request needs a tool approval — open the Waggle app to review and approve it.';
export const PAIR_OK_REPLY = 'Paired ✓ — this device can now talk to Waggle. Try /status or just say hi.';
export const PAIR_OK_REPLY = 'Paired. This device can now talk to Waggle. Try /status or just say hi.';
export const PAIR_FAIL_REPLY = 'Invalid or expired pairing code. Generate a fresh one in Waggle → Settings → Channels.';
/** Vault keys per platform (telegram reuses the FR-2 digest key on purpose). */
@@ -243,7 +243,7 @@ export class ChannelManager {
if (/^\/status\b/i.test(text)) {
const status = adapter?.getStatus();
const ws = this.resolveWorkspace(msg);
await reply(`Waggle connected ✓\nWorkspace: ${this.workspaceLabel(ws)}\nTransport: ${status?.connected ? 'healthy' : 'degraded'}`);
await reply(`Waggle connected\nWorkspace: ${this.workspaceLabel(ws)}\nTransport: ${status?.connected ? 'healthy' : 'degraded'}`);
return;
}

View File

@@ -128,14 +128,14 @@ export function decideReviewTurnTool(server: FastifyInstance, input: EnqueueInpu
const enq = enqueueHeldAction(server, input);
return {
step: 'refused' in enq
? `⚠ ${tool} proposal refused (${enq.refused})`
: `📋 ${tool} held for your approval`,
? `${tool} proposal refused (${enq.refused})`
: `${tool} held for your approval`,
reason,
enqueued: enq,
};
}
return {
step: `✖ ${tool} not permitted for review turns`,
step: `${tool} not permitted for review turns`,
reason,
enqueued: null,
};

View File

@@ -1757,8 +1757,8 @@ export async function buildLocalServer(config: Partial<LocalConfig> = {}) {
const name = schedule.name || 'Scheduled task';
const expr = schedule.cron_expr ? ` (${schedule.cron_expr})` : '';
const text = result.success
? `✓ Waggle: ${name}${expr} ran successfully.`
: `✗ Waggle: ${name}${expr} failed — ${result.error ?? 'unknown error'}`;
? `Waggle: ${name}${expr} ran successfully.`
: `Waggle: ${name}${expr} failed: ${result.error ?? 'unknown error'}`;
pushTelegramMessage(server, text)
.then(r => { if (!r.ok) log.warn(`[cron→telegram] skipped: ${r.reason}`); })
.catch(err => log.warn(`[cron→telegram] push failed: ${err}`));

View File

@@ -1377,7 +1377,7 @@ export function shouldSuggestSchedule(
return RECURRING_PATTERNS.test(responseText);
}
export const SCHEDULE_SUGGESTION = '\n\n💡 *Want this to run automatically? Use /schedule or ask me to set up a recurring task.*';
export const SCHEDULE_SUGGESTION = '\n\n*Want this to run automatically? Use /schedule or ask me to set up a recurring task.*';
/** Shared precedence rule for optional first-turn prompt additions. */
export const USER_RESPONSE_FORMAT_PRECEDENCE = 'A user-specified response syntax or shape is authoritative for presentation. Follow that syntax or shape exactly; do not add greetings, questions, prose, wrappers, labels, or other content outside it. Requested facts, verdicts, fixed values, or claims are not presentation constraints and never override safety, evidence, attribution, read-only, anti-fabrication, tool/action, or confidentiality rules.';

View File

@@ -1829,7 +1829,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
if (wsBudgetConfig?.budget != null && wsBudgetConfig.budget > 0) {
const wsUsage = costTracker.getWorkspaceCost(effectiveWorkspace);
if (wsUsage >= wsBudgetConfig.budget) {
sendEvent('step', { content: `\u26a0\ufe0f Budget limit reached ($${wsUsage.toFixed(2)} / $${wsBudgetConfig.budget.toFixed(2)}). Responses may be limited.` });
sendEvent('step', { content: `Budget limit reached ($${wsUsage.toFixed(2)} / $${wsBudgetConfig.budget.toFixed(2)}). Responses may be limited.` });
}
}
}
@@ -2019,7 +2019,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
// Surface an audit-visible step when elevated autonomy pre-approved
// so users can see WHY the tool ran without a prompt.
if (autonomyLevel !== 'normal' && requiresBaseConfirmation) {
sendEvent('step', { content: `\u26a1 ${ctx.toolName} auto-approved (${autonomyLevel})` });
sendEvent('step', { content: `${ctx.toolName} auto-approved (${autonomyLevel})` });
// Tag the audit input with the autonomy level so forensics can
// see WHY the tool was auto-approved.
emitAuditEvent(server, {
@@ -2071,7 +2071,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
// H3: Auto-approve all tool requests when WAGGLE_AUTO_APPROVE=1 (testing only)
if (autoApprove) {
sendEvent('step', { content: `\u2714 ${ctx.toolName} auto-approved (test mode)` });
sendEvent('step', { content: `${ctx.toolName} auto-approved (test mode)` });
return { authorize: true };
}
@@ -2087,7 +2087,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
grantRiskLevel,
)
) {
sendEvent('step', { content: `\u2714 ${ctx.toolName} allowed by saved grant` });
sendEvent('step', { content: `${ctx.toolName} allowed by saved grant` });
return { authorize: true };
}
@@ -2208,7 +2208,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
input: retainedTurnJson(input),
sessionId,
});
sendEvent('step', { content: `\u23f8 ${toolName} moved to Approvals inbox`, expiresAt });
sendEvent('step', { content: `${toolName} moved to Approvals inbox`, expiresAt });
},
});
@@ -2222,11 +2222,11 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
if (timedOut) {
log.warn(`[security] Approval timed out for ${toolName} (requestId: ${requestId}) — auto-denied for safety`);
}
sendEvent('step', { content: `\u2716 ${toolName} denied by user` });
sendEvent('step', { content: `${toolName} denied by user` });
emitAuditEvent(server, { workspaceId: executionScopeId, eventType: 'approval_denied', toolName, sessionId, approved: false });
return { cancel: true, reason: `User denied ${toolName}` };
}
sendEvent('step', { content: `\u2714 ${toolName} approved` });
sendEvent('step', { content: `${toolName} approved` });
emitAuditEvent(server, { workspaceId: executionScopeId, eventType: 'approval_granted', toolName, sessionId, approved: true });
return { authorize: true };
});
@@ -3119,7 +3119,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
// Notify client of model switch
if (modelSwitchReason) {
sendEvent('model_switch', { model: resolvedModel, reason: modelSwitchReason, primary: primaryModel });
sendEvent('step', { content: `⬡ Switched to ${resolvedModel} — ${modelSwitchReason}` });
sendEvent('step', { content: `Switched to ${resolvedModel}: ${modelSwitchReason}` });
}
// Track iteration and inject budget pressure

View File

@@ -9,7 +9,7 @@
* 2. DM the new bot any message; visit
* https://api.telegram.org/bot<TOKEN>/getUpdates to read the chat_id
* 3. POST /api/telegram/config with {botToken, chatId}
* 4. POST /api/telegram/test → user receives "Waggle is connected ✓"
* 4. POST /api/telegram/test → user receives "Waggle is connected to this chat."
*
* Endpoints
* GET /api/telegram/status → { configured, hasToken, hasChatId }
@@ -152,7 +152,7 @@ export async function telegramRoutes(server: FastifyInstance) {
const res = await sendToTelegram(
token,
chatId,
'✓ Waggle is connected to this chat. Scheduled digests will appear here.',
'Waggle is connected to this chat. Scheduled digests will appear here.',
);
if (!res.ok) return reply.status(502).send({ ok: false, error: res.description });
return { ok: true, messageId: res.result?.message_id };