Skip to content

feat(cloud-agent): add server-side cloud prompt handling#1517

Closed
tatoalo wants to merge 1 commit intoph-ai/feat/cloud-agent/cloud-task-wiringfrom
ph-ai/feat/cloud-agent/cloud-agent-server
Closed

feat(cloud-agent): add server-side cloud prompt handling#1517
tatoalo wants to merge 1 commit intoph-ai/feat/cloud-agent/cloud-task-wiringfrom
ph-ai/feat/cloud-agent/cloud-agent-server

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 7, 2026

Problem

The agent server needs to deserialize structured cloud prompts (with embedded attachments) and forward them to the ACP session.

Changes

  • Add packages/agent/src/server/cloud-prompt.ts: normalizeCloudPromptContent wrapper using @posthog/shared codec
  • Update agent-server.ts: handle structured ContentBlock[] content in user messages, use promptBlocksToText for plain text extraction
  • Update schemas.ts: add originalName to userMessageParamsSchema, structured content array support
  • Add tests for structured content handling and question relay

Stack: 4/4 — depends on #1516

Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 7, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@tatoalo
Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 7, 2026

Recreating with clean branch names

@tatoalo tatoalo closed this Apr 7, 2026
@tatoalo tatoalo deleted the ph-ai/feat/cloud-agent/cloud-agent-server branch April 7, 2026 14:42
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.

1 participant