Repository navigation
zgx: a session's menu can regenerate its title - #1504
Open
syntony666 wants to merge 1 commit into
Open
syntony666 wants to merge 1 commit into
syntony666 wants to merge 1 commit into
Conversation
…ages RetitleChat retitles even a named chat, feeding the titler the first user message plus the newest ones; the menu entry only shows when an enabled agent can title, and a refusal reaches the toast verbatim.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1396 — a session's context menu gains Regenerate title, for when the title no longer matches the conversation.
RetitleChatengine RPC:{chatId}→{title}. Unlike the automatic first-prompt titler, it feeds the titler the conversation's own user messages — the first request as an anchor plus the newest ones (20-message budget) — as the existingpreviousUserMessages/currentUserMessageJSON envelope, so a chat that drifted gets a title about what it became.GetTitleSettings/SetTitleSettingsresponses now includeavailable(an enabled agent supports titles); the menu item only appears then, and availability is re-asked each time the menu opens.Test plan
cargo test -p zeron-engine --lib title— 11/11 (retitle renames a titled chat; no titler → error; missing chat → error; request keeps only user text; budget keeps first + newest)cargo test --bin zeron-zgx i18n_tests— 4/4zgx test ui— focused: menu shown + calls host, hidden when no titler, engine words in the toast (3 new tests)zgx linton touched files — 0 errorszgx test ui— 1414/56; the 56 are pre-existing (chat_warmfails identically on main) or mount time-budget flakes under loadScreenshots
Session context menu with the new Regenerate title item (English UI; labels localized via
shell.sidebar.menu.retitle).