Skip to content

Read a title refused with the text that stands as co-editing - #169

Merged
robertlemke merged 1 commit into
mainfrom
task/title-with-the-text-as-it-stands
Dec 1, 2026
Merged

robertlemke merged 1 commit into
mainfrom
task/title-with-the-text-as-it-stands

Conversation

@robertlemke

Copy link
Copy Markdown
Member

Follows #168. Minka now also holds back a new title sent with a body that, once cleaned, equals the stored text, while the document is being written together on its page (Minka PR 1124, not yet released). Where the last co-editing step was never saved, waiting alone does not help: the title is refused until somebody saves or resets the co-editing on the page. Until now, docs edit read the co-editing case only from a request without a body, so a title sent with the unchanged text got "written over since it was read" and advice to merge and send again.

The case is now read from a request with --title, sent with --force or with an --expect the document still stands at, whether or not a body went with it. No HTML comparison is needed: a different body is never held back, and a current --expect rules out a document written over. A race always lands on the stale path, never on this one.

  • The co-editing case:
    • retryable, with a hint to run the same command again later;
    • if it is still refused, somebody has to open the document's page (its address is named) and save, or reset the co-editing there;
    • never send a different text to push the title through, because that ends the co-editing and loses what others typed but did not save.
  • A stale --expect with a title: the ambiguous message from Tell a title held back by co-editing from a document written over #168. With a body, the hint now says which way to go: if the body is your own change, merge it and send it with the new --expect (which ends the co-editing); if only the title is, send it with the text as it stands.
  • A body-only 409: unchanged.
  • The fake: keeps a co-editing step, saved or unsaved. It applies the 15 minutes against its clock, counts a body equal to the stored one as none, and clears the step on a written text, a restore that writes and a lock.

Register: C-203 rewritten, with C-012 and the output contract adjusted. Checked against Minka's edit handler and ApiDocumentTitleTest, not live yet. One independent review, with every finding fixed. Each safeguard has a test and a sabotage proof.

Resolves: https://minka.flownative.com/go/card/MNK-10A

docs edit now reads a 409 documentChanged on a title as the co-editing
on the document's page whenever it was sent with --force or an --expect
the document still stands at, with or without a body. The error is
retryable and says to run the same command again later. Refused still,
the last step on the page may never have been saved: the hint names the
document's page, where somebody saves or resets the co-editing, and
warns never to send a different text to get the title through.

Minka counts a body equal, once cleaned, to the stored one as not named.
A new title with the text that stands is then refused while the
document is written together, like a title alone. Where the last step
on the page was never saved, the refusal does not run out after 15
minutes. Only a save or a reset on the page, or a different text, ends
it, and a different text loses what others typed.

Previously, the CLI read only a 409 on a title without a body as the
co-editing. A title sent with the text as it stands got the advice to
merge and send it again, which met the same refusal. The CLI does not
compare the body: Minka never holds a different one back, and a current
--expect rules out a document written over.

A stale --expect with a title and a body still names both causes. Its
hint now names the condition. Where the body is the writer's own
change, it is merged and sent again, which ends the co-editing. Where
only the title is, the text as it stands goes with the new updatedAt,
and a second refusal there is the co-editing.

The fake keeps the co-editing as a log with the moment of its last step
and whether that step was saved. A title is held back within the window
or while the step is unsaved, and the body is compared as the fake's
own cleaning keeps it.

Resolves: https://minka.flownative.com/go/card/MNK-10A
@robertlemke
robertlemke merged commit 9e213c8 into main Dec 1, 2026
2 checks passed
@robertlemke
robertlemke deleted the task/title-with-the-text-as-it-stands branch December 1, 2026 09:06
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