fix(story-mode): a turn ended only by the next prompt says so

A turn with no end marker of its own (an abandoned or crashed turn) was
closed when the next prompt started and then drawn as "Mission complete!".
It now reads "To be continued…" / "The trail stops here: the next prompt
starts a new turn.", and the page carries `superseded`. The Director's cut
names what ended every turn: turn_duration, stop_hook_summary, a local
command, an interrupt, or the next prompt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-10-18 11:42:26 +02:00
1 parent 873b899c52
commit f4898a626f
4 files changed
+33 -12

No files matched your search

+5 -1
View File
@@ -2220,7 +2220,11 @@ Object.assign(CodemanApp.prototype, {
: `You chose: ${p.question.answer}`;
}
if (rt.splash) {
rt.splash.querySelector('.story-splash-title').textContent = page.interrupted ? 'Stopped!' : 'Mission complete!';
rt.splash.querySelector('.story-splash-title').textContent = page.interrupted
? 'Stopped!'
: page.superseded
? 'To be continued…'
: 'Mission complete!';
const chips = rt.splash.querySelector('.story-chips');
const items = [];
if (page.durationMs !== undefined) items.push({ text: this._storyDuration(page.durationMs) });