GH-700: Steer and Stop Agent Runs Without Assuming Rollback
To intervene in running agent work, identify the actual session or workflow run, decide whether it needs a bounded redirection or must stop, and use that environment's documented control. For Copilot cloud-agent steering on GitHub, a follow-up is processed after the current tool call. For the Actions-backed cloud-agent stop path documented by GitHub, Stop session ends the associated Actions run and preserves commits already pushed. Verify the observed state and remaining effects after the request.
GitHub Actions cancellation is a separate run-management action requiring repository write access; job conditions affect how cancellation proceeds. Neither a sent steering message nor a clicked cancellation control proves that all work has stopped or that earlier effects were reversed. This guide uses official documentation checked on November 14, 2026 and retains the named runtime boundaries.
Identify the work before choosing an intervention
As an editorial diagnostic method, capture the session or run identity, repository, current activity and the reason for intervention. A similarly named task in another repository is not an adequate target. Read the activity record before acting so you can distinguish a wrong instruction from a task that no longer has permission to continue.
Use these questions to choose the next action:
| Observation | Intervention to consider | Evidence to inspect afterward |
|---|---|---|
| The task remains authorized but its approach is wrong. | Send a specific steering correction where the selected agent supports it. | The correction appears in the session and subsequent work follows its scope. |
| The task should no longer continue. | Use the documented session stop or workflow cancellation control for that runtime. | Actual session/run state and any remaining job activity. |
| A side effect may already have occurred. | Preserve the activity evidence and assign effect verification to its owner. | The affected commit, file or external record, independently of the run's display state. |
| The desired change is to an earlier conversation or file state. | Separate recovery from live containment. | The selected recovery action's scope and resulting files/history. |
These are recommended decisions, not one universal stop interface. GH-700: Place Human Approvals and Escalation in Agent Work explains who may authorize a changed task or wider effects. If authority is unresolved, do not keep the agent working while treating that uncertainty as approval.
Steer a supported Copilot cloud-agent session
GitHub's management guide describes opening the session from Copilot home, entering a follow-up below the session log, and sending it. Copilot applies the input after its current tool call finishes. Steering is not available for third-party coding agents in that documented flow.
Make the correction concrete. For example, “Use the approved issue set for this release; do not include unresolved items from the next release” identifies both the input boundary and the defect. A vague request to be more careful leaves the intended change uncertain.
Because the current tool call can finish before the correction is applied, inspect what happened during that interval. If the concern is a task that must end, choose the appropriate stop or cancel control instead of treating a follow-up message as evidence of immediate containment. After any redirection, verify the next observed activity rather than accepting an acknowledgment as the entire result.
Stop the documented Actions-backed session path
In the GitHub cloud-agent management guide, Stop session is available in the session log viewer. Its documented effect is to end the GitHub Actions run while preserving commits already pushed. Apply that statement to the associated Actions-backed path; do not transfer its execution details to every local or cloud-sandbox session merely because the interface calls it an agent session.
Use the actual session record to inspect what was completed before the stop. Preserve the relevant commit and activity identifiers for the responsible reviewer. A remaining commit is expected under this stop behavior, not proof that the stop request was ignored.
The same guide's archive procedure applies to stopped sessions and removes them from the session list. Archiving is a later organization action in that flow. It should not be used as a substitute for checking whether the work ended.
Cancel a GitHub Actions workflow run with the required access
For a workflow run managed through GitHub Actions, the documented web procedure requires repository write access:
- Open the repository's Actions tab.
- Select the relevant workflow in the sidebar.
- Open the intended queued or in-progress run.
- Select Cancel workflow in the run view.
Check the selected run's identity before confirming. Repeated runs of the same workflow can have different inputs and progress; canceling one does not establish that the others stopped. If you lack the required access, give the correct run identity and reason to an authorized owner instead of assuming the missing control is a transient interface problem.
Cancellation has conditions. GitHub re-evaluates the if conditions of currently running jobs; a condition that remains true can allow a job to continue, such as one using always(). Unfinished steps in continuing jobs also have their conditions re-evaluated. For work selected for cancellation, the server notifies runners and the process can progress through interruption and termination. This is a process to observe, not an instantaneous rollback transaction.
Inspect the run and job activity after requesting cancellation. When activity continues, identify which job is running and whether its condition explains that state. Preserve the log for the workflow owner. Do not make an unrelated workflow edit or broaden access simply because cancellation did not look immediate.
Verify completed effects separately
As a recommended containment record, distinguish three observations: the intervention requested, the execution state observed, and the effects already found. For example, “Cancel requested” and “Run canceled” are different observations; neither describes whether a prior issue update needs correction.
Use the activity record to identify possible effects, then check the affected resource with its authorized owner. A pushed draft commit, an external record update and a message already sent have different recovery procedures. Treat any unverified effect as an unresolved obligation rather than silently assuming that stopping removed it.
Avoid replaying the entire task until those obligations are understood. A retry can repeat an external action or overwrite useful evidence. If file or conversation recovery is needed, GH-700: Recover Copilot Work with Checkpoints and Session History covers that separate scope. Root-cause diagnosis belongs to GH-700: Diagnose Agent Workflow Failures Before Retrying.
Constrained example: stop a report task after its scope changes
Consider an illustrative situation, not an executed test: a supervisor discovers that a running report task is reading records for the wrong reporting period. The task has already pushed a draft commit, and its activity mentions a proposed external status update.
First identify the exact session and associated run. If the task remains authorized and only the period needs correction, a supported steering message can state the correct period and require a new draft. The supervisor still checks what the current tool call completed before the message was applied.
If work must stop, the supervisor uses the applicable session stop or Actions cancellation control with the required authority and then observes the resulting activity. The draft commit is reviewed separately. The external status record is checked independently to determine whether any update actually occurred; a proposed action in a log does not prove execution.
Before continuing, record the accepted input period, retained draft, observed execution state and any unresolved effect. A supervisor can then authorize a bounded next task with an understandable starting point. That closes the intervention with evidence without pretending that stopping was a recovery of every prior state.
Authoritative Sources
- Managing agent sessions — session logs, steering timing, Actions-backed stop behavior, preserved commits and archiving stopped sessions.
- Canceling a workflow run — repository write access and the Actions web cancellation procedure.
- Workflow cancellation reference — job/step conditions and the cancellation process.

