Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/provider-pi/src/server/mcpInjection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ describe("pi T3 MCP injection", () => {
environment: {},
mcpSession,
extensionPath: "/tmp/cache/pi-t3-mcp-extension.ts",
sessionPath: "/fake/persisted.jsonl",
ephemeral: true,
disableExtensions: true,
disableTools: true,
Expand Down
7 changes: 6 additions & 1 deletion packages/provider-pi/src/server/mcpInjection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export function buildPiRpcLaunch(input: {
readonly environment: NodeJS.ProcessEnv;
readonly mcpSession: McpProviderSessionConfig | undefined;
readonly extensionPath: string | undefined;
readonly sessionPath?: string | undefined;
readonly ephemeral?: boolean;
readonly disableExtensions?: boolean;
readonly disableTools?: boolean;
Expand All @@ -265,7 +266,11 @@ export function buildPiRpcLaunch(input: {
const args = [
"--mode",
"rpc",
...(input.ephemeral === true ? ["--no-session"] : []),
...(input.ephemeral === true
? ["--no-session"]
: input.sessionPath !== undefined
? ["--session", input.sessionPath]
: []),
...launchArgs,
// Restrictions follow user launch args so a configured --tools or
// --extension cannot silently re-enable unattended text-generation code.
Expand Down
Loading