Skip to content

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

Merged
tatoalo merged 1 commit intomainfrom
feat/cloud-agent/cloud-prompt-builder
Apr 9, 2026
Merged

feat(cloud-agent): add cloud prompt builder and file persistence#1519
tatoalo merged 1 commit intomainfrom
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

@tatoalo tatoalo marked this pull request as ready for review April 7, 2026 15:34
@tatoalo tatoalo self-assigned this Apr 7, 2026
@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
@tatoalo tatoalo requested a review from a team April 8, 2026 08:32
@tatoalo tatoalo force-pushed the chore/cloud-agent/shared-utils branch from abee4ee to 1f6632a Compare April 8, 2026 09:07
@tatoalo tatoalo force-pushed the feat/cloud-agent/cloud-prompt-builder branch 2 times, most recently from 8753530 to 877f89f Compare April 9, 2026 08:13
@tatoalo tatoalo force-pushed the chore/cloud-agent/shared-utils branch from 1f6632a to 295c41d Compare April 9, 2026 08:13
@tatoalo tatoalo changed the base branch from chore/cloud-agent/shared-utils to graphite-base/1519 April 9, 2026 09:56
@tatoalo tatoalo force-pushed the feat/cloud-agent/cloud-prompt-builder branch from 877f89f to af30da7 Compare April 9, 2026 09:56
@tatoalo tatoalo force-pushed the graphite-base/1519 branch from 295c41d to 7f42dc5 Compare April 9, 2026 09:56
@graphite-app graphite-app bot changed the base branch from graphite-base/1519 to main April 9, 2026 09:57
@tatoalo tatoalo force-pushed the feat/cloud-agent/cloud-prompt-builder branch from af30da7 to 1d3b87a Compare April 9, 2026 09:57
@tatoalo tatoalo merged commit b551471 into main Apr 9, 2026
16 checks passed
Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 9, 2026

Merge activity

@tatoalo tatoalo deleted the feat/cloud-agent/cloud-prompt-builder branch April 9, 2026 10:04
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.

2 participants