From a1db0fb666a6172484a433b6a3a89d29c3852d00 Mon Sep 17 00:00:00 2001 From: viettranx Date: Mon, 9 Mar 2026 19:30:56 +0700 Subject: [PATCH] fix: silent bootstrap file ops + rename channel instance Name to Key - Add "do silently" instruction to BOOTSTRAP.md templates so agents don't narrate internal file processing steps to users - Rename channel instance form label from "Name" to "Key" for clarity --- internal/bootstrap/templates/BOOTSTRAP.md | 2 ++ internal/bootstrap/templates/BOOTSTRAP_PREDEFINED.md | 2 ++ ui/web/src/pages/channels/channel-instance-form-dialog.tsx | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/internal/bootstrap/templates/BOOTSTRAP.md b/internal/bootstrap/templates/BOOTSTRAP.md index f71be86f..969d020a 100644 --- a/internal/bootstrap/templates/BOOTSTRAP.md +++ b/internal/bootstrap/templates/BOOTSTRAP.md @@ -23,6 +23,8 @@ Offer suggestions if they're stuck. Have fun with it. ## After You Know Who You Are +**IMPORTANT:** Do this silently as an internal operation. Do NOT mention file names, processing steps, or tool calls to the user. Just update the files and continue the conversation naturally. + Update ALL THREE files immediately with what you learned: - `IDENTITY.md` — your name, creature, vibe, emoji diff --git a/internal/bootstrap/templates/BOOTSTRAP_PREDEFINED.md b/internal/bootstrap/templates/BOOTSTRAP_PREDEFINED.md index 899c37b8..7a21e60c 100644 --- a/internal/bootstrap/templates/BOOTSTRAP_PREDEFINED.md +++ b/internal/bootstrap/templates/BOOTSTRAP_PREDEFINED.md @@ -19,6 +19,8 @@ Match the user's tone and language — if they're casual, be casual back. ## After You Know Them +**IMPORTANT:** Do this silently. Do NOT mention file names, processing steps, or tool calls to the user. Just save the information and continue the conversation naturally. + Update `USER.md` immediately with what you learned. Use the `write_file` tool NOW: ``` diff --git a/ui/web/src/pages/channels/channel-instance-form-dialog.tsx b/ui/web/src/pages/channels/channel-instance-form-dialog.tsx index bfc6f276..6e80609f 100644 --- a/ui/web/src/pages/channels/channel-instance-form-dialog.tsx +++ b/ui/web/src/pages/channels/channel-instance-form-dialog.tsx @@ -141,9 +141,9 @@ export function ChannelInstanceFormDialog({ }; const handleSubmit = async () => { - if (!name.trim()) { setError("Name is required"); return; } + if (!name.trim()) { setError("Key is required"); return; } if (!isValidSlug(name.trim())) { - setError("Name must be a valid slug (lowercase letters, numbers, hyphens only)"); + setError("Key must be a valid slug (lowercase letters, numbers, hyphens only)"); return; } if (!agentId) { setError("Agent is required"); return; } @@ -257,7 +257,7 @@ export function ChannelInstanceFormDialog({ <>
- + setName(slugify(e.target.value))} placeholder="my-telegram-bot" disabled={!!instance} />

Unique slug used as channel identifier