Skip to content

feat(cloud-agent): add cloud prompt builder and file persistence#1519

Open
tatoalo wants to merge 1 commit intochore/cloud-agent/shared-utilsfrom
feat/cloud-agent/cloud-prompt-builder
Open

feat(cloud-agent): add cloud prompt builder and file persistence#1519
tatoalo wants to merge 1 commit intochore/cloud-agent/shared-utilsfrom
feat/cloud-agent/cloud-prompt-builder

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 7, 2026

ph_code_cloud_attachments.mp4 (uploaded via Graphite)

Problem

Cloud tasks need to embed local file attachments as ACP content blocks

Changes

  • Add cloud-prompt.ts: builds ACP ContentBlock[] from prompts with <file> tags, handles text truncation (100K) and image limits (5MB)
  • Add persistFile.ts: browser file persistence with chunked base64

How did you test this?

Unit tests for cloud prompt building (text, image, error paths) and file persistence

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 tatoalo force-pushed the feat/cloud-agent/cloud-prompt-builder branch from 13b9713 to f22bd50 Compare April 7, 2026 15:43
@tatoalo tatoalo force-pushed the chore/cloud-agent/shared-utils branch from 8cf24ad to abee4ee Compare April 7, 2026 15:43
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