Repository navigation
Tell a title held back by co-editing from a document written over - #168
Merged
Merged
Conversation
docs edit now says that a document is being written together on its page when Minka refuses a title sent without a body. The error is retryable, says that nothing was written, and advises to run the same command again later. It never advises a body, a merge or an --expect. Minka refuses a new title without a body with 409 documentChanged while the co-editing on the page holds unsaved typing or took a step in the last 15 minutes, guarded or not. Its message and code are the same as for a stale expectation, and the updatedAt may not have moved. Previously, the CLI read every such 409 as a document written over and told the writer to merge its text and send it again. A title sent again with the new --expect met the same refusal. An agent that followed the advice and sent a body ended the co-editing session and lost what the others had typed but not saved. The CLI tells the cases apart by what it sent. Without a body, with --force or with an --expect the document still stands at, only the co-editing can have refused it. With an --expect the document has moved past, either is possible, so the error names both. A 409 on a body stays as it was, since Minka does not hold a body back. The help of docs edit now warns that a body ends the co-editing on the page. The fake marks a document as written together, refuses a title without a body after the archive, the lock and the text that already stands, and ends the co-editing with a written body, a restored version or a lock. Resolves: https://minka.flownative.com/go/card/MNK-ZC
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.
Minka now refuses to change only the title of a document while it is being written together on its page (749ebb45c, not yet released). It answers 409
documentChangedwith or without an expectation, writes nothing (the place in the navigation included), and its message is the same as for a document written over. Until now the CLI told an agent in that case that the document was "written over since it was read" and to merge its text and send it again. Sending a body ends the co-editing on the page and loses what others typed but had not saved.docs editwithout a body now tells the cases apart by what it sent:--force, or an--expectthe document still stands at: the document is being written together, nothing was written, and the same command should run again later. The error isretryable, and the document as it stands is still printed.--expect: it was written over or is being written together. The hint is to send the title again with the newupdatedAt, still without a body. Not retryable.The help of
docs edit,docs/stable/docs-and-files.mdand the skill warn that--bodyends co-editing and that a held-back title is never to be pushed through with a body. The fake mirrors the state, Minka's order of checks, and what clears it (a written body, a lock, a restored version that differs).Register: C-203, with C-012 and the output contract extended by the new
retryablecase. Checked against Minka's code andApiDocumentTitleTest, 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-ZC