Choose how to interrupt the task

If you work in a chat app, start with the change request and examples below. Developers building their own agent can also use the later API and tool-handling sections; those assume an existing WebSocket integration.

If you are using a chat interface, the application decides how an update reaches the running task. Use its supported follow-up or stop controls and state the change explicitly. A message saying "stop" gives the assistant an instruction; confirm separately whether an external job stopped. Use ordinary language for the update. The JSON examples later in this guide belong in application code.

OpenAI documents mid-turn steering for the GPT-6 family through the Responses API's WebSocket connection. A normal HTTP follow-up after completion is a different path. Use this decision table before sending an update:

What changed?Recommended handlingWork to inspect
Audience, length, format, or one constraint; the goal stays the sameSend the specific replacement through the app's supported update control, or through steering in your own integration.Sections or files affected by that constraint.
A delivery action must stop, such as sending an email or deploying a buildUse any available delivery or job controls to stop it, then update the assistant. In your own application, block the pending action before sending the update.Queued jobs, approvals, and the actual destination.
A source file or calculation rule was wrongPause dependent work and identify everything derived from it before continuing.Tables, summaries, charts, and exports using the old input.
The task moves to a different client, confidential dataset, or permission scopeStart a separate task with explicitly selected inputs and tools.Which old material is permitted in the new context. A new response alone is not an access boundary.
The response and all continuations have endedSend an ordinary follow-up or start a new task using the verified work.The saved deliverable and the work still required.

A useful test is whether you can name the affected work precisely. "Keep the report, replace its recommendations, save a draft" is a manageable update. "Use everything so far for another customer's project" needs a fresh brief and a decision about which information can carry over.

Write a change the assistant can act on

Suppose a vendor report is complete but its email has not been sent. You now need legal review before delivery. An example request is:

Keep the completed vendor report and its source notes.
Delivery is now an internal review draft. Do not send the email or retry delivery.
Save the draft as reviews/vendor-north/report-review-v2.md.
Check whether any email job has already started and report its actual status.
Before finishing, open the saved draft and check that the source links remain intact.

Name the old requirement being replaced. "Make it safer" leaves the assistant to choose what safety means. "Replace the customer email with an internal draft; retain the report's figures" tells it which action and content to change.

A short edit can be one sentence: "Keep the analysis and citations, reduce the introduction to 100 words, and return the revised draft here." For a larger task, use the work brief to record the full requirements, then send only the changed parts.

When the change affects several outputs, ask the assistant to identify which ones need updating and what it will do next. Review that plan before allowing a send, deployment, or other consequential action. Repeating your request shows the assistant's interpretation; the file or service result establishes what actually happened.

Check what needs to change in each situation

The following prompts are examples to adapt, with checks for the mistakes each change can introduce.

The reader changes halfway through a report

A report written for engineers may explain architecture well and still fail a purchasing manager who needs delivery dates and operating costs. Preserve the factual analysis while replacing the explanation and recommendation structure:

The audience is now a purchasing manager.
Keep the verified findings, source links, and uncertainty statements.
Replace the architecture walkthrough with delivery requirements and operating costs supported by those findings.
Do not invent missing prices. Mark those as information to obtain.
Show the revised outline before rewriting the report.

Review the outline for the new reader's decisions. Check that shortening technical sections has not removed conditions from a recommendation. If the report says an option is cheaper only below a particular workload, that condition belongs in the purchasing version too.

A replacement spreadsheet changes the analysis

Identify the exact file and the rule that makes it authoritative. Replacing a file does not tell the assistant whether to keep earlier totals, compare versions, or recalculate everything.

Use sales-corrected.csv instead of sales-original.csv for revenue.
Count only rows where status is paid; exclude refunded rows.
Keep the report layout. Reuse the customer-count analysis only if it does not depend on the corrected rows.
Rebuild revenue totals, revenue charts, and paragraphs citing those totals.
List each affected output and its new source before exporting.

Verify the filter against the file's actual columns and recompute the relevant totals. Inspect chart labels and narrative claims as well as the headline number. If a slide deck copied the old total, add it to the affected outputs. A check on the corrected CSV alone cannot establish that every exported artifact changed.

A research source must be withdrawn

When a source turns out to be outdated or outside scope, remove the claims it supported as well as its citation. Keeping a claim and silently dropping its source leaves the factual problem unresolved.

Withdraw vendor-overview.pdf as evidence for current feature availability.
Keep historical context clearly labeled as historical.
For each current-feature claim using that PDF, find current official support or remove the claim.
Do not replace missing evidence with an estimate.
For each affected claim, say whether you kept, changed, or removed it, and give any replacement source.

Inspect the claim list for indirect dependencies. A comparison verdict can still depend on an unsupported feature even after the feature table is corrected. If the old input contains information the next task must never receive, start with a permitted context; telling the model to ignore it is not a data-access control.

A code task expands beyond the intended patch

If the assistant starts refactoring unrelated code, name the desired behavior and the files it may edit. Preserve other people's changes explicitly:

Limit this task to the missing validation in checkout/validate.ts.
Keep existing user changes. Do not revert whole files or run a broad formatter.
Inspect the current diff and identify edits belonging to this task.
Remove only this task's unrelated edits where their ownership is clear.
Run the focused checkout validation checks and report any unrun check.

Check the diff after the update. A passing test does not show that unrelated edits were removed. If the same lines contain both the user's work and the assistant's changes, review that conflict before undoing anything. A smaller patch still needs tests for the behavior it changes.

The deadline or spending limit shrinks

Turn "finish faster" into a reduced deliverable and a rule for new work. Include jobs already in flight when reviewing the remaining budget:

Stop starting new image-generation jobs.
Keep completed images and report the status of jobs already submitted.
Use one existing image for the draft and leave the other slots empty.
Return the draft within the remaining task budget; report incomplete work separately.
Do not purchase credits or launch retries.

If you control the application, enforce the limit where it submits jobs. If you are using someone else's app, check its available job controls and usage record. Count outstanding jobs whose final cost is not yet known. A reduced limit cannot recover money already spent or guarantee that an accepted external job can be canceled.

Delivery changes after approval

For the vendor report, an approved email to one recipient should not authorize a different attachment or destination. Freeze the pending delivery and compare the approved operation with the revised one. If the current instruction says "save locally," no new approval is needed merely to prepare that draft within the existing permission scope.

If the email has already been sent, record the actual send result and stop further retries. Decide separately whether a correction or recall is possible through the mail service and authorized by the user. Do not describe the original send as canceled because the assistant later acknowledged the update. The tool approval guide covers binding review to exact arguments and rechecking them before execution.

Keep earlier versions and resolve conflicting instructions

Save the revised deliverable under a new name when the change involves substantial rewriting or recalculation. Keep the original source files. For the vendor report, retaining report-v1.md alongside report-review-v2.md lets you compare the changes and recover useful sections without asking the assistant to reconstruct them from memory. In a repository, inspect the diff before reverting; a whole-file rollback can also remove someone else's edits.

State which earlier rule the update replaces. "Keep every raw data row" and "make the entire report one page" can conflict. Ask for a one-page summary with a separate appendix if that meets your needs. If the single-page limit applies to the whole file, decide what can be omitted. The assistant should identify that conflict before silently dropping required data.

Replace the earlier two-page limit with a one-page executive summary.
Keep the full evidence table in a separate appendix.
All source and delivery requirements remain unchanged.
If another requirement prevents this, identify the conflict before rewriting.

If the assistant keeps following the old instruction, quote the specific obsolete rule and show where the current draft still uses it. Ask for that correction before requesting another full rewrite. When a long chat contains several competing versions, start a fresh task with the current brief and the exact files it may use. Include completed actions and unresolved jobs so the new task does not repeat them.

Implement steering in a Responses API application

The payloads below illustrate the protocol, not a complete runnable client. These documentation-based examples have not been verified in a live WebSocket session, tool cancellation test, or reconnect test. Start with a configured Responses WebSocket client, an event reader, and a running response. Keep API credentials on your server.

After response.created, use that response ID in previous_response_id and send the update on the same connection:

{
  "type": "response.steer",
  "previous_response_id": "resp_report",
  "input": "Keep the report and sources. Stop customer delivery. Prepare an internal review draft. Report whether delivery already started."
}

The event supports only type, previous_response_id, and input. Keep your own requirement revision and retry identifiers in application storage, outside this payload. The input can be a string or a supported nonempty array of user messages.

Observed eventHandling
response.steer.acceptedSave steer.id. Show the update as queued.
The original response endsKeep listening. An interrupted original can end as incomplete with reason steered; it can also finish normally before its continuation.
A continuation is created automaticallyTrack its new response ID and output. Do not send an extra response.create for this path.
response.steer.pendingInspect required_input. Supply the identified tool result or approval through response.create.
response.steer.failedAssociate the error with its steer ID. The input will not be applied automatically later.
The continuation completesCheck its deliverable against the current requirement revision and inspect external jobs separately.

The server finishes the current output item and running hosted tool work before its automatic continuation. Accepted therefore means queued. Continue reading beyond the original response's terminal event.

When a tool result or approval is required

A pending notification identifies the required input, including a tool's call_id. Return that result on the same connection, linked to the response identified by the pending steer. Do not repeat the accepted change. For example, after a real get_report_status call returns the displayed statuses, a text-only continuation could be:

{
  "type": "response.create",
  "model": "gpt-6-astra",
  "previous_response_id": "resp_report",
  "instructions": "Return the internal review draft text. Do not send email.",
  "tools": [],
  "input": [{
    "type": "function_call_output",
    "call_id": "call_status",
    "output": "{\"report_status\":\"complete\",\"email_status\":\"not_started\"}"
  }]
}

Replace the illustrative IDs and result with the actual call and observed output. This example disables tools and returns text; saving a file requires a permitted tool or an application step. An explicit create uses its own instructions and tool settings. Automatic continuations inherit the original settings. You can return a ready tool result before a pending notification arrives.

Inspect which approval the API needs. If the action is now forbidden, return the actual denial through your integration's approval mechanism. Do not approve the obsolete action just to unblock the response, and do not fabricate a successful tool result for work that was withheld.

Stop old tool calls in your application

In OpenAI's async tool flow, your application executes the tool and returns its result with the original call_id. The model can continue while that work runs. Updating its instructions does not change your worker queue or an external service's state.

A job is the application's record of a tool action, such as sending the report email. Inspect that record and the mail service before declaring delivery stopped:

Delivery stateApplication actionEvidence to retain
Proposed, no job createdWithhold the action under the new requirement.The withheld action and the requirements it was checked against.
Queued, not claimed by a workerRemove or disable it through the queue's supported controls.Confirmed queue status and checks on scheduled retries.
Started, cancellation supportedRequest cancellation, then read its outcome.Separate timestamps for request and confirmed cancellation.
Running, cancellation unavailablePrevent retries and replacement sends. Monitor the original job until its outcome is known.The running job ID and its eventual service result.
CompletedRecord the effect and stop duplicates. Assess any permitted follow-up separately.The service's actual completion or delivery record.
Outcome unknown after a timeoutLook up the operation before retrying.A verified status, or an explicit unresolved state.

Number each saved set of requirements and record that number on proposed actions. Before a worker claims a job, compare that revision with the current one and recheck the exact action. Use an atomic check and claim in application storage: the worker should claim the job only if the requirement version still matches. Avoid a separate unchecked gap between reading that version and claiming the job. If the revision changes after a worker has claimed the job, the running-job branch still applies.

Use a stable operation key for retries of the same external action where the service supports deduplication. A new steer ID does not make a repeated email harmless. If the action's recipient or content changes, check the original send's actual outcome before creating its replacement.

Track repeated changes in your application

Consider two updates: "Reduce the report to two pages," followed by "Keep the appendix, but make the executive summary one page." Store the second request as a replacement for the affected length rules. Preserve the other requirements explicitly so the assistant does not have to infer which earlier constraints still apply.

Current requirements, revision 4:
- Executive summary: no more than one page.
- Appendix: retain the existing evidence table; no page limit.
- Replace revision 3's two-page limit for the whole report.
- Sources and figures: unchanged.
- Delivery: internal review draft only.

Save the requirement version, exact update text, target response ID, acknowledgement ID, new response ID, and whether its output has been checked. Once a continuation emits response.created, target that response for subsequent steering. Retain older IDs to trace what happened, while sending new steering to the current response.

Process conflicting updates for the same task one at a time. While one change waits on a tool, show that dependency and let the user revise the stored intent deliberately. Do not send repeated copies merely because the interface still displays the old output. Treat a network retry as the same intent, and a genuine requirement replacement as a new revision.

Track the budget across the entire task. Automatic continuations have their own token and tool-call limits, so a per-response limit does not impose a total cap on repeated changes. Count prior usage and outstanding jobs before authorizing another continuation or tool submission.

Recover from failure or a dropped connection

Save steering events and job statuses in records that survive an application restart. Queued steering belongs to the current connection and is not stored with the original response. If the socket closes after you send an update, the absence of an acknowledgement does not establish whether work happened.

  1. Block dispatch of obsolete actions and preserve the latest requirement revision.
  2. Inspect retained response events and the actual file or service state. Classify each affected operation as completed, prevented, canceled, running, or unresolved.
  3. Reconnect. Continue from a stored response when available, or reconstruct the permitted context for a fresh response.
  4. Include the current requirements and only the work still needed. State completed effects so the assistant does not propose them again.
  5. Verify the replacement deliverable before marking the change complete. Keep unresolved external operations visible.

OpenAI's WebSocket recovery guidance distinguishes stored history from connection-local state. With store=true, an available response may support continuation by ID. If the ID is unavailable, including store=false cases after cache loss, start a new response with full required input context and omit previous_response_id or set it to null. This does not restore a lost queued steer.

Use the observed error to choose the next step:

Symptom or errorWhat to inspect next
Accepted, but old text continuesRead through the current item to the continuation. Keep the UI status queued until there is revised output to inspect.
Pending indefinitelyMatch required_input to a real tool result or approval decision. Inspect the worker separately if its result is missing.
invalid_inputCheck event fields and supported user input. Keep application bookkeeping outside the steer payload.
steering_not_supportedCheck model and request compatibility. Offer a normal follow-up instead of retrying the same unsupported request.
response_not_foundCheck that the steering target belongs to the same connection and is still available there.
too_many_pending_steersResolve required input or wait for continuation. Do not resubmit accepted changes.
previous_response_not_found during recoveryRebuild the input context for a fresh response; this is a history-continuation error, distinct from a missing steering target.
The assistant says "canceled," but the service has no confirmationShow cancellation requested or outcome unresolved. Obtain service evidence before showing canceled.

Test the update before using it for real delivery

For an application implementation, run these checks in a test environment without real customer delivery. They are suggested tests; no live steering run is claimed here.

ExerciseRequired observation
Change audience while text streamsThe final report serves the new audience and preserves the conditions and uncertainties attached to its findings; previously displayed text remains distinguishable.
Change delivery before job dispatchThe queue contains no runnable delivery or scheduled retry, and the review draft exists.
Change delivery while a job runsThe worker reports its real result; the interface distinguishes cancellation requested from canceled.
Hold a function result, then return itThe waiting branch resumes with the matching call ID and current tool permissions, without resending the steer.
Allow the original response to complete firstThe event reader continues to the new response and checks its result.
Send conflicting length updatesThe final draft follows the selected current revision and retains unaffected requirements.
Disconnect before receiving acknowledgementRecovery checks completed actions before replay; the external action occurs at most once under the application's deduplication controls.
Reject a stale approval or exceed the task budgetThe application withholds the obsolete or unaffordable action and reports the remaining work.

For each affected artifact, open the saved version and inspect the changed content. For each external action, inspect the destination or service record. A response saying "done" cannot establish either result. The downloadable steering checklist covers the core lifecycle; add the dependency and acceptance checks relevant to your application.

For the report-to-draft task, finish by giving the saved file path, the sections rebuilt, and the delivery job's final state. If delivery remains unresolved, identify the service check or person needed to resolve it before another send is permitted.