Skip to content

[codex] fix: guard trace ID clipboard copy#7

Merged
StiensWout merged 1 commit into
staging/safe-copy-connection-trace-idfrom
codex/fix/safe-copy-connection-trace-id
Jun 22, 2026
Merged

[codex] fix: guard trace ID clipboard copy#7
StiensWout merged 1 commit into
staging/safe-copy-connection-trace-idfrom
codex/fix/safe-copy-connection-trace-id

Conversation

@StiensWout

Copy link
Copy Markdown
Owner

Summary

  • Route the saved backend row trace ID copy action through the existing guarded clipboard hook.
  • Show success feedback when the trace ID is copied.
  • Show the hook-provided clipboard error message when the Clipboard API is unavailable or write fails.

Root cause

The saved backend row called navigator.clipboard.writeText(errorTraceId) directly, so unsupported clipboard contexts or rejected writes could fail without the existing user-visible error handling.

Impact

Users keep the same Copy trace ID action, but failures now surface as an error toast and successful copies confirm the copied trace ID.

Validation

  • PATH="$HOME/.vite-plus/bin:$PATH" vp check
  • PATH="$HOME/.vite-plus/bin:$PATH" vp run typecheck

vp check reports the repository existing unrelated warnings and no errors.

Co-authored-by: Codex <codex@openai.com>
@StiensWout
StiensWout merged commit 44464e9 into staging/safe-copy-connection-trace-id Jun 22, 2026
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