Repository navigation
pi-python v0.6.0
This release makes zypi ask the Python agent for sessions, and it adds an optional package that connects MCP servers. Changed says how --continue, --resume and --session-id work now, and that a session in which nobody typed has no file. pi-mcp-py (Added) connects the MCP servers that an editor such as Zed passes to the agent; without it, the agent still has no MCP client. Fixed has the Zed thread that did not open again after a restart. Removed lists the TUI code that read session files, and other dead code. Known issues says what does not work yet. Changed also has the new version numbers: the extension packages need the new core.
Added
- Tools that find tests which share process-wide state, and a helper that keeps such a test apart (TUI tests):
scripts/tui_envspy/andin_own_process. All tests of one Rust test binary run as threads of one process, so they share the environment variables, the working directory and everystatic. The vendored tests were written forcargo nextest(one process per test), so their locks are partial, and a test that changes such state can break another test in some runs only.envspy.shrunscargo testwith anLD_PRELOADshim overgetenv,setenv,unsetenv,putenvandchdir, andanalyze.pylists the tests that change a variable while another test runs, leave it changed, or read what another test has changed.stress.shruns the lib tests of one package many times, each time in a random order (--shuffle-seed, so a failing run can be repeated) and with many test threads. It can also run a few named tests (a suspect pair, or a victim beside all tests of one module), and withENVSPY_TAGit runs the tests through the spy. Linux only. 10 newpytesttests cover the analyzer.crate::test_util::in_own_process(|| { … })inpi-pagerruns the body of a test in a child process (the same test binary,--exact, one test thread), and the test fails when the child fails; 57 tests use it, directly or throughwith_rtl_bidi,with_theme_test_envandwith_test_env, and 2 new tests check it. The README ofscripts/tui_envspy/has the rules for a test that changes process-wide state, and what the tools do not find. Numbers: section 3.4 ofdocs/baselines/tui.md. - Extensions can take over the MCP servers a client passes, tell the user something, and hold a turn back (
pi-agent-core,pi-agent-harness,pi-agent-cli): the agent still has no MCP client, and it still does not readmcp.json. What a client passes inmcp_serversnow goes to the harness as data:ClientMcpServer(name,transport,command,args,env,url,headers; itsreprshows onlynameandtransport, because the other fields can hold tokens),AgentHarness.set_client_mcp_servers()(before the extensions load), andExtensionAPI.client_mcp_serverswithclaim_client_mcp_servers(names). Three general entry points come with it.ExtensionAPI.notify(text)shows one line to the user (aNoticeEvent, which is an agent message in ACP; the model does not see it, the session does not save it, and the agent holds it until the client knows the session).ExtensionAPI.register_cleanup(callback)is the public name of what the bridge already had.ExtensionAPI.add_turn_barrier(wait)makes the harness awaitwaitbefore it builds the tool list of a turn;session/cancel, closing the session and opening it again end that wait in the CLI.initializesays that the agent takeshttpandsseMCP servers only when thepi-mcpextension entry point is installed. The extension that uses these entry points ispi-mcp-py(next entry). Design:docs/specs/2026-10-23-mcp-extension-design.md. pi-mcp-py: an optional extension that connects the MCP servers an ACP client passes (new packagepackages/pi-mcp, version 0.1.0): an editor such as Zed passes its MCP servers insession/new. With this package installed, the agent connects them (stdio, Streamable HTTP and SSE) and gives their tools to the model. The core, the harness and the CLI still have no MCP client, and the agent still reads nomcp.json; the extension takes the servers frompi.client_mcp_serversand claims them, so the notice "its tools are not available" does not appear. Without the package, nothing changes. Tools: each tool is namedmcp__<server>__<tool>(letters, digits,_and-; at most 64 characters, cut with a hash; a repeated name gets_2,_3). The prefix is needed: a tool of an extension that has the name of a built-in tool replaces it, and an MCP tool namedbashwould take overbash. The permission modeaskasks about every MCP tool call unless the server declares the tool harmless (readOnlyHint, or neither destructive nor open-world), as for all tools. A result is text; text over 50 KB is cut with a note, a result with onlystructuredContentis sent as JSON text, and an MCP error result becomes an error tool result. One task for each server: the MCP SDK usesanyiocancel scopes, which must end in the task that began them.session_startstarts the servers and returns at once; a turn waits at most 10 s for servers that are still starting (session/cancelends the wait) and then goes on without them. A server that is slower sends one notice, and its tools join in a later turn. Limits (environment variables):PI_MCP_STARTUP_TIMEOUT(60 s) andPI_MCP_CALL_TIMEOUT(120 s); a call also ends when the user cancels the turn. When a server stops: the user gets one notice for each server and kind of event (did not start, stopped, cannot reconnect), and a good start gets none, so a thread without MCP trouble stays blank. The next tool call connects the server again, at most 3 times in a row (a call that gets an answer starts the count again). A call that was already sent when the server died is not repeated, because the server may have run it./mcplists the servers (name, transport, state, number of tools), and/mcp reconnect <name>connects one again with no limit. Secrets:env,headers,argsandurlhold tokens. Notices,/mcp, errors and logs show only the server name, the name of the executable, or the host; the values ofenv, the values ofheadersand the URL are masked in error text. Environment of a stdio server: the default list of the MCP SDK, the proxy, certificate, locale and time zone variables, and theenvof the client.${VAR}is not expanded (langchain-mcp-adapterswould expand it from the environment of the agent, which has the LLM key, so the extension starts stdio servers itself), and the keys of the LLM provider are not passed. stderr of a server goes to<home>/logs/mcp/<name>.log, not to the stderr of the agent, where a full pipe would stop it. Servers on this machine are reached without the proxy of the system:httpxreads the proxy settings of Windows and does not skip loopback addresses. End: when the session closes, each server gets its stdin closed first, and then its process tree is stopped; a test checks that no process stays, on Windows and on Linux. Not supported: OAuth (it works only if the editor passes a token inheaders; not verified), MCP resources, prompts, sampling and elicitation, a server shared by two sessions (each session starts its own), and a configuration file. A legacy SSE server whose POST fails ends a call only with the call timeout (the SDK hides the error). Limits of the package: it needspi-agent-core-lc0.6.0 or later; an older core makes it log a warning and do nothing. TheReleaseworkflow installs the package for its pre-release tests and builds it with the other packages, so the upload to PyPI has it (pip install pi-mcp-py). Tests: 192 inpackages/pi-mcp/testswith real child processes (stdio, HTTP, SSE), the realAgentHarness, and the realPiAcpAgentover ACP, run on Windows and WSL. Design:docs/specs/2026-10-23-mcp-extension-design.md.
Changed
zypi --continue,--resumeand--session-idask the agent which session is meant (TUI):zypiused to look for the session in the session files of the old Rust agent. The Python agent writes another layout, so--resume <title>found no session, an unknown id failed only after the UI had started, a used--session-idleft the UI open withSession creation failed: Invalid params, and--continuetook the session that was created last (the first of the Known issues of 0.5.0). Nowzypistarts the agent first and then asks it over ACP, withsession/list(page after page) andsession/load. It reads no session file for this. A session that does not exist ends the run before the event loop starts: the terminal is restored, the agent is stopped, the message is printed, and the exit status is 1. Behaviour changes:--continueand--resumewithout a value take the session of this directory with the latest activity (the time of its last write), not the one that was created last.--resume <id>finds the id in every directory and loads the session in the directory it belongs to.--resume <title>matches the title, which is the first message of the session, among the sessions of this directory, without regard to letter case and to spaces at the ends; two sessions with the same title are an error that lists their ids and last activity.--session-id <id>reads every page of the session list and refuses an id that any session has (Session ID <id> is already in use., exit status 1); that costs one pass through the list (scripts/session_list_bench.pyprints it aswalk all), and an agent that offers nosession/listskips the check and refuses a used id itself. The lookup stops after 30 s, the limit of the connect (GROK_CONNECT_UI_TIMEOUT_SECS). A session in which nobody typed has no file now, so--continuecannot take it (see the next entry). Not solved, and left as it is: the agent lists its session directory again for each page, so reading all pages costs pages × directory size, which grows faster than the number of sessions.scripts/session_list_bench.py(median of 3, Linux / Windows):--session-idtakes 1.3 s / 1.8 s at 1,000 sessions and 28 s / 34 s at 5,000, which is over the 30 s limit on Windows;--continuetakes 0.6 s / 0.8 s at 1,000 and 10 s / 12 s at 5,000. The owner decided that this is fine below 1,000 sessions (plan decision 18). Tests: 25 unit tests of the lookup against a scripted agent, 4 of the time limit and of a cancel, 3 end-to-end tests against the real agent, andscripts/tui_pty/resume_matrix.py --strict(13 of 13 pass; cases 5 and 11 were known gaps, and case 8 now needs exit status 1).- The agent writes the file of a session with its first message (
pi-agent-cli,pi-agent-harness): the agent used to write the file of a session when it answeredsession/new. A run in which nobody typed a message left a file with the title(no messages). That file stayed in the/resumelist, andzypi --continuetook it when it was the latest session of the directory. Nowsession/newmakes the session in memory only. The file is written with the first message of the user, in one write: the header, the entries that were made before the message (for example a model change), and the message. A session in which nobody typed has no file.session/listdoes not show it.session/loadandsession/resumeopen its id again, empty (see the entry in Fixed). A client that has the session open can keep using it. Behaviour changes:zypiwith no flag starts no session until the first message;zypi --session-id <id>and/newstart one at once, with no file. An id that a client chose (_meta.sessionId) stays reserved while its session is open in the agent, so a secondsession/newwith that id is refused (invalid_params) although no file has it. If another agent process saves a session with that id first, the first prompt of the session is refused (a session with this id already exists). This narrows the gap between two agent processes. It does not close it. Files that earlier versions wrote keep the title(no messages). For library users:JsonlSessionRepo.create({"deferred": True})returns aDeferredJsonlSessionStorage, and itswrittenproperty says whether the file exists.createwithoutdeferred, andfork, write at once as before. Tests: 10 for the storage (what is written and in which order, a failed write and its retry, two first messages at once), 6 new ones for the agent (the ACP contract and the chosen ids), and the older tests that expect a session in the list now send a message first.scripts/tui_pty/resume_matrix.py --stricthas 16 cases (13 before). Two of the three new ones fail against an agent that writes at once:--session-idand/new, each left with no message. The third types a message after/new. - A resumed session no longer takes the sandbox profile it was created with (TUI): the old Rust agent saved the sandbox profile in the files of a session.
zypi --continueand--resumeread it back before the sandbox was applied, so a resumed session kept its sandbox, and--sandbox Xon a session that was saved withYwas refused (cannot resume this session under sandbox profile ...). The Python agent never saved a profile, so for its sessions nothing changes. The profile now comes from--sandbox, fromGROK_SANDBOXand from the configuration, as it does for a new session. The code that read it is gone (decision 2 of the plan). TUI CIandscripts/tui_baseline.pyrun the Rust tests withcargo nextest(TUI):cargo nextestruns each test in a process of its own.cargo testruns all tests of a test binary as threads of one process, where they share the environment variables, the working directory and everystatic. The vendored tests were written for nextest, and some of them are reliable only under it. So the failures of this class cannot occur in CI now, also for a test that someone writes later.scripts/tui_baseline.tomlhas[test] runner = "nextest", and the option--runner cargotakes libtest back. The runner reads the output of nextest (theSummaryline, and the list of the tests that did not pass), so CI installs a pinned version (nextest@0.9.148, withtaiki-e/install-action); the job is now namedcargo nextest (Linux x86_64). Three differences to know. nextest counts the#[ignore]tests and the tests that a--skipfilter removes together as skipped (22 for the whole list, wherecargo testprinted 21 ignored). nextest does not run doctests, and these suites never ran them (the runner selects explicit--lib,--testand--bintargets). A suite that hangs is stopped with SIGTERM first and with SIGKILL after 20 s: nextest puts each test in a process group of its own, so SIGKILL alone left the hanging test running. 21 newpytesttests cover the parser, the commands, the choice of the runner and the stop signals. CI result: the first run of the whole tree under nextest passed: 8,490 passed, 0 failed, 22 skipped, and every suite equals its reference number (the 14 tests ofpython_agent_e2eran too). The tests take about 130 s (theSummarytimes of nextest, added up), wherecargo testtook about 65 s for the same code. The job took 36 min 17 s, against 33 min 56 s for acargo testjob that started 4 minutes earlier. The time of the job varies from 17 to 34 min between runs ofcargo test, so the added test time (about 65 s) is the cost that this change causes.- The notice about MCP servers names only the servers that nobody took over (
pi-agent-cli): it said "This agent does not connect to MCP servers, so the 1 MCP server the client passed (...) were ignored", which was wrong in number, and it counted every server. Now it says "The client passed 1 MCP server (...). This agent does not connect to MCP servers by itself, so its tools are not available in this session. To use it, install the pi-mcp-py package.", with "it" and "its" for one server and "them" and "their" for more. When thepi-mcpentry point is installed but no extension claimed a server, the notice says that no extension took the server over, and it does not tell the user to install anything. The log line is the same as before (names only). The 0.5.0 notes call the decision "a Phase 4 non-goal". Phase 4 did not discuss MCP; the decision is from Phase 6. HarnessBridgehas four more members (pi-agent-core):client_mcp_servers,claim_client_mcp_servers,notifyandadd_turn_barrier.HarnessBridgeis a runtime-checkable protocol, so a custom bridge (a test double, say) must add them to passisinstance.AgentHarnessis the only bridge in this repository.- New version numbers (all Python packages, TUI):
pi-agent-core-lc,pi-agent-harness-lcandpi-agent-cli-lcgo from 0.5.0 to 0.6.0. The three pin each other with==, so install them at one version.zypi --versionand theagentInfoof the agent show 0.6.0 (theCargo.tomlfiles ofpi-pager-binandpi-versionandtui/Cargo.lockcarry the version ofpi-agent-cli-lc, and a test checks it). The extension packages are released with the core, so all four now requirepi-agent-core-lc>=0.6.0, andpi-dynamic-workflows-pyalso requirespi-agent-harness-lc>=0.6.0.pi-web-access-py,pi-goal-x-pyandpi-dynamic-workflows-pygo from 0.2.0 to 0.3.0. Their code has not changed since 0.2.0; only the requirement is new. The publish step skips a version that is on PyPI already, so a new requirement needs a new version number.pi-mcp-pyis new and stays at 0.1.0.
Removed
- The code in the TUI that read session files:
materialize_startupand its helpers, the pin of--resume <title>before the sandbox (pin_local_resume_target), the saved sandbox profile (SandboxStartup,saved_resume_profile), the check that a--session-idis free beforesession/new, the first-prompt fallback of the resume picker (it readchat_history.jsonl), the check of the session files in the picker's load, and the read of<home>/sessions/.../plan.mdfor the plan preview.scripts/tui_baseline.py gateshas a new gate (gates.session_disk_reads): it fails when production code inpi-pagerorpi-pager-bincalls the readers of the session store again. - The session store of
pi-shell, and the code that only it used (TUI):pi-shellstill held the code that wrote and read the session files of the old Rust agent (session::storageandsession::persistence). Since the change above, no code inzypicalls it. It is deleted. The code that only it used goes with it: the session signals, the plan-mode snapshot, the announcement state, the state types of goals and workflows, the wire tags for replay, the image checks of the load path,fork_filter_chat, and the tests of all of these. The compiler found this second group: after the first deletion it gave 41dead_codewarnings, and the ceiling is 0. Two helpers that clean a session title stay, because the pager uses them (session::title, with 8 unit tests). 14,166 lines go and 190 come, in 53 files undertui/. No behaviour changes. One test attribute changes (the consent test ofpi-shelltakes the defaultserialkey, like the other tests that setGROK_HOME): two tests used different keys, so they could run at the same time, and thesession::worktreetest then failed with a SQLite I/O error. That race was already inc74cc18; after the deletion it showed in every full run of the suite. The tests ofpi-shellgo from 1,056 to 864, and the sum ofreference_passedinscripts/tui_baseline.tomlfrom 8,706 to 8,514.[storage] cleanup_ttl_dayswas left in that change (nothing read it any more); the next entry takes it out.gates.session_disk_readsstays, as a guard against writing the store back. - More dead code, ten unused dependencies, and the
[storage]setting ofpi-shell(TUI): the deletion above left more behind. The goal prompt templates and the research scriptdeep_research.rhaiare gone (15 files): no code has loaded them since the Rust agent runtime was removed in 0.5.0, and the compiler cannot see a file that noinclude_str!names. The modulessession::helpers,session::worktreeandutil::config::worktreeare gone: nothing inzypireaches them. The[storage]section of the configuration is gone:cleanup_ttl_dayscleaned the old session files, and nothing reads it. Aconfig.tomlthat still has a[storage]section loads as before, and the section is reported as an unrecognized key, like any other unknown section. Ten dependencies ofpi-shellthat no source file names are removed:urlencoding,base64,pi-fast-worktree,pi-compaction-transcript,pi-workflow,tdigests,nix, and the test dependenciespretty_assertions,pi-test-utilsandtokio-util. The dependency graph ofzypigoes from 980 to 970 packages on Linux, andTHIRD-PARTY-NOTICESloses five entries (rhai,rhai_codegen,smartstring,tdigests,thin-vec). 1,644 lines go and 13 come, in 28 files undertui/. No behaviour changes. The tests ofpi-shellgo from 864 to 838 (27 tests go with the deleted code, and one is new). The ceilings inscripts/tui_baseline.tomlgo down with the code:leader245 to 243,x.ai304 to 297, the dependency graph 980 to 970, and the sum ofreference_passed8,514 to 8,488.pi-workflowis still a member of the workspace, but no other crate depends on it now.
Fixed
- TUI tests that failed in some runs, and five that left environment variables changed: stress runs (random order, 32 test threads) found 19 tests of
pi-shellandpi-pagerthat fail in some runs, and 5 tests that leave environment variables changed. All are fixed in the tests. No product code changes. Four causes were defects of the tests. Two locks that do not keep each other out protectedGROK_SUBAGENTS(config::tests::subagents_config_models_with_env_var_enables); the locks are now shared. A test that does not hold the lock of the process-wide trace sink wrote a line into it (memory_trace::tests::sample_events_are_valid_jsonl_and_rotate); the test now checks the sample lines only. A child process that another test forks keeps a copy of the lock's file descriptor until it callsexec, so the lock was still busy after the guard dropped (auth::manager::lock::tests::dropping_the_guard_silences_the_heartbeat_before_anyone_else_can_hold_the_lock); the test now retries for up to 5 s (a fork-storm experiment: 363 of 1,500 rounds busy with a forking test beside it, 0 of 1,500 without). Fourpersist_permission_mode_*tests andtrust_folder_grants_and_resolvessetGROK_HOME(the last oneGROK_TEST_VERSIONtoo) and did not put the old value back, so the later tests of the process read a deleted directory or saw a simulated release build (the spy counted about 12,900 such reads in one run); they put the values back now. The other 16 tests failed because of process-widestatics: the colour level and the native palette, the minimal-mode flag, the bidi latch, the embedded-modal flag, the voice gate and the theme. Hundreds of tests read these without a lock, so a lock cannot keep a writer away from them. The 57 tests that change them now run in a process of their own (in_own_process). Failed runs of the lib tests ofpi-pager(random order, 32 test threads): 6 of 32 before, 0 of 60 after, and 0 of 32 with new seeds;pi-shell: 2 of 20 before, 0 of 20 after. Not explained:blank_quote_line_survives_drag_copy_as_blankfailed once andcommand_palette_search_bar_cursor_only_when_focusedfailed in 1 of 60 runs; neither failed again after the change (the second one probably reads the vim-mode setting that 15 tests write). About 140 tests write other settings of the appearance cache (set_show_thinking_blocks,set_group_tool_verbsand others). They are not isolated, and no test is known to fail because of them. The sum ofreference_passedis 8,490 (it was 8,488; the two new tests checkin_own_process). - The release workflow no longer fails at
Install protocwhen the GitHub API limit is used up (CI):arduino/setup-protoc@v3asks the GitHub API which version of protoc to install. The two steps inrelease.ymldid not passrepo-token, so these requests were not logged in, and the macOS runners share their outgoing address with many other jobs. In the run forv0.5.0the macOS arm64 build stopped at this step two times (API rate limit exceeded) and passed at the third try. Both steps now passrepo-token: ${{ secrets.GITHUB_TOKEN }}, as the three steps intui-ci.ymlalready did. No file that a release ships changes. cargorebuiltpi-tools-apiin every run whenprotocwas onPATH(TUI build):find_protoc()inpi-proto-buildreturned the bare nameprotoc, and the build script ofpi-tools-apiprinted it ascargo:rerun-if-changed=protoc. That path is not a file in the package directory, and cargo treats a path that does not exist as changed in every run (stale: missing ".../pi-tools-api/protoc"). So eachcargorun started the build script again and rebuiltpi-tools-api, and then the crates above it. CI hasprotoconPATH(arduino/setup-protoc) and noPROTOCvariable, so CI had the fault. APROTOCvariable with an absolute path hid it, so a developer who sets it did not see it.find_protoc()now looks for the file in the directories ofPATHand returns its absolute path (the first file with an execute bit that runs). WSL2,protoconPATH,PROTOCunset, nothing changed between the runs: the thirdcargo check -p pi-tools-apicompiledpi-tools-apiagain before the change (2.2 s), and prints onlyFinishedafter it (0.3 s). The file that the build script generates is byte for byte the same (sha256). The gain inTUI CIis small. TheGates + cargo checkjob runs twocargocommands with the same packages: it compiledpi-tools-apitwice before this change and once after it (the job took 3 min 17 s; 3 min 19 s to 4 min 27 s in the runs for #28). Thecargo testjob runs onecargocommand for each suite, and each command builds the dependencies with the features of its own packages. Sopi-tools-apiis compiled once in each of the 7 suites that use it, with or without this change (pi-shell4 times andpi-pager3 times in all; the same suites before and after), and that job took 22 min 08 s (22 min 04 s to 22 min 43 s in the runs for #28). One difference: for aprotocthat is found onPATH,pi-proto-buildnow also passes-I<prefix>/includetoprotoc(the directory next to thebindirectory ofprotoc, if it exists), as it already did for an absolutePROTOC. 8 new unit tests; the regression test fails with the old code (`protoc` is not a file).- A thread in which nobody typed opens again after Zed restarts (
pi-agent-cli): Zed showed Failed to Launch withResource not found: { "uri": "<session id>" }, and Retry failed in the same way. A session in which nobody typed has no file (see Changed). Zed saves the id of every thread that shows something, and a notice of the agent counts: for example the notice that the MCP servers of the client were ignored, or the question about the project. When Zed starts again, it asks for the thread withsession/load, and the agent answeredresource_not_found. The same error came when Zed opened such a thread from its history, also while the agent still had it open (checked with Zed 1.25.2). Nowsession/loadandsession/resumeopen the id as an empty session when no file has it. This applies to an id of the agent's own kind: a UUID in lower case, with hyphens. The session has no file until its first message, andsession/listdoes not show it. Any other id (for exampleno-such-session, or a UUID in capital letters) is stillresource_not_found. A session that is open in the same process stays as it is. Behaviour changes: (1) A UUID that no session ever had also opens, empty, because the agent cannot tell it from the id of a blank session.zypi export <uuid>of such an id now says that the session "has no conversation content to export", and not "not found". (2) A blank session that a client opens again keeps its id taken, like a chosen id, until the session is closed. When another agent process saved the session first, the first message of this process is refused (a session with this id already exists). The limit of the check for chosen ids holds here too: two agent processes on one home are not fully covered. In particular, the process that made the session does not look at the first message, because that look costs a directory listing for every session (0.07 s at 1,000 sessions, 0.3 s at 5,000). The case needs a client that holds the same blank thread in two agent processes at the same time. Tests:test_blank_session_reopen.py(restart, resume, the directory of the client, a session that is open or closed, ids of other kinds, a second process, a failed open) and 2 new tests over stdio intest_acp_stdio_contract.py. They fail against the old agent, except those that pin what did not change (ids of other kinds, a session that has a file). Each of two one-line changes of the new code (take any id; do not recognise a session that is already open) is caught by a test. - A session that the client opened again left its old harness running (
pi-agent-cli):session/loadorsession/resumefor a session that is open already (Zed's Retry does it) built a new harness and dropped the old one withoutclose(). The cleanup callbacks of its extensions never ran, and what they had started (a running workflow, for example) went on._bind_sessionnow puts the new harness in place and closes the replaced one (close()stops its turn and runs the callbacks).
Known issues
- Some flags and settings have no effect: in the interactive UI,
--system-prompt-overrideand--rulesdo nothing, and--allowand--denydo not reach the agent.zypi --helpstill lists flags from the upstream project that nobody has checked one by one. On the settings page, the items other than the permission mode may have no effect with the Python agent.remember_tool_approvalsanddefault_selected_permissionwere not tested. [ui.status_line]has nocontextorcostitems with the Python agent: the agent does not tellzypithe size of the context window, the tokens in use or a cost, so these items stay empty, and a script gets nocontext_window.*,cost.total_cost_usd,workspace.branchorworkspace.repo_root. The rest of the row is drawn.- The user guide has no way to open it: the 7 pages are in the binary, but nothing in the UI opens them.
--session-idand--continueget slow with thousands of sessions (TUI,pi-agent-cli): the agent lists its session directory again for each page ofsession/list, so reading all pages costs pages × directory size.--session-idreads all pages. At 1,000 sessions it takes 1.3 s on Linux and 1.8 s on Windows. At 5,000 sessions it takes 28 s and 34 s, and the lookup stops after 30 s.--continuetakes 0.6 s and 0.8 s at 1,000 sessions, and 10 s and 12 s at 5,000. Below 1,000 sessions this is fine, and the owner decided to leave it (plan decision 18).- Two agent processes that use one home can still make two sessions with the same id (
pi-agent-cli): inside one agent process, an id that a client chose is reserved while its session is open, so a secondsession/newwith that id is refused. Two processes do not see each other's reservations. Both can make the session; the first to write its file wins, and the first message of the other is refused (a session with this id already exists). - An id that no session ever had also opens with
session/load(pi-agent-cli): the agent cannot tell such a UUID from the id of a blank session (a session with no file), so it opens an empty session.zypi export <uuid>of such an id says that the session has no conversation content, and not "not found". pi-mcp-pyis Alpha (0.1.0): it has no OAuth, MCP resources, prompts, sampling, roots, elicitation ortools/list_changed. The MCP SDK hides the error of a failed POST request of a legacy SSE server, so a call to a dead SSE server ends only after the call limit of 120 s. A thread that Zed creates before the first worktree of the project has loaded gets an emptymcpServerslist (zed#64611). The agent cannot tell this from "no servers", so such a thread has no MCP tools and no notice; a new thread works.zypihas no setting for MCP servers, so only an editor can pass them. The package takes theannotationsof a server as given: in theaskmode, a tool that its server marks as read-only runs without a question. Nobody has used the package in the real Zed window; its tests use real child processes, the real agent and ACP over stdio.- Tested on Linux only for the latest changes: the end-to-end and pseudo-terminal scripts run on Linux (WSL2); the tests of
pi-mcp-pyalso run on Windows. Nobody has started the macOS binary (CI builds it). There is no Windows binary. The Landlock layer of the sandbox was not tested: the kernel of the test machine (5.10) has none. - Open findings in the Python packages: the low-risk findings F7-02 to F7-09 of the Phase 6 and Phase 7 audit have no fix yet (small defects in the extension API, and notes for the specs). See
docs/AUDIT/AUDIT-PHASE6-PHASE7-2026-09-30.md, section 8.