Repository navigation
Keep the e2e suites working on pi 1.5 - #446
Merged
Merged
Conversation
pi now asks for project trust itself when a project has .pi/mcp.json, and pi-code rightly stays silent then, so e2e.sh's fixture, which wrote an empty .pi/mcp.json, never saw the "Trust this project?" prompt it checks for and stalled on pi's own question. The fixture now holds only .claude config, as its trust check assumes. Under pi's native MCP, /mcp opens pi's dialog, which stays open and took every later keystroke in e2e-full.sh, failing most of the run. The check now accepts pi's status line and backs out of the dialog. Prompts as /mcp__server__prompt commands only exist when pi-code connects the server, so that check is skipped under native MCP. example.com dropped its "Example Domain" heading, so the web_fetch check now fetches this repository's LICENSE at a pinned commit, whose text cannot change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sproott
added a commit
to sproott/pi-code
that referenced
this pull request
Nov 15, 2026
On Windows a shell the suite killed can still hold a handle under the per-file temp root when afterAll removes it, so the whole file fails with EBUSY (seen on the branches of ilovepixelart#427 and ilovepixelart#441, and on ilovepixelart#446). rmSync's maxRetries retries EBUSY with a growing delay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sproott
added a commit
to sproott/pi-code
that referenced
this pull request
Nov 15, 2026
On Windows a shell the suite killed can still hold a handle under the per-file temp root when afterAll removes it, so the whole file fails with EBUSY (seen on the branches of ilovepixelart#427 and ilovepixelart#441, and on ilovepixelart#446). rmSync's maxRetries retries EBUSY with a growing delay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
On pi 1.5.2, both tmux e2e suites fail before they test much of pi-code:
e2e.shwrites an empty.pi/mcp.jsoninto its fixture. pi now asks for project trust itself whenmcp.jsonexists, and pi-code doesn't ask a second time. So the "Trust this project?" check fails and the session sits on pi's own question. The fixture now holds only.claudeconfig, which is what the trust check's comment already describes.e2e-full.sh,/mcpunder pi's native MCP opens a dialog where the suite expected a notice. The dialog stays open and takes every later keystroke, so about 20 checks after it fail. The check now accepts pi'sconnected · 1 toolstatus and presses Escape until the dialog is gone.web_fetchcheck waited for "Example Domain", but example.com's page no longer has an<h1>: "Example Domain" now appears only in its<title>, and the Markdown conversion drops<head>. It now fetches this repo'sLICENSEat a pinned commit through raw.githubusercontent.com, whose bytes can't change, and waits for the copyright line.web_fetchrefuses loopback addresses, so a local fixture server isn't an option; HTML conversion is covered bytests/html-markdown.test.ts.mcp-promptstypes/mcp__e2e__greet, but under native MCP pi connects the server and prompt commands don't exist (docs/mcp.mdlists them as unavailable). The check failed 2 of 3 runs. The/mcpstep now records which mode is running, and the prompts check is skipped under native MCP with a note in the output.With these,
e2e.shpasses 7/7 ande2e-full.sh43/43, apart from the existing "known pi TUI interaction" warnings.scripts/e2e.shandscripts/e2e-full.shrun against pi 1.5.2🤖 Generated with Claude Code