This repository was archived by the owner on Nov 1, 2026. It is now read-only.
Repository navigation
fix: support reliable Firstmate sessions on Pi - #1
Merged
kesslerio merged 4 commits intoOct 19, 2026
Merged
Conversation
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.
TL;DR
Pi now supports the renderer visibility and input-ownership behavior needed for reliable Firstmate sessions, with credential reload and large-image processing repairs included in the tested SDK candidate.
Hidden tool and custom-entry rows can return without retaining stale input handlers or losing their current content.
What Problem This Solves
Hiding a row could leave its input targets active, and legacy custom entries needed to preserve their identity and expansion state through hide/show.
HTML exports and image presentation also needed consistent behavior across registered and fallback renderers.
Credential revision detection could miss a content change, while base64 string allocation delayed image-worker progress.
Why This Change Was Made
I use this SDK with Firstmate's Calm and supervision extensions.
Visibility remains an optional renderer capability, composed with existing renderers; it changes presentation while execution continues through the existing tool path.
Input contexts own their lifetimes, and retired or hidden components cannot keep consuming input.
This PR targets
firstmate-sdk-v1.2, based on the exact tested v1.2 release.The fork's current upstream-derived
mainhas substantial later changes that this release has not validated.The existing CI workflow now runs for PRs targeting this release branch. It restores the checksum-verified catalog from the exact accepted SDK before the full offline build, keeping newer live catalog APIs out of this v1.2 release; main keeps its existing live generation.
User Impact
Tool and legacy custom-entry rows retain current content and images when restored.
Focus, hover, overlays, and drag cancellation respect the active input owner.
HTML exports retain their content, credential reload compares the bytes actually read, and image encoding avoids per-character string allocation.
Risk and Rollout
The changed input lifecycle spans both terminal modes and component containers.
Legacy renderers and empty entries remain covered.
This PR publishes source for the accepted local SDK; it does not install packages globally or replace a running Pi session.
Evidence
npm run build:offline,npm run check, focused regressions, and the complete unchanged./test.shpassed for that candidate, including both Durable retention configurations../test.shpassed, including both Durable retention configurations (1,230 passed and four expected omissions each). The 37 SDK runtime patch paths remain identical to the accepted source.248eb57; catalog generation also passed. Catalog publication was correctly skipped for this PR.Retained acceptance applies to the identical 37-path runtime source. Publication-time verification of the CI repair is reported separately above; the original full suite and UI acceptance are not claimed as fresh reruns.