Repository navigation
Conversation
After an upload the header kept the full path until something else replaced it. Show a 5-second 'Inserted <name>' note instead, and keep the tap-to-copy path only when the path could not be typed at the prompt. setStatus now drops the previous message's timer and tap handler, so a tap no longer copies an old path and an old timer can't clear a newer message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
After a paste, drop or 📎 upload, the panel types the file's path at the prompt and also shows it in the header:
📋 /data/uploads/20261126-003753-pasted.png - inserted at prompt. That message never fades. It stays until another message replaces it or the page is reloaded, and/clearor sending the prompt doesn't remove it. On a phone it takes up about half the header:The path is already at the prompt, so the header adds nothing in that case. There was also a stale tap handler: the message is tap-to-copy, and that handler stayed after a later message replaced it, so tapping the header could copy an old path.
Fix
📋 Inserted <file name>for 5 seconds, like other messages. Just the name, so it fits on a phone.setStatusreplaces the previous message completely: its 5-second timer and any tap-to-copy handler go with it. A tap can no longer copy a path that isn't shown, and an older message's timer can no longer clear a newer one.CHANGELOG and version 2.5.11.
Tests
New
tests/browser/test-upload-status.mjs, run bynpm testnext to the key-bar test, in Chromium and WebKit. It serves the real panel page with a fake terminal and upload, and uses Playwright's clock:It fails against the current page and passes with this change. The key-bar test still passes.
Tested
On my Home Assistant (dev add-on): pasting and uploading an image on an iPhone and in Chrome on a Mac. The path is typed at the prompt, and the header shows "Inserted …" for about 5 seconds, then clears.
🤖 Generated with Claude Code
Not worth a dedicated release.