Repository navigation
fix(pi): match Pi 1.0 stock tool headers and keep Calm e2e captures in scrollback - #30
Merged
Merged
Conversation
…n scrollback Pi 1.0.0 puts call arguments on the stock tool header and defaults to a fullscreen TUI, so the unpinned CI install broke the stock-render comparison and the Calm e2e pane captures. Port the upstream fixes (kunchenguid/firstmate kunchenguid#6162 Pi parts, kunchenguid#6338): version-gated call headers for fm_branch_outcomes and fm_branch_processed, and --tui-mode regular for Calm e2e launches where the flag exists.
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
The fork's CI check 'Behavior portable serial 2' and 'Behavior portable serial 4' fail on every fork pull request (25, 26, 27), identically across reruns, so three finished fixes cannot merge green. The failures are in the Pi tests, not in what those pull requests change: serial 2 reports "calm mode was not off by default (missing: 'CALM_E2E_OUTPUT')" and serial 4 (tests/fm-pi-branch-extension.test.sh) reports "Calm-off ToolExecutionComponent rendering differs from Pi stock". Main passed CI four days ago and started failing after the upstream sync merge (fork PR 24); that merge's own run failed other shards (5 and 8).
What Changed
.pi/extensions/fm-branch-supervision.tsnow builds thefm_branch_outcomesandfm_branch_processedcall headers with astockToolCallHeaderhelper that matches Pi's stock renderer. Before Pi 0.99 the header is the bold title alone. From Pi 0.99 on it addskey=jsonargs (cut at 100 characters) when collapsed, and mutedkey: valuelines when expanded. The helper reads Pi'sVERSIONto choose between the two.tests/fm-pi-branch-extension.test.shadds checks that compare both tools' call headers against Pi's stock rendering.tests/fm-calm-pi-extension.test.shis reworked so the Calm e2e captures stay in scrollback. Its HTML export check now accepts either omission or default-hidden hook rows for legacy synthetic messages, and still rejects visible leakage.docs/calm.md,docs/calm-mode-feasibility.mdand the Pi harness adapter reference are updated to describe the call-header behavior,fm_branch_processedbeing hidden under Calm, Pi draining queued Firstmate inputs itself, and how legacy operational messages show in HTML exports. The matchingpi.mdchange is a one-line removal.Risk Assessment
✅ Low: The change is confined to the Pi extension's call-header rendering and its Pi tests; the Pi-version gate and header reconstruction trace correctly for pre-0.99, 0.99+ and 1.x, and the new tests compare against real Pi stock rendering or both version shapes.
Testing
I ran the two affected Pi test files. The branch-extension suite passed, but it uses stub Pi packages, so it does not exercise real Pi 1.0 rendering. The Calm suite skipped the real-Pi stock-render and e2e checks because
piand@earendil-works/pi-coding-agentare not installed. Installing them would be a global npm install, which the workspace rules forbid, and a local npm install attempt was abandoned and cleaned up. Neither reported CI failure (serial 2 and serial 4) could be reproduced or confirmed fixed here. No evidence artifacts were produced.npm install @earendil-works/pi-coding-agentin the repo (the CI step does this globally) and re-run the t…pibinary is not on PATH, so the e2e launch with--tui-mode regularcould not run. Install Pi 1.0 and re-run the test.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
npm install @earendil-works/pi-coding-agentin the repo (the CI step does this globally) and re-run the t…pibinary is not on PATH, so the e2e launch with--tui-mode regularcould not run. Install Pi 1.0 and re-run the test.bash tests/fm-pi-branch-extension.test.sh(all checks ran and passed against its stub Pi packages)bash tests/fm-calm-pi-extension.test.sh(Pi-dependent checks skipped: package and pi binary not found)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.