Skip to content

feat(cloud-agent): wire cloud attachments into task creation and session display#1516

Closed
tatoalo wants to merge 1 commit intoph-ai/feat/cloud-agent/cloud-prompt-builderfrom
ph-ai/feat/cloud-agent/cloud-task-wiring
Closed

feat(cloud-agent): wire cloud attachments into task creation and session display#1516
tatoalo wants to merge 1 commit intoph-ai/feat/cloud-agent/cloud-prompt-builderfrom
ph-ai/feat/cloud-agent/cloud-task-wiring

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 7, 2026

Problem

The cloud prompt builder and file persistence need to be connected to the UI (file picker, task creation flow) and cloud attachment display in session views.

Changes

  • Update AttachmentMenu.tsx: native file picker via selectFiles tRPC, browser file persistence fallback, Tooltip removed (Radix ref loop workaround)
  • Update useTiptapEditor.ts: use shared persistImageFile/persistTextContent helpers
  • Update useDraftSync.ts: fix attachment clearing with functional setState guard
  • Refactor posthogClient.ts: runTaskInCloud options bag replacing positional params
  • Update task-creation.ts: build cloud prompt blocks from attached files
  • Update buildConversationItems.ts: extract attachments from ACP resource/image blocks
  • Update UserMessage.tsx: render attachment badges
  • Update service.ts: add TERMINAL_CLOUD_STATUSES const, cloud session improvements
  • Update TaskInputEditor.tsx: Tooltip removed (Radix ref loop workaround)

Stack: 3/4 — depends on #1515

@tatoalo tatoalo force-pushed the ph-ai/feat/cloud-agent/cloud-task-wiring branch from dbf0ca1 to 1eefe89 Compare April 7, 2026 14:22
@tatoalo tatoalo force-pushed the ph-ai/feat/cloud-agent/cloud-prompt-builder branch from 318bbe7 to 13b9713 Compare April 7, 2026 14:22
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-task-wiring 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