Repository navigation
Device lab: File it on GitHub copies the report first, so it reaches the form - #131
Merged
Merged
Conversation
…#127) On iOS, expo-file-system resumes only from the base64 resume data NSURLSession produces on a pause, and .part does not exist until the file is complete, so every stopped download started again from zero. - download-resume.ts (pure, tested): which path each platform takes, the record kept next to .part, and when to fall back to a clean restart. - The download screen pauses the running download on iOS when the app goes to the background or the connection drops; the pause saves the resume data in <name>.part.resume, and the next attempt resumes from it. A missing, stale or rejected record means one clean restart. - partialModel and the model update read the saved bytes on iOS. - Android keeps its byte offset path. The SHA-256 check is unchanged. Signed-off-by: Daniel Bejarano <dbejarano820@gmail.com>
…the form (#130) On an iPhone with the GitHub app, the github.com link opens in the app, which drops the query, so the report never reached the form. File it on GitHub now copies the exact report with the plain local copy every time, then lets the system open the link with its default handler (the GitHub app or the browser), on Android and iOS. The screen says the report is copied, to paste it into the Report field if the form opens empty, and to pick Device report if the app shows a list. The too-long path says the same. The decision lives in fileReport() in device-lab-view.ts, tested under node --test. Signed-off-by: Daniel Bejarano <dbejarano820@gmail.com>
juancguerrerodev
marked this pull request as ready for review
November 27, 2026 19:45
juancguerrerodev
force-pushed
the
dbejarano820/130-file-report-clipboard
branch
from
November 27, 2026 19:45
aea778e to
c942881
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 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.
What and why
Closes #130
On an iPhone with the GitHub app, File it on GitHub opened the app, which drops the link's query, so the report never reached the form. Now File it on GitHub always copies the exact report first, with the same plain local copy that Copy uses, and then the system opens the link with its default handler: the GitHub app when installed, otherwise the browser. This works the same way on Android and iOS. The screen says the report is copied, to paste it into the Report field if the form opens empty, and to pick Device report if the GitHub app shows a list of forms. A report too long for a link is handled the same way and gets the same hint.
fileReport()inapps/mobile/src/device-lab-view.tsdecides what happens. It copiesreportText(), then opensissueLink(). If the copy fails, a filled-in form still opens, but an empty one doesn't, because there would be nothing to paste. It returns the notice to show. The screen only wires it tocopyReport(HermitVault.copyPlain) andopenReportForm(Linking.openURL).HM-SET-10.fileCopied, and updates tolongCopied(the Device report hint),shareBody(it now says the report is copied and opens in the GitHub app or the browser) andopenFailed(it said "the browser", and now it can be the app too).Vision fit
The Device lab's reports leave the phone only when the person files them. This makes sure that the filing they chose actually works, whichever app opens the link, without adding a server or a dependency.
Non-negotiables
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Test first: the new tests in
apps/mobile/src/device-lab-view.test.tsfailed before the change becausedevice-lab-view.tshad nofileReportexport (SyntaxError: The requested module './device-lab-view.ts' does not provide an export named 'fileReport'). After the change, that file passes 14 of 14, andapps/mobilepasses 299 of 299. The tests check, for an Android and an iPhone report: the copy comes before the open, the copied text is exactlyreportText()and the opened URL is exactlyissueLink().url; the too-long path copies and opens the empty form; a failed copy still opens a filled-in form but not an empty one; a failed open says so; and both locales have the new words, naming Report and Device report, with no dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
To come: the Device lab report screen after File it on GitHub (the new notice and the updated share text). None were taken yet.
New dependencies and network calls
n/a. No new dependency. No new or changed request: the same
github.comlink opens throughLinking.openURLas before, and the copy is the existing local-onlyHermitVault.copyPlain.AI agents