GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(tui): surface clipboard write failures instead of false success by K0nigsberg · Pull Request #51674 · anomalyco/opencode ConversationIssue for this PRFixes #51658 Type of change
What does this PR do?
Now a native-command failure falls back to clipboardy, and if that also fails This fixes the false-success notification described in #51658 and also seen in #50208 (SSH+tmux). It does not add local-client clipboard forwarding over SSH/tmux — when only OSC 52 could reach the local machine, the user now gets an honest error instead of a lying success message. Caller changes
How did you verify your code works?Added a regression test in
Screenshots / recordingsNot a visual change beyond which toast text appears on failure; the rejection flows through the existing error toast. Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions`clipboard.write()` swallowed every backend failure with `.catch(() => undefined)`, so it always resolved and callers showed "Copied to clipboard" even when nothing reached the clipboard — e.g. X11 without xclip/xsel, or terminals that ignore OSC 52 (GNOME Terminal/VTE). Now a native-command failure falls back to clipboardy, and if that also fails `write()` rejects with an actionable message. A bounded timeout (3s) also guards against clipboardy backends that neither complete nor error (the bundled xsel fallback hangs with no display), so the caller always sees the real outcome instead of a hanging toast. Callers updated to route rejections to the existing error toast or a failure state: - dialog-message "Copy": .catch(toast.error) - error-component "Copy report": failure clears the copied flag Fixes anomalyco#51658 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. tui: "Copied to clipboard" reported even when no backend copiedUh oh!
There was an error while loading. Please reload this page. 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. | ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |