Skip to content

web: take the publish name from the reply, not the whole reply - #11

Merged
reoring merged 1 commit into
mainfrom
fix/prepare-name-answers
Nov 12, 2026
Merged

reoring merged 1 commit into
mainfrom
fix/prepare-name-answers

Conversation

@reoring

@reoring reoring commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Problem

Tracker APT-792. After the app is created the console asks for the publish name and audience. On Craftsman (draft-a522e670) the user picked the AI's chip 「ほかの名前にしたい」 and the console stored that sentence as publishPreferences.name and the draft title. The next reply (「提案して」) closed the exchange, and the fixed line 「下地ができました。ここから画面を作ります。」 was inserted above it, directly under the AI's unanswered question.

Cause

prepareAnswers took the first reply verbatim as the name when it was an offered chip or any short line. messagesFromDraft stamped the ready line with the last answered turn's time.

Change

  • A name is extracted from choice wording (Xにしたい, Xでよい, X is fine, Use X); chips, including follow-up chips, pass the same checks as typed replies.
  • Replies that defer or ask for a suggestion (「ほかの名前にしたい」「まだ決めていない」「提案して」) keep the name or audience question open; the fixed two-reply window is replaced by: first extracted name, then an audience answer or the first unrelated reply ends the exchange.
  • The ready line sorts after every message already shown.
  • Stored drafts are not rewritten.

Not in this PR

  • The AI answering 「提案して」 with name suggestions is prompt behaviour in Platform API.

Checks

  • bun test src/model/build src/features/build: 427 pass
  • bunx tsc --noEmit: clean

During the prepare exchange the console stored the user's first reply as
the app name whenever it was an offered chip or a short line. The AI's
chips are sentences (「入退室・金庫管理にしたい」「ほかの名前にしたい」), so
choosing one stored the sentence as publishPreferences.name and the draft
title. The next reply then closed the exchange and the fixed ready line was
backdated above it, as if the AI had moved on without an answer (APT-792).

- Extract the name from choice wording; chips get the same checks as
  typed replies.
- Replies that defer or ask for a suggestion keep the name and audience
  questions open instead of ending the exchange.
- The ready line always sorts after every message already shown.
@reoring
reoring merged commit 67fb0ae into main Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant