Skip to content

Commit 704ccd9

Browse files
committed
fix: add _i shorthand to internalKeys set
The _i shorthand for _interactive was missing from the internalKeys set, which could cause it to be incorrectly treated as a template variable.
1 parent 9cfea4a commit 704ccd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli-runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ export class CliRunner {
315315
}
316316

317317
// Extract _varname fields from frontmatter and match with --_varname CLI flags
318-
// Variables starting with _ are template variables (except internal keys like _interactive, _cwd, _subcommand)
319-
const internalKeys = new Set(["_interactive", "_cwd", "_subcommand"]);
318+
// Variables starting with _ are template variables (except internal keys)
319+
const internalKeys = new Set(["_interactive", "_i", "_cwd", "_subcommand"]);
320320
const namedVarFields = Object.keys(frontmatter).filter((k) => k.startsWith("_") && !internalKeys.has(k));
321321
for (const key of namedVarFields) {
322322
const defaultValue = frontmatter[key];

src/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class AgentRuntime {
325325

326326
// Extract _varname fields from frontmatter and match with --_varname CLI flags
327327
// Variables starting with _ are template variables (except internal keys)
328-
const internalKeys = new Set(["_interactive", "_cwd", "_subcommand"]);
328+
const internalKeys = new Set(["_interactive", "_i", "_cwd", "_subcommand"]);
329329
const namedVarFields = Object.keys(frontmatter)
330330
.filter(key => key.startsWith("_") && !internalKeys.has(key));
331331

0 commit comments

Comments
 (0)