Repository navigation
Closed
Labels
Description
Overview
The Pi extension and the OpenCode plugin's launched-session behaviour was merged and tested only over a fake CLI and the harnesses' published types. Neither harness was installed where it was built, so neither plugin has run in its real harness. This issue closes that.
Problem Statement
Three behaviours rest on harness APIs that could only be read, not exercised:
- Pi: its own bash tool is registered again with a
spawnHook(createBashToolDefinition) to setNODESPACE_WRITE_JOURNALand drop the launch variables. It is unconfirmed that registering a tool under the built-in name replaces Pi's bash tool, and that the hook's environment reaches the command. - OpenCode: the
shell.envhook blanksNODESPACE_SESSIONandNODESPACE_LAUNCHED_FORand sets the journal variable. It is unconfirmed whetheroutput.envis merged over the process environment or replaces it, and whether a blank launch variable is read by the CLI as no launch (clap may keep an emptyNODESPACE_SESSIONas a value). - Both harnesses' session ids, reported with
nodespace session report-harness-session, are unconfirmed against a real launched session.
Proposed Solution
Run each plugin once in its harness, following packages/skill/README.md ("The Pi extension and the OpenCode plugin", step 4), with NODESPACE_SESSION and NODESPACE_LAUNCHED_FOR set. Fix what the run shows, in this issue.
Acceptance Criteria
- In Pi, the agent knows the launched task without running a command, the session's
ai-chat-ptynode holds Pi's session id, and a write from a script (bash -c 'nodespace node update <id> ...') does not stop the session - In Pi, a command the agent runs has no
NODESPACE_SESSIONorNODESPACE_LAUNCHED_FORin its environment, and hasNODESPACE_WRITE_JOURNALset - The same three checks for OpenCode
- For OpenCode, state whether
shell.envmerges or replaces, and what a harness started from the agent's shell reports with the blanked variables; fix the plugin or the CLI if it reports an empty session id - The README says what was seen, and any limit it states that the run disproves is corrected
Related Issues
- Open launched Pi and OpenCode sessions with the launched task's context, report their harness session id, and attribute their writes through the CLI journal #3653 (the behaviour under test; its "run each plugin once in its harness" criterion was left open)
Non-Goals
- Pi's
shellPathandshellCommandPrefixsettings being dropped by the re-registered bash tool, and OpenCode's journal cleanup: both documented limits, not part of this check
Activity
malibio commentedon Oct 7, 2026
Frontend: 5863 passed (323 files)
Treat an empty NODESPACE_SESSION as no session; record the Pi and Ope…
Run the Pi and OpenCode plugins in their harnesses; refuse an empty N…