Skip to content

Bug: engine-toggle-coordinator-947-review-residuals #964

Description

@drmoisan
  • Work Mode: minor-audit

Summary

The #947 review (PR #963) left three residuals in TaskMaster/Ribbon/EngineToggleStateCoordinator.cs:

  1. On the refusal path of HandleToggleClickAsync, the "engines unavailable" notification call is still unguarded. A throwing notification sink can escape into the Office ribbon callback, so the method's "never throws" comment overstates that path. This is the same root cause as Bug: engine-toggle-throwing-log-sink-leaves-stale-prime-marker #947.
  2. The GetPrimeTask doc comment opens with "The prime task", but the method returns the registration marker.
  3. The file is 476 of 500 lines, so it needs splitting before its next change.

Environment

Steps to Reproduce

  1. Construct the coordinator with engines unavailable and a notification delegate that throws.
  2. Invoke the toggle click.

Expected Behavior

  • The click handler never throws into the ribbon callback on any path.
  • Doc comments match behavior.
  • The file has room under the 500-line limit.

Actual Behavior

  • The notification exception escapes on the refusal path.
  • The GetPrimeTask doc is inaccurate.
  • The file is 476 lines.

Logs / Screenshots

Impact / Severity

  • Blocker
  • High
  • Medium
  • Low

Source

From: docs/features/potential/2026-10-01-engine-toggle-coordinator-947-review-residuals.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions