You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copilot's shell command results should carry a real exit code #807
Follow-up from #787 (review thread on choice events).
choices.py gives an install, removal, import or use choice only where the call's exit code is 0. For Copilot, cli_traces.py (_copilot_result) takes rc from shellExecution.exitCode when the result carries one, else from the success flag, and leaves rc as None only when neither is present. A Copilot shell command with neither therefore gives no choice, but one reported only as success: true counts as rc 0 without a recorded exit code.
Proposed: have Copilot's shell results always carry the real exit code, and drop the success-flag fallback for shell commands, so every Copilot choice rests on the code the command returned.
Activity
fix(repo): a Copilot shell command's rc is its exit code only
docs(repo): a Copilot shell rc change moves failed_commands and first…