From b52a6a74123204d3de4087958a40171fd993b4f7 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Thu, 4 Jun 2026 11:26:35 +0200 Subject: [PATCH] fix: add @app.callback so codex --help exits 0 Bare Typer() with no commands raised RuntimeError at runtime. Callback makes the entry point callable without exposing F-07 logic. Co-Authored-By: Claude Sonnet 4.6 --- codex/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/codex/cli.py b/codex/cli.py index b111c88..7d005dd 100644 --- a/codex/cli.py +++ b/codex/cli.py @@ -1,3 +1,8 @@ import typer app = typer.Typer(help="codex — personal knowledge base for scientific papers.") + + +@app.callback() +def _main() -> None: + """codex CLI — commands land here in F-07."""