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
⚠️ Engine Failure: The copilot engine terminated unexpectedly.
Last agent output:
│ grep -n "_FileChangeEventHandler\|_Stoppable\|_FileChangeHandler\|_render_session_list"
│ /home/runner/work/cli-tools/cli-tools/tests/copilot_usage/test_cli.py | head -30
└ 24 lines...
I found a genuine new issue: issue #1029 plans to remove `_FileChangeHandler` from `cli.py` as "dead code", but the tests actively import it from `copilot_usage.cli`. This would break tests if implemented as written. Also, `_render_session_list` (line 27) has the same suppressed re-export pattern but isn't mentioned in #1029 at all. The real fix requires migrating test imports.
● create_issue (MCP: safeoutputs) · title: "[aw][code health] `test_cli.py` imports private symbols…
└ {"result":"success"}
Opened one new issue. Here's the summary:
**New issue:** `test_cli.py` imports `_FileChangeHandler` and `_render_session_list` from `copilot_usage.cli` rather than from their canonical home in `copilot_usage.interactive`. This creates invisible phantom re-exports in `cli.py` (suppressed via `# noqa: F401`) and — crucially — means **issue #1029 will break tests if implemented as written**, since it plans to remove `_FileChangeHandler` as "dead code" without migrating the 5 test methods that use it.
**Resolution:** migrate both test imports to `copilot_usage.interactive`, then remove all four `# noqa: F401` re-export lines from `cli.py`.
All other significant findings (mutability of `ModelPricing`, redundant guard in `_normalize_until`, dead module-level `Console`, `__init__.py` missing `__all__`, `isinstance` in `_first_pass`) are already tracked in open issues #1022, #1026, #1029, and #1030.
Action Required
Assign this issue to Copilot using the agentic-workflows sub-agent to automatically debug and fix the workflow failure.
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/microsasa/cli-tools/actions/runs/24703165730
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
Workflow Failure
Workflow: Code Health Analysis
Branch: main
Run: https://github.com/microsasa/cli-tools/actions/runs/24703165730
copilotengine terminated unexpectedly.Last agent output:
Action Required
Assign this issue to Copilot using the
agentic-workflowssub-agent to automatically debug and fix the workflow failure.Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the
agentic-workflowsprompt.agentic-workflowsprompt from.github/agents/agentic-workflows.agent.mdor https://github.com/github/gh-aw/blob/main/.github/agents/agentic-workflows.agent.mddebug the agentic workflow code-health failure in https://github.com/microsasa/cli-tools/actions/runs/24703165730Tip
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set
report-failure-as-issue: falsein its frontmatter: