agent-zero/plugins/_chat_naming/webui/config.html
frdel b6be345a56 Chat rendering/pagination, Add chat-naming and pin-to-top plugins
Refactor of messages.js to support lazy rendering.
Move chat rename functionality out of core and into a new _chat_naming plugin, and add a built-in _pin_to_top plugin for sidebar pinning. The chat-naming plugin includes API handlers, prompts, helper logic for selecting user messages and budgeted Utility Model calls, a python monologue_start extension, web UI (modal, store, config, sidebar action), and comprehensive tests. Removed the old core renaming extension and deprecated prompts/tests. Also added pin-to-top plugin files (API, helpers, webui store, tests/docs) and updated various AGENTS.md docs to reflect the new plugins and lifecycle clarifications. Minor UI/js tweak: reorder speak/copy buttons in browser tool handler and add a new webui message-window.js along with related webui/store/component updates and test adjustments.
2026-07-29 08:17:50 +02:00

51 lines
1.9 KiB
HTML

<html>
<head><title>Chat Naming</title></head>
<body>
<div x-data>
<template x-if="config">
<div>
<div class="section-title">Chat Naming</div>
<div class="section-description">
Configure automatic names for chats in this project and agent profile.
</div>
<div class="field">
<div class="field-label">
<div class="field-title">Automatic chat naming</div>
<div class="field-description">
Use the Utility Model to generate names for chats.
</div>
</div>
<div class="field-control">
<label class="toggle">
<input type="checkbox" x-model="config.automatic_naming"
x-init="if (config.automatic_naming == null) config.automatic_naming = true">
<span class="toggler"></span>
</label>
</div>
</div>
<div class="field" x-show="config.automatic_naming" x-transition>
<div class="field-label">
<div class="field-title">Automatic naming method</div>
<div class="field-description" x-show="config.automatic_naming_mode === 'once'">
Rename only when the chat has no name, using its first user message.
</div>
<div class="field-description" x-show="config.automatic_naming_mode === 'always'">
Refresh the name after every user message so it stays in sync with the conversation.
</div>
</div>
<div class="field-control">
<select x-model="config.automatic_naming_mode"
x-init="if (!['once', 'always'].includes(config.automatic_naming_mode))
config.automatic_naming_mode = 'once'">
<option value="once">Only once</option>
<option value="always">After every user message</option>
</select>
</div>
</div>
</div>
</template>
</div>
</body>
</html>