Skip to content

Commit 87c17bb

Browse files
FL4TLiN3claude
andcommitted
fix: pass minRuntimeVersion through context and remove --run-id e2e test
- Include minRuntimeVersion in expert mapping in resolveRunContext so runtime version validation works correctly via the perstack CLI - Remove --run-id e2e test since perstack CLI doesn't have that option Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 53511a0 commit 87c17bb

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

e2e/perstack-cli/options.test.ts

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Tests CLI option handling in perstack:
55
* - --provider, --model
66
* - --max-steps, --max-retries, --timeout
7-
* - --job-id, --run-id, --env-path, --verbose
7+
* - --job-id, --env-path, --verbose
88
*
99
* TOML: e2e/experts/global-runtime.toml
1010
*/
@@ -146,31 +146,6 @@ describe.concurrent("CLI Options", () => {
146146
LLM_TIMEOUT,
147147
)
148148

149-
/** Verifies --run-id option is accepted. */
150-
it(
151-
"should accept --run-id option",
152-
async () => {
153-
const cmdResult = await runCli(
154-
[
155-
"run",
156-
"--config",
157-
GLOBAL_RUNTIME_CONFIG,
158-
"--run-id",
159-
"test-run-456",
160-
"e2e-global-runtime",
161-
"Say hello",
162-
],
163-
{ timeout: LLM_TIMEOUT },
164-
)
165-
const result = withEventParsing(cmdResult)
166-
expect(result.exitCode).toBe(0)
167-
expect(assertEventSequenceContains(result.events, ["startRun", "completeRun"]).passed).toBe(
168-
true,
169-
)
170-
},
171-
LLM_TIMEOUT,
172-
)
173-
174149
/** Verifies --env-path option is accepted. */
175150
it(
176151
"should accept --env-path option",

packages/tui/src/lib/context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export async function resolveRunContext(input: ResolveRunContextInput): Promise<
7171
{
7272
name,
7373
version: expert.version ?? "1.0.0",
74+
minRuntimeVersion: expert.minRuntimeVersion,
7475
description: expert.description,
7576
instruction: expert.instruction,
7677
skills: expert.skills,

0 commit comments

Comments
 (0)