Conversation
Generated-By: PostHog Code Task-Id: 7e2afcdb-b4f2-4a41-80a3-7e0d53b4abc3
Contributor
|
Hey @tatoalo! 👋 It looks like your git author email on this PR isn't your
You can fix it for this repo with: git config user.email "you@posthog.com"Or set it globally with |
Contributor
Author
|
not needed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Cloud task startup currently waits for the agent's full first turn before confirming message delivery. A long turn can exceed the sandbox tunnel timeout, causing a healthy run to be marked failed and its sandbox to be removed.
Changes
Request the asynchronous message acknowledgement introduced by PostHog/code#3711. The task workflow can clear the pending message after acceptance while turn progress and completion continue through the existing event stream.
Note
Deploy the linked agent change before this PR. Older agents ignore the opt-in field and retain the current synchronous behavior.
How did you test this code?
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
No user-facing documentation change. This corrects internal message-delivery behavior.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Codex investigated task lifecycle telemetry and session logs, then implemented the smallest protocol change that separates message acceptance from turn completion. I used the
/querying-posthog-data,/writing-tests, and/setup-web-testsskills. A blanket 504-as-success approach was rejected because a tunnel timeout does not prove the sandbox received the message.Created with PostHog Code