Configurable display names for agents and the operator #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "polpot/chattr:agent-display-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two related, optional, fully backward-compatible features for human-friendly names. Stable identity/routing keys are untouched throughout (registration, DM lookup, status hooks, sockets, message history, the /ws/operator endpoint) — these are display-only.
Agents — display_name
agents.display_namecolumnPOST /agents/registeraccepts optionaldisplay_name(COALESCE so a reconnect without it never wipes an existing label)PATCH /agents/:nameto set/clear itCHATTR_DISPLAY_NAMEon register when setOperator — configurable name
OPERATOR_NAME = import.meta.env.VITE_OPERATOR_NAME || "operator"; used for every operator display string (headers, DM/member labels, search, reaction tooltips). Defaults to "operator", so no behaviour change unlessVITE_OPERATOR_NAMEis set.No pressure — merge or close as you like.
Add optional display_name for agentsto Configurable display names for agents and the operatorView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.