Skip to content

Commit 9769a5f

Browse files
Codex AgentBenWestgate
authored andcommitted
cli: Remove unreachable input guard
Backup creation rejects a noninteractive terminal before this branch, so the later stdin.isatty() rejection can never run. Removing it preserves the interactive behavior and leaves the integrated source under its strict review line budget. Refs #46 and #81.
1 parent d14fd60 commit 9769a5f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/codex32/cli.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ def _create(
490490
raise _UsageError("For thresholds 4 through 9, choose --shares or --indices.")
491491
core = _connected_core()
492492
source = _creation_source(profile) if existing else None
493-
if not existing and not sys.stdin.isatty() and _text("", optional=True):
494-
raise _UsageError("Use --existing when supplying a seed or secret.")
495493
if isinstance(source, (Share, Secret)) and not isinstance(source, MasterSeed):
496494
raise _UsageError(f"Enter one {_profile_rules(profile).label}, not a share or another backup type.")
497495
try:

0 commit comments

Comments
 (0)