Skip to content

Docs: a space made with New space or Start from blank counts as blank - #1

Merged
jamescalam merged 2 commits into
mainfrom
blank-new-space
Nov 15, 2026
Merged

jamescalam merged 2 commits into
mainfrom
blank-new-space

Conversation

@jamescalam

@jamescalam jamescalam commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

A space made from the app's New space or Start from blank holds the app's empty sheet: a styled page with an empty body. Docs didn't count it as blank, so start refused it as someone's page and the agent asked the person a question instead of writing.

Change

  • docs/assets/blank-new-space.html: the app's empty sheet as staging saves it (15 Nov 2026), with its title as T.
  • blank() in docs/assets/docs.js adds it to the closed list of blank pages. The title is the only slot: exactly one <title>, plain text. The rest of the page must match whole, after dropping whitespace, as the other entries do.
  • Anything added to the sheet (a typed line, a heading, an image, a script, a changed style or attribute, a second title) makes the page the person's, and start/outline refuse it and leave it untouched, as before.
  • The refusal for a page someone made (start and outline) now says what to do with the answer: ask whether to use a new page; if the person says to write on that page anyway, say a page with content can't be replaced yet and use a new page all the same, never saving over it another way. Words only, no change in behaviour.

Tests

  • New test in tests/review.js, on a fixture of the page staging saved. It covers titles like "Untitled", "Untitled document", one with &amp;, non-Latin text with an emoji, an empty title and reflowed whitespace: all write. Eight changed sheets are all refused, with no save. The test fails on v1.0.0.
  • tests/ownership.js: both refusals carry the answer line (fails without it).
  • node tests/run.js: 52 passed, 0 failed.
  • On staging: v1.0.0's start refuses a space holding the empty sheet. With this change, start and outline write and save the outline. The same sheet with one typed line is still refused and left as it was.

Look closely at: newSpaceSlots, the title slot. A wrong "blank" would overwrite someone's page. A wrong "not blank" (for example, after the app changes its sheet) only brings back the question.

jamescalam and others added 2 commits November 15, 2026 12:11
…blank counts as blank, with its title as a plain-text slot; anything added to it makes the page the person's

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
…swer: a yes to writing on that page gets a new page, never a save over theirs

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
@jamescalam
jamescalam merged commit 3c1038a into main Nov 15, 2026
1 check 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