Skip to content
Open
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
2 changes: 1 addition & 1 deletion ui/web/src/i18n/locales/en/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"requireMention": "Require @mention",
"enabled": "Enabled",
"allowedUsers": "Allowed Users",
"allowedUsersPlaceholder": "One user ID per line",
"allowedUsersPlaceholder": "One user ID per line or comma-separated",
"skillsFilter": "Skills Filter",
"skillsPlaceholder": "One skill name per line (empty = inherit)",
"toolAllow": "Tool Allow",
Expand Down
2 changes: 1 addition & 1 deletion ui/web/src/pages/channels/channel-fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function FieldRenderer({
id={id}
value={Array.isArray(value) ? (value as string[]).join("\n") : ""}
onChange={(e) => {
const lines = e.target.value.split("\n").map((l) => l.trim()).filter(Boolean);
const lines = e.target.value.split(/[\n,]/).map((l) => l.trim()).filter(Boolean);
onChange(lines.length > 0 ? lines : undefined);
}}
placeholder={t("groupOverrides.fields.allowedUsersPlaceholder")}
Expand Down
2 changes: 1 addition & 1 deletion ui/web/src/pages/channels/channel-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const configSchema: Record<string, FieldDef[]> = {
{ key: "reaction_level", label: "Reaction Level", type: "select", options: [{ value: "off", label: "Off" }, { value: "minimal", label: "Minimal" }, { value: "full", label: "Full" }], defaultValue: "full" },
{ key: "media_max_bytes", label: "Max Media Size (bytes)", type: "number", defaultValue: 20971520, help: "Default: 20MB" },
{ key: "link_preview", label: "Link Preview", type: "boolean", defaultValue: true },
{ key: "allow_from", label: "Allowed Users", type: "tags", help: "User IDs or @usernames, one per line" },
{ key: "allow_from", label: "Allowed Users", type: "tags", help: "User IDs or @usernames, one per line or comma-separated" },
{ key: "block_reply", label: "Block Reply", type: "select", options: blockReplyOptions, defaultValue: "inherit", help: "Deliver intermediate text during tool iterations" },
],
discord: [
Expand Down