mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 08:17:09 +00:00
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
This commit is contained in:
1 parent
aba5b42e3a
commit
a1db0fb666
3 files changed
+7
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
```
|
||||
|
||||
@@ -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({
|
||||
<>
|
||||
<div className="grid gap-4 py-2 px-0.5 -mx-0.5 overflow-y-auto min-h-0">
|
||||
<div className="grid gap-1.5">
|
||||
<Label htmlFor="ci-name">Name *</Label>
|
||||
<Label htmlFor="ci-name">Key *</Label>
|
||||
<Input id="ci-name" value={name} onChange={(e) => setName(slugify(e.target.value))} placeholder="my-telegram-bot" disabled={!!instance} />
|
||||
<p className="text-xs text-muted-foreground">Unique slug used as channel identifier</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user