Repository navigation
test(pi): pin before_agent_start run without prompt - #7387
kunchenguid merged 1 commit into
Conversation
Ein Lauf, den sendCustomMessage startet, traegt eine Custom-Nachricht und keinen prompt. Das Lesen des prompt an dieser Stelle warf, womit jeder solche Lauf mit einem Fehler auftauchte statt zu starten. Die Verengung dagegen steht seit 8c9c67d im Zweig, ein Test, der sie benennt, fehlte: die einzige Abdeckung lag beilaeufig in einem Abbruch-Fall der Abwesenheits-Haltung und verschwindet mit ihm. Der neue Fall erweitert den bestehenden Mirror-Test und prueft, dass ein solcher Lauf weder wirft noch als Dialog gespiegelt wird. Gegenprobe: ohne die Verengung wirft genau dieser Fall mit "Cannot read properties of undefined (reading 'trim')".
|
The red check here isn't a test failure: |
|
Speaking as Kun's firstmate: thanks @thelad-dev, you're right. I reviewed the tip against main |
|
Speaking as Kun's firstmate: this is merged. Thank you @thelad-dev — really appreciate you taking the time on this. |
Intent
Der Regressionstest zum Aufsichtsfehler geht als Beitrag nach oben.
Der gemeldete Abbruch ist im Standardzweig seit 8c9c67d behoben; was oben fehlt, ist die Absicherung. Der Test ist fertig: data/branch-prompt-trim-20261015/regressionstest-0547e084.patch, 13 Zeilen in tests/fm-pi-branch-extension.test.sh. Diese eine Veroeffentlichung nach github.com/kunchenguid/firstmate ist ausdruecklich genehmigt.
Inhalt des genannten Patches, damit diese Absicht ohne ihn lesbar bleibt (Commit "test(pi): Lauf ohne prompt in before_agent_start festnageln"): Ein Lauf, den sendCustomMessage startet, traegt eine Custom-Nachricht und keinen prompt. Das Lesen des prompt an dieser Stelle warf, womit jeder solche Lauf mit einem Fehler auftauchte statt zu starten. Die Verengung dagegen steht seit 8c9c67d im Zweig, ein Test, der sie benennt, fehlte: die einzige Abdeckung lag beilaeufig in einem Abbruch-Fall der Abwesenheits-Haltung und verschwindet mit ihm. Der neue Fall erweitert den bestehenden Mirror-Test in tests/fm-pi-branch-extension.test.sh (test_branch_mirror_filters_order_and_cursor) und prueft, dass ein solcher Lauf weder wirft noch als Dialog gespiegelt wird. Gegenprobe: ohne die Verengung wirft genau dieser Fall mit "Cannot read properties of undefined (reading 'trim')".
What Changed
test_branch_mirror_filters_order_and_cursorintests/fm-pi-branch-extension.test.shwith abefore_agent_startcase for asendCustomMessage-style run that has a custom message and no prompt.Risk Assessment
✅ Low: Test-only change that exercises the already-landed custom-message narrowing via the public fire path, matches the stated intent, and introduces no production behavior.
Testing
Ran the targeted mirror test including the new sendCustomMessage-style custom/no-prompt case; it passed under the 8c9c67d narrowing. Removing only that narrowing in a fixture reproduced
Cannot read properties of undefined (reading 'trim'), matching the stated Gegenprobe. No product failure found.Evidence: Pass with fix: test_branch_mirror_filters_order_and_cursor
Source: Pass with fix: test_branch_mirror_filters_order_and_cursor
ok - dialog mirror filters tool and operational traffic, lands before wakes, and keeps a durable cursor === exit: 0 ===Evidence: Counterproof without narrowing reproduces trim crash
Source: Counterproof without narrowing reproduces trim crash
COUNTERPROOF_ERROR=Cannot read properties of undefined (reading 'trim') ok - counterproof: without narrowing, custom before_agent_start throws on prompt.trimEvidence: Combined regression e2e transcript (fix site, new test, pass, counterproof)
Source: Combined regression e2e transcript (fix site, new test, pass, counterproof)
Evidence: Evidence index for reviewers
Source: Evidence index for reviewers
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.
bashfocused runner oftests/fm-pi-branch-extension.test.sh→test_branch_mirror_filters_order_and_cursor(includes new custom/no-promptbefore_agent_startcase)Manual counterproof: same custombefore_agent_startpath against a fixture copy of.pi/extensions/fm-branch-supervision.tswith themessageType === "custom"early-return removed✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.