[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:
OrcaWin
2026-10-23 07:49:36 -07:00
committed by GitHub
co-authored by OrcaWin
parent 633da07af5
commit 120f01331c
29 changed files with 72 additions and 254 deletions
+2 -4
View File
@@ -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,