This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Repository navigation
fix(hud): wrap long handoff prompts and grow the card within the viewport - #107
Merged
Merged
Conversation
kitlangton
force-pushed
the
fix/handoff-copy-wrap
branch
from
October 25, 2026 22:37
c96c7bd to
fdd2b53
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
A long
handoff()message rendered on a single line with an ellipsis, so the person being asked to act couldn't read the instructions. In the Problems TestFlight flow, the card read "Sign in with your PERSONAL Apple account (Ch..." and hid exactly the part that said which account to use.What Changes
The unfolded card now sizes itself to its content:
min(324px, viewport − 16px)and height at the viewport minus the island's top offset, margin and shadow room. If the text is still taller than that, only the prompt scrolls; the Continue/Allow row stays pinned and visible.Before (1280×800):
After (1280×800):
Tab request at 320px wide:
Very long prompt in a 360px-tall viewport (the prompt scrolls and Continue stays reachable):
The island stylesheet moved from the content script into
extension/src/dynamic-island-gpu.ts(islandStyleSheet), so the harness below renders exactly what ships.Verification
Typecheck, Knip and jscpd are clean, and all 993 tests pass. I also ran a headless Chromium harness that mounts the real
DynamicIslandRigand stylesheet, measures the shadow DOM, then clicks the first button:Switching from a short message to a long one mid-handoff grows the card (and canvas) from 82px to 140px, and folding back restores the 128px canvas. I haven't verified this live in the extension: deploying needs an extension reload, and that is waiting on a pending handoff in another session.