codex icon indicating copy to clipboard operation
codex copied to clipboard

[Bug] In-chat scheduled tasks fork conversations, move pins, lose attached context, and retarget themselves

Open AI0867 opened this issue 3 months ago • 7 comments

What issue are you seeing?

Scheduled tasks created inside an existing ChatGPT Work conversation repeatedly execute in a newly created fork instead of returning to the original conversation.

When this happens:

  • A new conversation appears for the scheduled run.
  • The new conversation takes the original conversation’s pinned position.
  • The original conversation is no longer pinned.
  • The scheduled task’s destination appears to migrate to the new fork.
  • Files attached to the original conversation are unavailable in the fork.
  • A task that depends on an attached file therefore reports that it cannot access the file and asks for it to be attached again.
  • Recurring tasks may subsequently become paused without user authorization.
  • An enabled task with a valid stored schedule can continue showing an empty next_run_time.

This has occurred repeatedly with both recurring check-ins and one-time reminders.

What steps can reproduce the bug?

  1. Open an existing, long-running ChatGPT Work conversation.
  2. Pin the conversation.
  3. Attach a Library-backed file and confirm that ChatGPT can read it.
  4. Create a scheduled task inside that conversation, explicitly intending the result to return to the same conversation.
  5. Have the task reference the attached file in its saved prompt.
  6. Allow the scheduled task to run.
  7. Observe that a separate conversation is created for the run.
  8. Observe that the new conversation takes the original conversation’s pin.
  9. Open the new conversation and observe that the attached file is unavailable.
  10. Inspect the scheduled task and observe that its conversation destination now points to the fork.
  11. In some occurrences, observe that the recurring task has also become paused or has no calculated next-run time.

Re-enabling or recreating the task does not reliably resolve the problem; a later run can fork again and repeat the pin and context loss.

What is the expected behavior?

A scheduled task created inside an existing conversation should:

  • Return to that same conversation.
  • Retain access to the conversation’s existing context and attached files.
  • Leave the conversation’s pinned state unchanged.
  • Keep its original conversation destination unless the user explicitly changes it.
  • Remain enabled after recurring runs unless the user pauses it or the recurrence ends.
  • Populate a valid future next-run time when enabled with a valid schedule.
  • Record failed or blocked runs without silently retargeting or disabling the task.

This is also the behavior described in the scheduled-tasks documentation: an in-chat task should use the existing conversation and its context.

Additional information

Actual behavior

The task runs in a newly created fork, transfers the pin to that fork, loses access to attached context, and changes its effective destination. Scheduler state may then become inconsistent or disabled.

Frequency

Intermittent but repeatedly reproducible across multiple scheduled tasks.

Environment

  • Product surface: ChatGPT Work on the web
  • Task types observed: recurring in-chat tasks and one-time in-chat reminders
  • Attached source: Library-backed file
  • Schedule timezone: Europe/Amsterdam

Related issue

#38350 covers recurring scheduled tasks disabling themselves without authorization. That appears related, but it does not cover the conversation forking, pin transfer, attachment loss, or destination migration described here.

AI0867 avatar Aug 30 '26 14:08 AI0867

I have some additional observations that suggest this is a state-synchronization or lazy-hydration problem rather than a maximum-active-task limit.

  • The same recurring task can simultaneously appear enabled in the Scheduled overview and paused in the chat sidebar.
  • The Scheduled overview’s subtitle shows a valid next run time.
  • Opening the task from Scheduled shows the next run plus the time and result of the previous run.
  • In the associated chat sidebar, the same task can instead show “Next time: Not scheduled.”
  • The edit dialog opened from Scheduled does not display a “next time” field, whereas the sidebar task card does.
  • Other tasks associated with different chats can display their next-run values correctly.
  • At the time of observation, only six tasks were active, so an active-task ceiling seems unlikely to explain the behavior.

There is also a reproducible discovery/rendering problem with chat-sidebar artifacts:

  1. Open a chat containing a scheduled task, source, or output that was added or modified earlier in its history.
  2. Observe that the corresponding item may be absent from the chat sidebar.
  3. Scroll backward through the conversation until passing the message where that item was last modified.
  4. The task, source, or output then appears in the sidebar.

This suggests that the sidebar may be populated from task/artifact events found in the currently loaded message history, rather than from the chat’s current authoritative metadata. It may also explain why a stale paused state or missing next-run value remains visible even when Scheduled shows newer state.

Expected behavior:

  • Task enabled/paused state and next-run information should agree across the Scheduled overview, task details, edit view, and associated chat sidebar.
  • Chat-level tasks, sources, and outputs should be available immediately after opening the chat, without requiring the user to scroll back to load their most recent modification event.
  • Reloading, switching chats, or loading older messages should not alter which current task state is shown.

AI0867 avatar Sep 11 '26 14:09 AI0867

Related routing bug: In ChatGPT Work web, I created an event-triggered task from “Continue Media Workstation Project” with “Same chat for every run.” Immediately after creation, its saved conversation_id mapped to a different chat, “Complete SYNTH-001 live turns.” I reproduced this in Chrome Incognito with extensions disabled. The probes are paused and were not triggered. This appears to happen at creation, rather than after a scheduled run. Is this covered by this issue, or should I file a separate one?

pyoxiyo avatar Oct 10 '26 12:10 pyoxiyo

Sounds similar enough to me. And it's not like openai has responded yet.

AI0867 avatar Oct 10 '26 12:10 AI0867

Additional reproduction on 17 October 2026 with an event-triggered Work task (personal ChatGPT Pro), using both a custom MCP event and a native GitHub PR event.

One temporary task was created from an existing pinned Work conversation, explicitly targeting that same conversation. It had two narrowly filtered event sources and no time-based schedule. The creation result reported the original conversation_id. Work continued in the original conversation.

Observed sequence:

  • The MCP event was accepted and eventually processed. Its original payload was initially absent at the start of the receiving run, then became available and was acknowledged by its event ID.
  • A native GitHub PR event was also received and acknowledged.
  • Both acknowledgements appeared in a newly created conversation named after the temporary task, instead of the original working conversation.
  • A later task read reported the new conversation_id, different from the value returned at creation.
  • The original conversation became unpinned and the new task conversation took its pin. The account owner confirmed this; no pin change was requested.
  • The test task was manually paused after collecting the evidence.

The test ran approximately 09:14:50–09:28 UTC (11:14:50–11:28 Europe/Berlin). The new conversation and both acknowledgements were inspected in the browser. This confirms processing in the wrong conversation, rather than only an HTTP 200 callback response.

Expected: Keep the original conversation binding and pin unchanged; process the matching events there, or explicitly report that the target is unavailable instead of silently retargeting.

dotmari avatar Oct 17 '26 09:10 dotmari

Additional reproduction: event-triggered ChatGPT Work task changes its saved conversation binding (16 Oct 2026)

I am reporting an independently observed case of the conversation-retargeting behavior in this issue. Unlike the original report, this task was triggered by a custom native MCP event rather than by a time-based schedule. The account owner authorized this report. All private conversation/task/subscription IDs, prompts, local paths and credentials have been omitted.

Environment

  • Existing, long-running ChatGPT Cloud Work conversation.
  • A single native MCP-event automation (condition_watch, X-UNSCHEDULED:1; no calendar schedule).
  • The task editor's “Same chat for every run” option was selected by default and read-only; the owner could not switch it.
  • Its original conversation continued to open normally.

Observed sequence (Europe/Warsaw, 16 October 2026; times below in UTC)

  1. An automation was created from the intended existing Work conversation. A subsequent platform readback immediately before the test showed conversation_id=A, the correct original conversation, and is_enabled=true.
  2. A real local worker completed its work and emitted exactly one signed native MCP terminal event. The event was accepted by the callback endpoint (HTTP 200, one delivery attempt). This proves transport acceptance, not necessarily that the automation model consumed the payload.
  3. The automation's saved metadata later showed last_run_time=2026-10-16T17:08:34.969542Z and updated_at=2026-10-16T17:08:35.161055Z.
  4. A readback of that same automation ID showed conversation_id=B, where B was a different, empty conversation, exactly matching the link opened from the task's UI. Opening B displayed the Polish message “W tej rozmowie nie znaleziono wiadomości ChatGPT do wyświetlenia” (“No ChatGPT messages were found in this conversation to display”). Original conversation A remained accessible.
  5. The saved prompt was byte-for-byte unchanged across the before/after snapshots. The automation remained enabled and event-triggered. No user-requested change to conversation binding occurred.
  6. One separately approved title-only automations.update succeeded in changing the title, but the platform's readback still returned conversation_id=B. The update contract preserves omitted fields and does not expose an explicit conversation_id parameter; this was not a supported rebind operation.

Diagnostic limitations: The timestamps correlate the binding change with the automation run, but do not identify the internal operation that rewrote it. A single attempt to inspect the target execution thread returned MCP -32000: Codex app tool request failed, so the exact model input, final output/error and per-run publication target remain unavailable. We are not claiming that HTTP 200 or last_run_time proves successful model consumption.

Why this is notable: Similar custom-MCP event workflows in the same project successfully continued their original Work conversations on 4–9 October 2026, including multi-stage autonomous follow-ups. This is consistent with the event-triggered reproduction reported in the 17 October comment on this issue, although a shared root cause is not yet established.

Expected: An event-triggered automation created in an existing Work chat with “Same chat for every run” selected should preserve its intended original conversation binding and publish there (or provide an explicit actionable failure), rather than silently retargeting to an empty new conversation.

Questions for maintainers: Is an event-triggered run expected to mutate the automation's saved conversation_id? Is there a supported way to restore the original binding without deleting/recreating the task or replaying an event? Can the run's destination/binding change be diagnosed from server-side logs?

Full timestamped before/after metadata and delivery evidence can be provided privately through OpenAI Support if needed.

Maciej26code avatar Oct 17 '26 11:10 Maciej26code

New controlled reproduction — MCP Events run completes in a fork and changes the automation's persisted conversation binding (8 Nov 2026)

Following up on my 16 Oct reproduction. This case adds a complete, timestamped event-receipt and automation-run trace, including platform metadata before the event, during the run, and after completion. The affected account owner authorized reporting. All private conversation, automation, task, subscription, event and run IDs, account identifiers, callback URLs, signatures, credentials, filenames and local paths are omitted or replaced with aliases.

Summary: An event-triggered task was created from an existing ChatGPT Cloud Work conversation A. Platform readback initially confirmed conversation_id=A. A signed custom MCP terminal event was delivered exactly once, and ChatGPT actually processed it. After the triggered run completed, the same automation's stored conversation_id had changed to B, and its run's chat_ref pointed to new conversation B. The answer was published in B, not the original Work A. No user requested a rebind, and no conversation_id update capability was used.

Environment and scope

  • Existing long-running ChatGPT Cloud Work conversation (A), distinct from the later fork (B).
  • Native event-triggered task created via the Work subscribe_to_events capability; condition_watch, X-UNSCHEDULED:1 (no calendar/time schedule).
  • Custom MCP event hermes.night_loop.terminal, scoped by run_group; webhook with successful challenge verification and signed delivery.
  • One real worker result, one event emission / one HTTP 200 acknowledgement, and one automation run. No event replay, manual run_now, duplicate task or second handler in this test.
  • All timestamps below are UTC, 8 Nov 2026. Client/backend build is not independently verified, so no version or deployment attribution is claimed.

Observed chronological evidence

UTC Observation
00:53:17 The task was created from A. The creation response and independent backend readback showed is_enabled=true, conversation_id=A, and is_self_owned_automation=true when read from the owning Work.
02:22:34 The task's narrowly scoped event-handling prompt was updated. A new metadata read still showed conversation_id=A, enabled, with no prior run.
02:32:51–02:32:55 The worker completed its real task. One signed MCP event with the expected eventId/name/data was emitted; the webhook returned HTTP 200, recorded as asynchronous receipt only.
02:33:06 The platform started the event-triggered automation run. In that execution the actual MCP event envelope was received, with event/task/result identity fields matching the durable result. This is stronger evidence than an HTTP 200 alone.
02:34:32 While the automation run was still in progress, a readback taken during its safety pause still reported conversation_id=A, last_run=in_progress, chat_ref=null. The event-execution context reported is_self_owned_automation=false; that field is context-dependent and is not, by itself, proof of retargeting.
02:35:53 The run completed. A subsequent backend readback of the same automation ID showed conversation_id=B and last_run.chat_ref=B. Its latest_result.chat_ref was also B. A new chat B contained the event-handling response; the existing Work A remained a separate conversation.
02:40:48–02:42:31 A preexisting, independent GUI fallback delivered the completed result to original Work A, where the full result was verified and marked consumed once. This was a separate later delivery and must not be counted as MCP returning to A.

The automation deliberately stopped before reading/consuming the result when it could not verify the owning Work context. It was then disabled with a STOP prompt; this is a safety action, not evidence that the event itself failed. The persisted binding to B was still visible after the run and closure.

Expected vs actual

  • Expected: A task created in Work A and subscribed there should process a matching event in A, preserve that original conversation binding, and retain A's context. The MCP Events documentation says ChatGPT receives the event "in the subscribed chat".
  • Actual: The event was received and executed, but its resulting assistant turn appeared in B; after completion the task's stored conversation_id and chat_ref both pointed to B. No authorized action asked to move the task between conversations.

Impact: This breaks long-running Work/agent workflows that depend on the original chat's accumulated instructions, files and continuity. The next event could target the fork rather than the intended Work. An independent fallback can still deliver the original task result, but that does not repair the event task's destination.

Questions / suggested internal investigation

  1. Is a new conversation intentionally created for an MCP-event-triggered run even when the task originates in an existing Work chat? If so, why does conversation_id migrate, and what supported mode keeps delivery in the original subscribed Work?
  2. Please inspect the automation's conversation binding mutation around run finalization (approximately 02:34:32–02:35:53 UTC). The mid-run metadata still returned A, while the completed run and subsequent readback returned B.
  3. Is the retargeting caused by run/chat-ref persistence, context hydration/fork selection, or an unrelated operation? We cannot determine its internal cause from external evidence.
  4. What supported method can reattach the existing event task to A without recreating it or replaying an event? The available update interface has no explicit conversation_id argument.
  5. Could support correlate the timestamped server-side automation run, binding history and outgoing event-trigger delivery? We can provide unredacted correlation IDs privately through a verified support channel, but not in a public issue.

Important limitations: No pin migration, attachment loss or broad rollout regression was measured in this reproduction; those remain observations of other reporters. The exact internal write that changed conversation_id is unknown. A successful webhook and a triggered model run do not establish successful delivery to the correct conversation.

The event task was disabled, the single worker result was consumed once by the independent fallback, and no replay or new test was performed. This report is a diagnostic follow-up, not a request to run further tasks on the affected account.

Reported with the account owner's permission; identifiers and private data intentionally redacted.

Maciej26code avatar Nov 08 '26 03:11 Maciej26code

Additional reproduction: recurring scheduled task in a ChatGPT Project intermittently forks / retargets, with read-only external-tool access during affected runs

I am adding an independent reproduction that appears to be in the same bug family as this issue. The account owner authorized this report. All private conversation/task/run IDs, local usernames/paths, prompts, file contents, and account identifiers are omitted.

Environment / scope

  • Existing long-running ChatGPT Project conversation
  • One enabled recurring time-based scheduled task
  • Schedule timezone: Asia/Shanghai
  • The task is intended to continue using the existing project conversation
  • Automation readback reports environment_selection=inherited
  • The task may perform read-only checks against a connected remote computer before writing its normal chat result

Observed

  • On 12 Nov 2026, a scheduled run completed, while a new task-related conversation appeared outside the Project even though the original Project conversation remained available.
  • On 17 Nov 2026, the same symptom recurred: the original Project conversation still existed in the Project, but the scheduled task produced/associated with a new conversation outside it.
  • After the latest recurrence, backend automation readback for the same task reported a different persisted conversation_id from the original Project conversation. No user requested a rebind.
  • This is intermittent rather than every-run behavior.

Correlated local tool audit (read-only) The remote-computer connector keeps a local tool-call history, which allowed the scheduled runs to be correlated with their external-tool activity:

  • 12 Nov

    • task run began around 09:55 Asia/Shanghai
    • ~09:55:35: read-only filesystem search for recent Markdown files
    • ~09:55:38: read-only multi-file read of two candidate context files
    • no filesystem write was recorded for that run
    • conversation drift/fork was observed
  • 17 Nov

    • task run began around 09:59:45 Asia/Shanghai
    • 10:00:05: read-only directory listing
    • 10:00:09: read-only file-metadata checks
    • no file-content write was recorded for that run
    • conversation drift/fork was observed again

For comparison, intervening runs on other days also used similar read-only remote filesystem access without an observed fork. So this evidence does not establish that external-tool access causes the bug; it only rules out “a memory/file write is required” and suggests the failure may involve the combination of scheduled execution, Project conversation binding, inherited execution environment, and session publication/retargeting.

Expected A recurring task created/used from an existing Project conversation should preserve its original conversation binding and publish there. If the execution environment or tool context cannot be resumed safely, it should fail explicitly rather than silently creating/retargeting to another conversation outside the Project.

I can provide exact timestamped before/after task metadata, run IDs, conversation IDs, and the sanitized remote-tool audit privately if maintainers need them.

ChristyZ avatar Nov 17 '26 07:11 ChristyZ