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
4 changes: 4 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Bump @relayfile/local-mount 0.7.19 → 0.7.24 and include mount setup timing/file-count metrics in the sandbox ready line when available.

## [3.0.14] - 2026-05-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@agentworkforce/persona-kit": "workspace:*",
"@agentworkforce/workload-router": "workspace:*",
"@relayburn/sdk": "^2.5.2",
"@relayfile/local-mount": "^0.7.19",
"@relayfile/local-mount": "^0.7.24",
"ora": "^9.4.0"
},
"repository": {
Expand Down
30 changes: 30 additions & 0 deletions packages/cli/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
buildSidecarBody,
configureGitForMount,
decideCleanMode,
formatSandboxMountReadyMessage,
loadSidecarForSelection,
parseAgentArgs,
parseInstallArgs,
Expand Down Expand Up @@ -402,6 +403,35 @@ test('decideCleanMode: codex defaults to mount (parity with claude/opencode)', (
assert.deepEqual(decideCleanMode('codex', true), { useClean: false });
});

test('formatSandboxMountReadyMessage: appends mount metrics when available', () => {
assert.equal(
formatSandboxMountReadyMessage('/tmp/mount', {
initialMountDurationMs: 123,
initialFileCount: 456
}),
'Sandbox mount ready (123ms, 456 files) → /tmp/mount'
);
});

test('formatSandboxMountReadyMessage: omits metrics when linked against an older mount handle', () => {
assert.equal(
formatSandboxMountReadyMessage('/tmp/mount', {
initialMountDurationMs: 123
}),
'Sandbox mount ready → /tmp/mount'
);
assert.equal(
formatSandboxMountReadyMessage('/tmp/mount', {
initialFileCount: 456
}),
'Sandbox mount ready → /tmp/mount'
);
assert.equal(
formatSandboxMountReadyMessage('/tmp/mount', {}),
'Sandbox mount ready → /tmp/mount'
);
});

test('stripAgentFlag: removes --agent <name> pair preserving surrounding args', () => {
// Degrade path: when the CLI cannot materialize opencode.json (non-mount
// --install-in-repo), it strips the --agent selector so opencode launches
Expand Down
13 changes: 12 additions & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,17 @@ export function decideCleanMode(
return { useClean: false };
}

export function formatSandboxMountReadyMessage(
mountDir: string,
handle: { initialMountDurationMs?: number; initialFileCount?: number }
): string {
const mountStats =
handle.initialMountDurationMs !== undefined && handle.initialFileCount !== undefined
? ` (${handle.initialMountDurationMs}ms, ${handle.initialFileCount} files)`
: '';
return `Sandbox mount ready${mountStats} → ${mountDir}`;
}

/**
* Persona authoring dry-run. Used by persona authors to verify a persona
* actually launches before it ships, without spawning the harness or
Expand Down Expand Up @@ -1955,7 +1966,7 @@ async function runInteractive(
// Stop the setup spinner before spawning the child — the child
// inherits stdio and would otherwise interleave its output with
// spinner frames.
setupSpinner?.succeed(`Sandbox mount ready → ${mountDir}`);
setupSpinner?.succeed(formatSandboxMountReadyMessage(mountDir, handle));
setupSpinner = undefined;

const childEnv = resolvedEnv ? { ...process.env, ...resolvedEnv } : process.env;
Expand Down
4 changes: 4 additions & 0 deletions packages/persona-kit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Dependencies

- Bump @relayfile/local-mount 0.7.19 → 0.7.24.

## [3.0.14] - 2026-05-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/persona-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lint": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@relayfile/local-mount": "^0.7.19"
"@relayfile/local-mount": "^0.7.24"
},
"devDependencies": {
"ts-json-schema-generator": "^2.3.0"
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading