Repository navigation
Conversation
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.
Why
The Tasks Copy button immediately reports 'Copied task line' while its parent discards the clipboard Promise. Both desktop and mobile task surfaces can therefore report success for a pending write, a rejection, or an unavailable clipboard API.
Approach
Await a boolean result from the existing copyTextToClipboard helper (including its existing fallback) before displaying success. Clear prior feedback on a new click and use a per-row request counter to discard obsolete completion feedback and unmounted-row results. Preserve exact raw markdown selection and existing error logging. One existing owner file changes; no dependency or server changes.
Validation
New Chromium checks on 2026-10-09 against main f8f1343:
Browser proof mounts real TaskGraphDrawer/MobileTasksSection and shared TaskGraphContent/TaskItem with fixture markdown over loopback HTTP. No backend mutation is involved. Mobile means the actual mobile component in a 390x844 Chromium viewport, not physical-device/WebKit proof. Initial external harness parsing/serialization faults were corrected before the valid untouched-main RED; no product changes preceded RED.
Runnable diagnostic retained outside the production diff under the current UI testing exception. Not run: full pnpm test, whole-project tsc, full-app navigation/production CSS, OS clipboard readback, real mobile/Windows/macOS, release/package/native matrix. Existing style/build warnings retained; no full-suite or remote-CI pass claimed.