Add file upload to the Run Mission dialog - #35
Open
mlund01 wants to merge 2 commits into
Open
Conversation
Support the `file` mission input type in command center: a file picker that
stages the chosen file as the base64 `{filename, content_base64}` envelope the
runner expects, with a 10 MB client-side cap mirroring the runner.
Accepts text, image (PNG/JPEG/GIF/WebP), SVG, and PDF types, and shows an
inline thumbnail preview for image selections.
Render a file mission input in the run Inputs tab as an image preview when it is previewable (PNG/JPEG/GIF/WebP/SVG), otherwise as the filename and decoded size, instead of dumping the raw base64 envelope JSON. Non-file inputs still render as plain text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for the
filemission input type (squadron #112) in command center.Summary
When a mission declares a
file(...)input, the Run Mission dialog now renders a file picker instead of a text box. The chosen file is read in-browser and staged as the base64{filename, content_base64}envelope the runner expects, posted through the existinginputsmap (no backend change needed).maxFileInputBytesin the runner, so oversize files are rejected before upload.acceptcovers text, image (PNG/JPEG/GIF/WebP), SVG, and PDF — the types an agent can read viafile_reador view viafile_view(squadron #114).Notes
Pairs with squadron #114 (
file_viewimage/SVG/PDF support) — the dialog accepts those types because the agent can now perceive them. No shadcn primitives were modified; styling is at the usage site.