Skip to content

feat(code): add cloud progress card for task lifecycle events#1735

Open
VojtechBartos wants to merge 2 commits intomainfrom
posthog-code/cloud-setup-checklist
Open

feat(code): add cloud progress card for task lifecycle events#1735
VojtechBartos wants to merge 2 commits intomainfrom
posthog-code/cloud-setup-checklist

Conversation

@VojtechBartos
Copy link
Copy Markdown
Member

Problem

Cloud task runs show raw log lines during setup and give no structured signal for what phase the run is in.

Changes

  • Render backend _posthog/progress notifications as an inline collapsible progress card (sandbox → clone → checkout → agent), grouped per turn.
  • Downgrade sandbox-side AgentServer info/warn logs to debug so raw log noise stops leaking into the conversation. Local runs unaffected.

Paired with a backend PR in PostHog/posthog that emits the notifications.

How did you test this?

Manual end-to-end with the companion backend branch — fresh run, resume path, and a forced failure. Unit tests cover the aggregation logic; pnpm typecheck / lint / test all clean.

Showcase

Starting the cloud run

code-progress-steps.mov

Resuming cloud run

Screenshot 2026-04-20 at 16 15 44


this.logger.info("Session initialized successfully");
this.logger.info(
this.logger.debug("Session initialized successfully vojta");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can remove this lol :D

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha lol, reverting

| UserShellExecute
| { type: "queued"; id: string; message: QueuedMessage };

export type ProgressStatus = "in_progress" | "completed" | "skipped" | "failed";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is skipped used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, removing, actually had it used in first version, but not anymore, removing

@VojtechBartos VojtechBartos force-pushed the posthog-code/cloud-setup-checklist branch from 0741b55 to a29baac Compare April 21, 2026 18:18
@VojtechBartos
Copy link
Copy Markdown
Member Author

@tatoalo updated

Copy link
Copy Markdown
Contributor

adboio commented Apr 21, 2026

[nit] i think the list of steps could be hidden or collapsed once we get to "agent started"

return steps[steps.length - 1].label;
}

export function ProgressGroupView({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the pr creation flow has this same sort of step - worth at least a quick check to see if it makes sense to combine them :)

i think it's in CreatePrDialog.tsx

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants