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
Problem
codeframe work start <id> --executereturns exit code 0 even when the task execution fails. The CLI prints "Task execution failed" to stdout but never callstyper.Exit(1)orraise SystemExit(1).Impact
_detect_success()as a workaround that parses stdout for success/failure patternsExpected Behavior
Files
codeframe/cli/app.py— Thework startcommand handler needs to check the run result and raisetyper.Exit(1)for failure cases