From 0af58a823acea048aa48e31ecdd45d0e82d81e63 Mon Sep 17 00:00:00 2001 From: "copilot-dreamer[bot]" <310654851+Copilot Dreamer@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:28:10 +0000 Subject: [PATCH] [Copilot Dreaming] Preserve nonfatal startup recovery in exception guidance Copilot could apply the blanket throw-or-propagate rule to optional startup checks and prevent an otherwise runnable command from starting. The CLI deliberately warns, logs verbose exception details and continues when its GitHub-status or latest-version checks fail. https://github.com/github/gh-gei/blob/2bcf81275394616762f4b921b98ef3eafb1139f5/src/gei/Program.cs#L68-L88 Stating that exception to the contributor rule helps preserve this recovery without relaxing fatal command handling. Other failures still use the friendly domain-exception or propagation rule, and the independent ban on silently swallowing exceptions remains in the same guidance. https://github.com/github/gh-gei/blob/2bcf81275394616762f4b921b98ef3eafb1139f5/src/gei/Program.cs#L138-L151 --- .github/copilot-instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 1f98849dd..b8628d924 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -24,4 +24,4 @@ This is a C# based repository that produces several CLIs that are used by custom 4. Write unit tests for new functionality. 5. When making changes that would impact our users (e.g. new features or bug fixes), add a bullet point to `RELEASENOTES.md` with a user friendly brief description of the change 6. Never silently swallow exceptions. -7. If an exception is expected/understood and we can give a helpful user-friendly message, then throw an OctoshiftCliException with a user-friendly message. Otherwise let the exception bubble up and the top-level exception handler will log and handle it appropriately. \ No newline at end of file +7. For optional startup GitHub-status and latest-version check failures, log a warning and verbose exception details and continue. For other failures, if an exception is expected/understood and we can give a helpful user-friendly message, then throw an OctoshiftCliException with a user-friendly message. Otherwise let the exception bubble up and the top-level exception handler will log and handle it appropriately. \ No newline at end of file