Repository navigation
fix(spawn): remove hardcoded 'genie' default from --team #1154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ export function registerAgentSpawn(parent: Command): void { | |
| .command('spawn <name>') | ||
| .description('Spawn a new agent by name (resolves from directory or built-ins)') | ||
| .option('--provider <provider>', 'Provider: claude, codex, or claude-sdk') | ||
| .option('--team <team>', 'Team name', process.env.GENIE_TEAM ?? 'genie') | ||
| .option('--team <team>', 'Team name') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This change removes the implicit Useful? React with 👍 / 👎. |
||
| .option('--model <model>', 'Model override (e.g., sonnet, opus)') | ||
| .option('--skill <skill>', 'Skill to load (optional)') | ||
| .option('--layout <layout>', 'Layout mode: mosaic (default) or vertical') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the default value here means
options.teamwill beundefinedwhen the flag is not provided. However, theSpawnOptionsinterface insrc/term-commands/agents.ts(which is used to type theoptionsargument in the action handler on line 43) currently definesteamas a requiredstring. This will likely cause a TypeScript compilation error ifstrictNullChecksis enabled. Please update theSpawnOptionsinterface toteam?: string;to reflect that this property is now optional.