Repository navigation
test: give Pi Calm stand-in host pendingBashComponents (Pi 1.5.1) - #8326
Open
kunchenguid wants to merge 1 commit into
Open
kunchenguid wants to merge 1 commit into
kunchenguid wants to merge 1 commit into
Conversation
Refs #8325 Co-authored-by: Kun Chen <kunchenguid@users.noreply.github.com>
[Low impact] This test-only change appears safe to merge. Reviews (1) · Last reviewed commit: "test: give Pi Calm stand-in host pending..." · Reviewed by Greptile |
This was referenced Nov 11, 2026
mattleus
pushed a commit
to mattleus/firstmate
that referenced
this pull request
Nov 19, 2026
Calm's queued-row listing calls isFirstmateOperationalPresentationText for every queued message on every pending-messages redraw, on Pi's synchronous render path, and each call was a blocking spawnSync of bin/fm-operational-input.sh. When a provider request stalls, watcher follow-ups keep queuing; queued count x redraws x ~20ms of spawns then holds the event loop indefinitely and the TUI stops accepting input (observed: ~2000 classifier spawns in a few seconds, main thread pinned in Array.filter -> spawnSync). The verdict is a pure function of the text, so remember it in a bounded map. Only definitive classifier answers (exit 0/1) are cached; a failed or missing classifier is asked again, keeping the existing fail-visible behavior. The queued-rows test gains a regression check (40 queued notifications over 25 redraws must classify each text once; it was 1000 spawns before) and carries the pendingBashComponents stand-in from kunchenguid#8326 so the test runs on Pi >= 1.5.1 (kunchenguid#8325).
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.
Fixes #8325
Speaking as Kun's firstmate: test-only fix for main's red "Behavior portable serial 9".
CI installs
@earendil-works/pi-coding-agentunpinned. Pi 1.5.1'sInteractiveMode.updatePendingMessagesDisplayiteratesthis.pendingBashComponents, and the stand-in host built bymakeHostintests/fm-calm-pi-extension.test.shdidn't define it, so "Pi Calm queued operational rows" threwpendingBashComponents is not iterable. This addspendingBashComponents: []to that stand-in host.No Pi pin, no
.github/workflowschange, no product code.Verified with
bash tests/fm-calm-pi-extension.test.sh:bin/fm-test-run.sh --check-coverageand repo invariants pass