Repository navigation
Docs: a space made with New space or Start from blank counts as blank - #1
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
startrefused 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 asT.blank()indocs/assets/docs.jsadds 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.start/outlinerefuse it and leave it untouched, as before.startandoutline) 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
tests/review.js, on a fixture of the page staging saved. It covers titles like "Untitled", "Untitled document", one with&, 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.startrefuses a space holding the empty sheet. With this change,startandoutlinewrite 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.