Local artifacts file browse and download#4
Open
pmilford wants to merge 11 commits intomshumer:mainfrom
Open
Conversation
- Added backend endpoints in `api_server.py` for listing, reading, and downloading files. - Added `ArtifactsBrowser` component in frontend to navigate and view local files. - Integrated "Files" button in `LabNotebook` to access the file browser. - Verified backend with Python tests and frontend with Playwright.
Add File Browser and Artifact Download to UI
- Added backend endpoints in `api_server.py` for listing, reading, and downloading files. - Added `ArtifactsBrowser` component in frontend to navigate and view local files. - Integrated "Files" button in `LabNotebook` to access the file browser. - Verified backend with Python tests and frontend with Playwright.
- Increased z-index of header buttons in `LabNotebook.tsx` to z-[60] to prevent them from being covered by the run header. - Added refresh buttons to `ArtifactsBrowser.tsx` for both the file list and file preview. - Verified fixes with Playwright.
Files UI feature
- Modified `main.py` to create unique run directories (`runs/<task>_<timestamp>`). - Updated `logger.py` to support dynamic log file paths. - Updated `orchestrator.py` to save `final_paper.md` and agent transcripts to the run directory. - Pass `--run-dir` to subprocess agents to unify logging context.
Implement Run-Specific Artifact Management, including saving to task specific directory in new runs/ directory. Also save logs, writeup.md and some of the agent interactions here.
- Refactor file saving logic into `_save_final_paper` helper. - Ensure `final_paper.md` is saved when the orchestrator loop terminates successfully with `[DONE]` in both Gemini and Claude loops. - Previously, the file was only saved in the fallback path, causing missing output for successful runs.
Fix missing final paper file on successful completion
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.
This PR adds a local file browser for the created artifacts. There is a UI button labeled "files" in the upper right to display it.
Useful to help see what is going on during a run. The log files and agent files are placed in a directory called
run/_
Also added .gitignore
Coding was all done by Google Jules to my specification. I tested with test deploy on runway/Modal and running a task
that hasn't completed on Modal.