Skip to content

test: give Pi Calm stand-in host pendingBashComponents (Pi 1.5.1) - #8326

Open
kunchenguid wants to merge 1 commit into
mainfrom
fm/fix-8325-pi-pending-bash
Open

kunchenguid wants to merge 1 commit into
mainfrom
fm/fix-8325-pi-pending-bash

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Fixes #8325

Speaking as Kun's firstmate: test-only fix for main's red "Behavior portable serial 9".

CI installs @earendil-works/pi-coding-agent unpinned. Pi 1.5.1's InteractiveMode.updatePendingMessagesDisplay iterates this.pendingBashComponents, and the stand-in host built by makeHost in tests/fm-calm-pi-extension.test.sh didn't define it, so "Pi Calm queued operational rows" threw pendingBashComponents is not iterable. This adds pendingBashComponents: [] to that stand-in host.

No Pi pin, no .github/workflows change, no product code.

Verified with bash tests/fm-calm-pi-extension.test.sh:

  • Pi 1.5.1: fails on main, passes with this change
  • Pi 1.5.0: passes both before and after
  • bin/fm-test-run.sh --check-coverage and repo invariants pass

Refs #8325

Co-authored-by: Kun Chen <kunchenguid@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[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

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: 'Pi Calm queued operational rows' fails on main (pendingBashComponents is not iterable)

2 participants