Repository navigation
test: initialize pendingBashComponents in Pi Calm host fixture - #51
Merged
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 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.
Intent
I approve the wake question.
The approved Wake changes (PRs #49 and #50 on this fork) are red only because one existing CI test fails, unrelated to either change: in "Behavior portable serial 2",
not ok - Pi Calm queued operational rowswithTypeError: this.pendingBashComponents is not iterableat node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js:4044, called from firstmate's lib/fm-calm-pending-operational-layout.ts:207 (updatePendingMessagesDisplay override). CI installs the current pi-coding-agent from npm; main last passed 2026-11-08, so a newer Pi release changed that internal. The "Full suite" check fails only because that lane failed. Evidence: https://github.com/clarsen/firstmate/actions/runs/44971540068/job/137052200073 .What Changed
pendingBashComponents: []to themakeHostfixture intests/fm-calm-pi-extension.test.sh. Newer Pi releases set this field when they construct a host. The fixture builds its host withObject.create, which skips field initializers, so the field was missing.Pi Calm queued operational rowscase. It was failing withTypeError: this.pendingBashComponents is not iterablewhenupdatePendingMessagesDisplayran against the latest@earendil-works/pi-coding-agentfrom npm. Only test code changes; production code is untouched.Risk Assessment
✅ Low: The change adds one line to a test fixture: it sets
pendingBashComponents: []on a host built withObject.create(InteractiveMode.prototype), which skips class field initializers. This matches the CI failure in the intent ("pendingBashComponents is not iterable") and changes no production code.Testing
The change only edits a test file, so the thing to check was the failing CI test. I ran tests/fm-calm-pi-extension.test.sh against a throwaway install of the same Pi release CI uses (1.6.0). The base fixture fails with the exact TypeError CI reported, and the fixed fixture passes. The real-Pi tmux E2Es in that file could not run here: this sandbox's tmux server crashes as soon as a pane writes any output. Those E2Es never touch the edited fixture. There is no UI or visual surface, so the evidence is test logs only. Overall: go.
Evidence: Before fix (base fixture vs Pi 1.6.0) – reproduces CI failure
not ok - Pi Calm queued operational rows: .../interactive-mode.js:4044 for (const component of this.pendingBashComponents) { TypeError: this.pendingBashComponents is not iterableEvidence: After fix (Pi 1.6.0) – queued-row and other Calm tests ok
Evidence: After fix with pi on PATH – E2E blocked by sandbox tmux crash
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Installed@earendil-works/pi-coding-agent@1.6.0withnpm install -g --prefix /tmp/pi-npm.*/g(a throwaway prefix, deleted afterwards)FM_PI_PACKAGE_DIR=<disposable pi 1.6.0> bash tests/.base-calm.test.sh(a temporary copy of the base-commit test file, deleted afterwards): rc=1, reproduces the CI TypeErrorFM_PI_PACKAGE_DIR=<disposable pi 1.6.0> bash tests/fm-calm-pi-extension.test.sh: rc=0, all non-E2E Calm tests ok, including the queued-row testPATH=<disposable pi bin>:$PATH FM_PI_PACKAGE_DIR=... bash tests/fm-calm-pi-extension.test.sh: tried the real-Pi tmux E2Es; they failed because the sandbox's tmux server crashesDiagnosed the tmux crash:tmux -L p$RANDOM new-session -d ... 'echo hi; sleep 3'gives 'server exited unexpectedly' (output-freesleep 5survives); realpi1.6.0 starts fine in a Python pty with TIOCSWINSZ 160x36✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.