mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[PR #272] [MERGED] feat: add flow-scoped file uploads #287
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/272
Author: @mason5052
Created: 4/19/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @asdek
Base:
feature/next-release← Head:codex/issue-193-flow-file-uploads-v1📝 Commits (2)
4d7c367feat: add flow-scoped file uploads263eaf5fix: harden flow file uploads📊 Changes
6 files changed (+842 additions, -0 deletions)
View changed files
📝
backend/pkg/server/response/errors.go(+7 -0)📝
backend/pkg/server/router.go(+13 -0)➕
backend/pkg/server/services/flow_files.go(+371 -0)➕
backend/pkg/server/services/flow_files_test.go(+130 -0)➕
frontend/src/features/flows/files/flow-files.tsx(+312 -0)📝
frontend/src/features/flows/flow-tabs.tsx(+9 -0)📄 Description
Summary
This PR adds a small v1 slice of flow-scoped file uploads.
Problem
Issue #193 asks for files that can be attached to a flow and then shared across the flow runtime. PentAGI already gives each flow a shared
/workdirectory, but there was no UI or API path for users to place files into that workspace.Solution
This PR adds a minimal flow files vertical:
/work/uploadsFilestab in the flow UI with upload, refresh, filter, download, and copy-path actionsThis intentionally does not try to solve archive/export/delete lifecycle yet. It keeps the change small and reviewable while making uploaded files immediately available to automation, assistants, and container commands in the same flow.
User Impact
Users can now upload files directly from a flow page and reference them inside the flow runtime at
/work/uploads/<filename>. That makes it practical to seed a flow with wordlists, configs, notes, or other local inputs without adding a broader asset platform first.Test Plan
go test ./pkg/server/services -run FlowFilenpx eslint src/features/flows/flow-tabs.tsx src/features/flows/files/flow-files.tsxnpx tsc --noEmitgit diff --checkRefs #193
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.