Repository navigation
Delete Copy's dead no_draft refusal; a draft view copies what it shows - #1721
Merged
Merged
Conversation
A document the Work holds no draft of shows its live text in Draft view, so copying that text is what the writer saw. Drop the fromLive count, the note toast and the success-toast exception; keep the deletion of the dead no_draft refusal.
haowjy
marked this pull request as ready for review
November 16, 2026 17:20
Owner
Author
|
Tree lead sign-off: review p18396 confirmed from the code that a draft view never refuses (effective-document-reader falls back to live; viewForOwner gives live with no branch). It found two stale doc lines, fixed in b0a0529. No writer-visible change: the server behaviour is unchanged, and only dead refusal text is removed. The coder's browser run on 44fba85 covers the Copy flows. CI 10/10. |
This was referenced Nov 16, 2026
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.
Changelog
no_draft, which the server never sent.Why
The contract, the client and the docs said a Copy from a Work's Draft view (a tab under review, or the sidebar on Draft) is refused in two cases: when the Work holds no draft of the document (
no_draft), and for any folder. The coder ran the unchanged server and found it never refuses either. A folder copies each document as the Work shows it, and a document with no draft copies its live text. The refusals existed only as stale text. This PR deletes them and corrects the docs, so no one builds against a refusal that doesn't exist.Examples
Nothing a writer sees changes. The browser run (
agent-browser, mock provider, on 44fba85, which differs only in also showing the note dropped below) showed:Benchmarks
None.
Design decisions
fromLivecount on the answer with a toast (built in 44fba85, then dropped), and a marker on the copied rows.Changes
no_draftremovedcontext-operation.ts,entry-failure.ts, locale catalogscontext/.context/CONTEXT.md,qa/copy-server.md,qa/drag-sources.md, KBplacement-and-naming.mdCompatibility and risk
no_draft, so no tab can receive it.context-operation.ts.Verification
pnpm checkandpnpm test:dbon 44fba85; typecheck andcheck:i18non 849263c; CI 10/10 on b0a0529 (adds the two doc lines review p18396 found).Deferred
None.
References