Skip to content

Improvement: saved prompts get an invisible AI-generated title with no way to see, set, or rename it #2644

Closed

Description

@yannickmonney

Problem

"Save prompt" stores the message content and then has an LLM invent the prompt's title (generatePromptTitle), without ever showing it to the user or letting them override it:

  • The Save prompt dialog has no Title field — only Content, scope, category. The user never sees what their prompt will be called.
  • The prompt library offers no edit/rename: a card's More-actions menu is Copy / "No previous versions" (permanently disabled — versions can never exist without an edit path) / Delete. A bad or wrong AI title is unfixable short of delete-and-lose.
  • The title generation is an extra LLM call per save, whose output quality the user can't correct. (In the hermetic mock stack this is vivid: every saved prompt is titled with the canned mock reply text.)
  • Related friction in the same dialog: choosing Team scope in an org without teams silently disables Save — no team picker, no explanation (cf. Improvement: Add tooltips explaining why a disabled control is disabled #1949's disabled-control-tooltips theme, closed Improvement: No default team available when accessing “Team” prompts – user expected to have a default team #1465); and the size indicator reads "45 B / 16.0 KB" — bytes are developer units.

Current behaviour

Save a message as a prompt → library lists it under a title you never chose and cannot change. Repro any stack; deterministic on mode A (title = canned mock reply).

Code pointers

  • app/features/prompts/components/save-prompt-dialog.tsx:122-131 — sends only content, no title
  • convex/prompts/actions.ts:38,81-90 — title optional; falls back to generatePromptTitle(content)
  • convex/prompts/generate_title.ts:62,70-71; template convex/lib/prompts/registry/entries/utility.ts:65-76
  • convex/prompts/mutations.ts:374-377,412 — stored title, PROMPT-XXXXX fallback
  • Library card menu (no edit item): prompt library components under app/features/prompts/

Proposed change

Show an editable Title field in the save dialog (prefill AI suggestion async or on demand); add Rename/Edit to the library card menu (which also makes the version-history item reachable); hide or explain the Team scope when no team exists; show characters, not bytes.

Acceptance criteria

  • The save dialog exposes the title (editable) before saving
  • Library prompts can be renamed/edited after saving
  • Team scope is hidden or explained in teamless orgs (no silent dead Save)

Related: #1465, #1949.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions