Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/term-commands/agent/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Removing the default value here means options.team will be undefined when the flag is not provided. However, the SpawnOptions interface in src/term-commands/agents.ts (which is used to type the options argument in the action handler on line 43) currently defines team as a required string. This will likely cause a TypeScript compilation error if strictNullChecks is enabled. Please update the SpawnOptions interface to team?: string; to reflect that this property is now optional.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Align genie spawn team default with agent spawn

This change removes the implicit genie team only for genie agent spawn, but the documented top-level alias still sets .option('--team <team>', 'Team name', process.env.GENIE_TEAM ?? 'genie') in src/genie.ts (the section labeled “Top-level aliases — shortcuts for genie agent ”). As a result, genie spawn <name> and genie agent spawn <name> now behave differently, and the current-window spawn path remains unreachable for users invoking the top-level command.

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')
Expand Down
Loading