Skip to content

feat(code): upload cloud run attachments#1737

Merged
tatoalo merged 3 commits intomainfrom
feat/code-cloud-run-attachment-upload
Apr 22, 2026
Merged

feat(code): upload cloud run attachments#1737
tatoalo merged 3 commits intomainfrom
feat/code-cloud-run-attachment-upload

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 20, 2026

Problem

The desktop app needs to upload task attachments to PostHog and send artifact references instead of embedding cloud prompt files inline.

cloud_agent_s3_backed_artifacts.mp4

Changes

  • add the cloud artifact upload/finalize client flow
  • wire task creation and follow-up messages to send artifact references for cloud runs

Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 20, 2026

@tatoalo tatoalo force-pushed the feat/agent-cloud-run-artifact-prompts branch from 22a3a1b to 001e087 Compare April 20, 2026 16:04
@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from 0643a0a to 1164474 Compare April 20, 2026 16:04
@tatoalo tatoalo force-pushed the feat/agent-cloud-run-artifact-prompts branch from 001e087 to d7c168b Compare April 20, 2026 16:05
@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from 1164474 to 3ea8477 Compare April 20, 2026 16:05
@tatoalo tatoalo marked this pull request as ready for review April 20, 2026 16:24
@tatoalo tatoalo self-assigned this Apr 21, 2026
@tatoalo tatoalo requested review from a team April 21, 2026 07:52
@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from 7e0cb60 to da0cf6d Compare April 21, 2026 12:31
@tatoalo tatoalo force-pushed the feat/agent-cloud-run-artifact-prompts branch from d7c168b to 625f5ee Compare April 21, 2026 12:31
export const CLOUD_ATTACHMENT_MAX_SIZE_BYTES = 30 * 1024 * 1024;
export const CLOUD_PDF_ATTACHMENT_MAX_SIZE_BYTES = 10 * 1024 * 1024;

const CONTENT_TYPE_BY_EXTENSION: Record<string, string> = {
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.

do we need to maintain this locally, surely it's a solved problem somewhere?

const ATTACHMENT_SOURCE = "posthog_code";
const DEFAULT_CONTENT_TYPE = "application/octet-stream";
export const CLOUD_ATTACHMENT_MAX_SIZE_BYTES = 30 * 1024 * 1024;
export const CLOUD_PDF_ATTACHMENT_MAX_SIZE_BYTES = 10 * 1024 * 1024;
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.

why do we do a separate size for pdfs?

@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from da0cf6d to e6dbc09 Compare April 22, 2026 08:43
@tatoalo tatoalo force-pushed the feat/agent-cloud-run-artifact-prompts branch from 625f5ee to 7183c27 Compare April 22, 2026 08:43
@tatoalo tatoalo changed the base branch from feat/agent-cloud-run-artifact-prompts to graphite-base/1737 April 22, 2026 10:39
@tatoalo tatoalo force-pushed the graphite-base/1737 branch from 7183c27 to 6a15adb Compare April 22, 2026 10:39
@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from e6dbc09 to 71f0037 Compare April 22, 2026 10:39
@graphite-app graphite-app Bot changed the base branch from graphite-base/1737 to main April 22, 2026 10:40
@tatoalo tatoalo force-pushed the feat/code-cloud-run-attachment-upload branch from 71f0037 to 4d4389a Compare April 22, 2026 10:40
@tatoalo tatoalo merged commit c7781e3 into main Apr 22, 2026
16 checks passed
Copy link
Copy Markdown
Contributor Author

tatoalo commented Apr 22, 2026

Merge activity

@tatoalo tatoalo deleted the feat/code-cloud-run-attachment-upload branch April 22, 2026 10:49
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