Skip to content

Studio AI-draft notice: "Discard" says it goes back to the live version, but for an item the assistant created and that was never published there is no live version, and discarding deletes it #38302

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (a) out-of-scope finding from the #36660 card thread (PR #38285, Acceptance notes, Q2), graded by the L1-b review 7238734970. Source: fleet.
Grading: area:ux · domain:ui · Bug · p3 · reach: a Studio admin who discards an AI-created item that was never published. The button promises "go back to the live version", but the item is deleted instead. That is a surprise, but the result is what a discard of a new item should do. After PR #38285 the same button and wording sit on five StudioAiDraftNotice hosts.
Dedupe: "aiDraft discardTitle live version never published" → only #36660.

维护者速读

  • 问题:Studio 里 AI 草稿提示的「放弃」按钮说的是「放弃未发布的草稿,回到线上版本」。可如果这一项是 AI 新建、从没发布过,就没有线上版本,放弃等于删掉它,提示文字说错了。
  • 修法:从没发布过的项用另一句文案(例如「删除这个 AI 新建、尚未发布的项」),并在确认框里写明会删除。
  • 要你做的:无。

Ask

  1. StudioAiDraftNotice (ui/packages/app-shell/src/views/studio-design/StudioAiDraftNotice.tsx) picks its discard title and confirm text from whether the item has a published version: the current text when it has one, and a delete wording when it does not.
  2. New i18n keys in engine.studio.aiDraft.*, in every locale the namespace carries.
  3. Pin both texts on one host, plus one host per distinct "has a live version" reader if the hosts read it differently.

Size: XS
Related: #36660, PR #38285.

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipm:queuepriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions