fix(story-mode): what the captions blurred for a reader who skims (review round 11)

From an engineering manager skimming titles and captions:
- "but a check after that fails" under "Mission complete!" where the
  prompt said that step may fail now adds ", as you said it might".
- Saves no prompt of the turn asked for (a project rule, or Claude's own
  idea) were indistinguishable from requested ones: the turn's first such
  save carries a small line, "a save your prompt here did not ask for".
  "save its log with tee" no longer counts as asking to save the work.
- The first save on a branch Claude created says which: "saves the work
  on a new branch (feat/csvstat)".
- "Claude changes 3 files" hid an edit to your CLAUDE.md: a panel that
  wrote some files and patched others says both ("Claude writes
  README.md and .gitignore and changes CLAUDE.md."); a file created and
  then edited in the same panel is written.
- A turn with a problem left and work still out read "Done for now";
  the catch now wins the title.
- A helper's report that is only a path reads "reports back with the
  file it wrote: README.md."

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-10-18 17:44:06 +02:00
1 parent 175017f604
commit d3c55e04a3
18 files changed
+345 -40

No files matched your search

+18
View File
@@ -1059,6 +1059,24 @@ describe('buildStoryPage', () => {
expect(keyKindOf('Anything unknown is left out rather than guessed.')).toBeUndefined();
});
it('the first save no prompt asked for is marked, once; a new branch is named', () => {
const saves = (ask: string) =>
pageOf([
prompt(ask),
...bash('b0', 'git checkout -q -b feat/x', 'Branch', ''),
...bash('b1', 'git commit -qm "add a"', 'Commit', ''),
...edit('e1', '/w/a.py', ['+a = 1']),
...bash('b2', 'git commit -qam "add b"', 'Commit', ''),
end(1000),
]).panels.filter((p) => p.kind === 'save');
const unasked = saves('Add a.');
expect(unasked.map((p) => !!p.unaskedSave)).toEqual([true, false]);
expect(unasked[0].caption.story).toBe('Claude saves the work on a new branch (feat/x): "add a".');
expect(saves('Add a and commit it.').some((p) => p.unaskedSave)).toBe(false);
// "save its log" is no request to save the work.
expect(saves('Add a and save its log with tee.')[0].unaskedSave).toBe(true);
});
it('a stop names the step Claude was on and what its to-do list still had open', () => {
const stopped = (lines: unknown[]) =>
pageOf([...lines, prompt('[Request interrupted by user]')]).panels.find((p) => p.kind === 'complete')!.caption