Repository navigation
Add a skill for rendering and reading the app's UI - #87
Merged
Merged
Conversation
Every visual change this session went through an ad-hoc script in a scratch directory, rewritten each time and lost afterwards. It should be a skill, because the useful part is not the resizing - it is the handful of things that were got wrong first. sheet.py groups screenshots by subject, puts each subject's variants in one labelled image, and scales them down. Two behaviours are there because of specific failures: - transparent pixels are composited over a background rather than dropped. Layouts with no background of their own otherwise render as solid black, which reads as a catastrophic bug that is not there. - tall slivers are laid out sideways and capped by height. The timeline tiles are 13x48, and scaling them to a fixed width produced a 300x2252 sheet that was worse than the originals. The skill also records what a screenshot is not. It shows one configuration once; the assertion is what fails a build. And it says to watch what the assertion is about, since the screenshot test kept passing while the history timeline was invisible - it loaded the drawables with a theme and the app did not. AGENTS.md gains a skills table. It had none, so add-strings has been sitting there unindexed, which rule 10 exists to prevent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
wanderdev0
added a commit
that referenced
this pull request
Sep 16, 2026
The same split as the app side, in the other two programs that make this call. Both the wizard and the CLI answered every MobileMeDelegateError with the terms flow, because terms were the only cause with a remedy here. Neither of them lied about it - the wizard fetches, finds nothing and says "this is something else", and the CLI asks before fetching and says the same. That honesty is why this never arrived as an exporter bug report. It is still a round trip to Apple to discover something the response already said, and it still leaves somebody at a dead end holding Apple's word "server problem", which reads as "wait" when waiting is exactly what does not work. not_a_terms_problem() in icloud.py is the shared decision, next to ExportSourceError and the sign-in that raises it, so the wizard and the CLI cannot drift apart on it the way three screens in the app once did. The message says sign-in worked, says it is not terms, quotes Apple verbatim because that string is the only evidence a report can carry, and passes on the remedy from dchristl/macless-haystack#84, #86 and #87 - appleid.apple.com and a payment method - as somebody else's finding rather than as fact. It contradicts Apple's own "try signing in later" on purpose. Nine tests, both branches of the decision. 657 passed on the exporter suite, flake8 clean, and pyright unchanged at its pre-existing count. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
saamdotexe
pushed a commit
to saamdotexe/OpenTagViewer
that referenced
this pull request
Oct 22, 2026
…-sheet-skill Add a skill for rendering and reading the app's UI
saamdotexe
pushed a commit
to saamdotexe/OpenTagViewer
that referenced
this pull request
Oct 22, 2026
Issue wanderdev0#221. Apple took the password and the code, then the com.apple.mobileme delegate refused the account: status=1, status-message "A server problem is blocking Apple ID sign in. Try signing in later." There was no localizedError in the response at all. That matters because the response has two independent error channels and terms arrive on only one of them. classifyLoginFailure mapped every MobileMeDelegateError to REASON_TERMS, so the reporter - whose terms were fine, as iCloud on the web confirmed - was taken to a terms screen, shown an empty document list, and told that accepting terms was the remedy. Splits REASON_ICLOUD_REFUSED out of it, branching on whether the response used the localizedError channel at all. The new sentence says authentication worked, says it is not about terms, and passes on what the neighbouring clients have worked out: this turns up on Apple IDs that have never been used with an Apple device, and completing the account at appleid.apple.com is what clears it. macless-haystack#84, wanderdev0#86 and wanderdev0#87 are where that comes from, and they are credited in the comments rather than only here. Deliberately not REASON_APPLE_DECLINED. That one advises waiting and offers the Anisette server route; Apple's own wording here also says to try later, and across those clients it does not clear on its own. Sending somebody to retry an unchanged sign-in forever is worse than naming the account. Reads error.localized_error rather than the names_a_localized_error property added in wanderdev0/FindMy.py#5, so this works against the pinned commit and does not drag rule 14's four files into the fix. Six bridge tests and one Espresso test. Two of the bridge tests go red against the old classification, verified by reverting the branch. The Java is not compiled here - this machine has no Android toolchain - so the instrumented test and the build are CI's word, not mine. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Every visual change this session went through an ad-hoc script in a scratch directory, rewritten
each time and thrown away. It should be a skill — because the useful part is not the resizing, it
is the handful of things that were got wrong first.
sheet.pyGroups screenshots by subject, puts each subject's variants into one labelled image, and scales
them down. A raw device screenshot is ~1080px wide and mostly whitespace; reading a before/after
pair separately doubles the cost of a comparison that wants to be side by side anyway.
Two behaviours exist because of specific failures:
and converting straight to RGB renders every transparent pixel black — which looks like a
catastrophic bug that is not there.
fixed width produced a 300×2252 sheet, worse than the originals. They now come out 158×262.
What the skill records beyond the tool
That a screenshot is not an assertion — it shows one configuration once, and the assertion is
what fails a build.
And that it matters what the assertion is about:
SystemColorsLayoutTestrenders the timelinetiles and requires them to clear WCAG 3:1, and it kept passing throughout the outage in #85,
because it loads those drawables through a themed context and the app did not. The test proved
the drawable could render, not that the app asked for it correctly.
It also covers forcing dark mode via
createConfigurationContextwithout touching the device,which is the gap in everything rendered so far.
AGENTS.md
Gains a skills table. It had none, so
add-stringshas been sitting unindexed — exactly whatrule 10 exists to prevent.
Verified
Run against the real managed-device output: six sheets, correct grouping, the tall-tile case
handled.
🤖 Generated with Claude Code
This pull request description was written by Claude Code.