mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 18:17:36 +00:00
[comment audit] Shorten CLI parsing and host-routing comments (#32265)
* chore: shorten process-host comments * chore: audit CLI parsing and host-routing comments * chore: remove stale host-selector restriction comment --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -231,8 +231,7 @@ function isNonInteractiveCodexSubcommand(tokens: string[]): boolean {
|
||||
|
||||
const normalizedSubcommand = subcommand.value.toLowerCase()
|
||||
if (normalizedSubcommand === 'login') {
|
||||
// Why: bare `codex login` displays an auth flow; only explicit status/help
|
||||
// or stdin-fed token modes are safe to leave in a background PTY.
|
||||
// Bare codex login opens an auth flow; only status/help or stdin-token modes are background-safe.
|
||||
const loginStartIndex = subcommand.index + 1
|
||||
const loginSubcommand = findCodexSubcommand(
|
||||
tokens,
|
||||
@@ -250,8 +249,7 @@ function isNonInteractiveCodexSubcommand(tokens: string[]): boolean {
|
||||
)
|
||||
}
|
||||
if (normalizedSubcommand === 'cloud') {
|
||||
// Why: bare `codex cloud` opens the interactive cloud browser, while its
|
||||
// named child commands are plain one-shot commands.
|
||||
// Bare codex cloud is interactive; named subcommands are one-shot commands.
|
||||
const cloudStartIndex = subcommand.index + 1
|
||||
const cloudSubcommand = findCodexSubcommand(
|
||||
tokens,
|
||||
|
||||
Reference in New Issue
Block a user