Repository navigation
Support Paseo 0.15.3 and require Paseo 0.15.0 - #93
Merged
Merged
Conversation
Paseo 0.14 releases a session after an idle hour unless the provider vetoes it. The plugin shows ZCode's background Bash and subagents as tool calls, so Paseo's own checks cannot see them, and closing a session stops its Server. Advertise session.can_stop_runtime and keep the runtime while ZCode's V4 state has foreground work, input, interactions, commands, running background work or subagents, or an active or verifying goal. resultPending is not counted: ZCode keeps it after delivering the result. - Pin the development SDKs to 0.15.3 and CI's upstream checkout to v0.15.3. - Raise requirements.paseo to >=0.15.0 and drop the fallbacks for older daemons; read copyText from @getpaseo/plugin/client/ui. - test:upstream loads the compiler worker's own modules, checks the daemon's requirement check and the veto through the real adapter. - test:stdio-runtime checks the veto with a background Bash and resuming a conversation interrupted by a Server SIGKILL.
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.
Closes #89
Closes #88
Closes #87
Closes #85
Closes #82
Closes #81
Closes #80
Closes #79
Closes #78
Closes #77
Closes #76
Closes #75
Closes #69
Problem
run_in_backgroundwas killed after an hour without Paseo-visible activity.test:upstreamno longer ran: Paseo 0.15 compiles and prepares plugins in a worker that a bundledcompiler.tscannot locate, and the adapter now bundles CommonJSwhich.copyTextfrom@getpaseo/plugin/client/react-native, deprecated in 0.13.Changes
Idle runtime veto (ADR 25)
session.openedadvertisesession.can_stop_runtime. The answer is asession.can_stop_runtimeevent, neverrequest.completed; an unknown session getsrequest.failed, which also keeps the runtime.canStopistrueonly when, in ZCode's V4 state, there is no Paseo run, no pending admission, an idle conversation, no pending interactions or commands, norunningbackground work, no running subagents, and noactiveorverifyinggoal.resultPendingis not counted. On 3c5b227,product-projection.ts(onBackgroundTaskLifecycle) never removes the entry, and on the managed runtime it stayedresultPendingafter the turn that delivered the result. Counting it would keep any session that once used a background command forever. This matches ZCode's ownhasBackgroundWork(runningonly).session.openwith Paseo's saved mode and settings, so ADR 14's guarantee is unchanged.Minimum Paseo 0.15.0
requirements.paseois>=0.15.0. The SDKs are pinned to 0.15.3, and CI checks outv0.15.3(d91ae13). The Paseo release monitor reads the SDK version, so it now starts from 0.15.3.openExternalUrl,getPaseoClientandcopyTextfrom@getpaseo/plugin/client/uidirectly.Checks
test:upstreamloads the worker's own modules (compiler-build.ts,preparation-build.ts) and compiles withcompileDirectoryPlugin, as the daemon does. It also checks that:client/react-native;canStopRuntime()follows a running background work.test:stdio-runtimeadds two real-runtime checks:run_in_backgroundsleep 3keeps the runtime and releases it after the turn that delivers its result;Resume working.completes.Reviewed, no change
usageSession(), so a ZCode agent's popover shows no usage. Events beforesession.readyare not re-sent to subscribers.Verification (Linux x64, Node.js 26.8.1)
typecheck,npm test(24 files, 234 tests),build,format:check,check:zcode-source(124 files) andcheck:zcode-patchespass.test:upstreamagainst Paseov0.15.3. Every check passed, includingpaseoRequirementandidleRuntimeVeto, for both Git preparations (NODE_ENVunset andproduction) and the npm installation.XDG_DATA_HOME).test:stdio-runtimepassed every check, including the two new ones.@getpaseo/cli@0.15.3ran from a temporary prefix with a temporary home, loopback only and relay and MCP disabled.Not verified