resolveInitAgents sets agent flags via prompt if none were explicitly set.
(isTTY bool)
| 235 | |
| 236 | // resolveInitAgents sets agent flags via prompt if none were explicitly set. |
| 237 | func resolveInitAgents(isTTY bool) { |
| 238 | // If any agent flag is set, respect it |
| 239 | if projectInitClaude || projectInitGemini || projectInitCodex || projectInitNoAgent { |
| 240 | return |
| 241 | } |
| 242 | |
| 243 | if isTTY { |
| 244 | promptAgentSelection() |
| 245 | return |
| 246 | } |
| 247 | |
| 248 | // Non-TTY with no agent flags: default to Claude |
| 249 | projectInitClaude = true |
| 250 | } |
| 251 | |
| 252 | // promptAgentSelection shows a multi-select for agent configs. |
| 253 | func promptAgentSelection() { |
no test coverage detected