Skip to content

[Phase 2.5] CLI returns exit code 0 for FAILED task executions #375

Description

@frankbria

Problem

codeframe work start <id> --execute returns exit code 0 even when the task execution fails. The CLI prints "Task execution failed" to stdout but never calls typer.Exit(1) or raise SystemExit(1).

Impact

Expected Behavior

Outcome Exit Code
Task completed successfully 0
Task execution failed 1
Task blocked 1
Invalid task ID / not found 2
Missing API key / config error 2

Files

  • codeframe/cli/app.py — The work start command handler needs to check the run result and raise typer.Exit(1) for failure cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingphase-2Phase 2: Server Layer as Thin Adapter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions