Post-hoc fixes for #20: ProfileCard href safety, missing tests, dead tooltip assertion - #22
Merged
Merged
Conversation
Covers the CL-6028 post-hoc review findings: unsafe schemes (data:, file:, javascript:) on sharedChannels/pinnedSkills hrefs must never reach a live <a href>, safe http(s) hrefs must pass through unchanged, and the component's action-button wiring and conditional header/status/footer branches previously had no coverage at all.
sharedChannels[].href and pinnedSkills[].href rendered straight into <a href> — React blocks bare javascript: but passes data: and file: through unchanged, so an untrusted channel/skill name (agent- or directory-supplied) could carry a live script or local-file link. Matches the toSafeHref pattern already used by artifact-body, embed-body, and research-body: safe http(s) hrefs pass through unchanged, anything else falls back to plain text rather than a disabled-looking but still-live link.
The Escape-dismissal test's final assertion was inside 'if (describedBy !== null)', which never ran — Radix nulls aria-describedby immediately on Escape, so the guard always skipped the assertion and the test proved nothing about dismissal beyond the open-state check above it. Now asserts unconditionally that aria-describedby is cleared and the tooltip content element is gone from the document.
TheGreatAxios
added a commit
that referenced
this pull request
Aug 14, 2026
…he ProfileCard href-safety fix (#22)
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.
A post-hoc review of #20 (merged to `main` at 1d638e5) found three issues, all fixed here:
Branched from `main` (1d638e5), not from any diverged commit.
Test plan