Skip to content
This repository was archived by the owner on Nov 1, 2026. It is now read-only.

fix: support reliable Firstmate sessions on Pi - #1

Merged
kesslerio merged 4 commits into
firstmate-sdk-v1.2from
fix/pi-sdk-supervision-integration
Oct 19, 2026
Merged

kesslerio merged 4 commits into
firstmate-sdk-v1.2from
fix/pi-sdk-supervision-integration

Conversation

@kesslerio

@kesslerio kesslerio commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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 main has 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

  • All 37 changed/new source files match the accepted SDK patch inventory at the exact base commit.
  • npm run build:offline, npm run check, focused regressions, and the complete unchanged ./test.sh passed for that candidate, including both Durable retention configurations.
  • Ten final compiled UI batches passed: 195 case groups and 379 retained captures, with independent terminal and desktop/mobile browser interaction and screenshot review.
  • The Firstmate consumer compatibility/accounting acceptance passed against this exact SDK artifact.
  • Nine local review passes and the local adversarial fallback found no actionable issues; the external adversarial pass exhausted its turns without a usable result.
  • Publication-time CI repairs passed full offline build/check, exact-catalog restoration and corrupt-byte rejection, branch routing/failure checks, daemon build, focused AI/terminal regressions, and independent scoped review. A delayed-exec fixture reproduced the terminal race before the polling fix; its original time bound and assertions remain.
  • A fresh complete unchanged ./test.sh passed, 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.
  • GitHub build/check/test and MCP conformance passed on 248eb57; catalog generation also passed. Catalog publication was correctly skipped for this PR.
  • GitHub attachment upload failed because a signed-in browser was unavailable. UI interaction and screenshot review were completed; inline screenshots and recording are omitted.

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.

@kesslerio
kesslerio merged commit 67b098b into firstmate-sdk-v1.2 Oct 19, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant