Repository navigation
feat(scheduler): pull back non-jsonl run artifacts (images, generated files) - #1058
Merged
Merged
Conversation
… files) Broaden the workflow upload step to collect .infer/tmp outputs alongside conversation jsonl. Add ArtifactsDir option to the artifact poller to extract non-jsonl files into ~/.infer/tmp/artifacts, keeping the existing retry, rate-limit, and zip-slip containment behavior. Conversation jsonl handling is unchanged.
…s, grouped by session Separate intended agent outputs (generated images, WebFetch downloads, A2A task artifacts) from the .infer/tmp scratch dir. Deliverables now land in .infer/artifacts/<session-id>/, the scheduler workflow uploads only that dir instead of all of tmp, and the poller preserves the per-session structure when pulling run artifacts back to ~/.infer/artifacts.
This was referenced Aug 12, 2026
edenreich
reviewed
Aug 12, 2026
Co-authored-by: Eden Reich <[email protected]>
Contributor
|
🎉 This PR is included in version 0.169.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
edenreich
added a commit
to inference-gateway/desktop
that referenced
this pull request
Aug 12, 2026
#113) The CLI moved agent deliverables from the .infer/tmp scratch dir to .infer/artifacts/<session-id>/ (inference-gateway/cli#1058). Extend the asset-protocol scope, the save_image guard, and the frontend image-path allowlist to accept the new location while keeping .infer/tmp so existing conversations still render. Closes #112
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.
Resolves #1057
Summary
The GitHub scheduling backend's artifact poller previously extracted only
*.jsonlconversation files from run artifacts, discarding images, reports, and other output files produced during scheduled jobs. This PR broadens the workflow upload and poller extraction to include those files - and introduces a dedicated.infer/artifacts/<session-id>/directory so that only intended agent deliverables are packaged, instead of everything that happens to sit in the.infer/tmpscratch dir.Changes
Dedicated artifacts directory
.infer/tmpis a mixed scratch dir (chunk staging, skill downloads, screenshots, clipboard pastes), so treating its contents as run artifacts pulled in unintended files. Deliverables now land in.infer/artifacts/<session-id>/, grouped by the conversation that produced them:ArtifactsDirNameconstant,ArtifactsDir()/SessionArtifactsDir(sessionID)helpers (session IDs sanitized so they cannot escape the artifacts root), and the sandbox carve-out extended so tools can write there..infer- it now respects the resolved config dir).ctxthreaded throughhandleTaskStatefor the session ID)..infer/artifacts/..infer/artifacts/alongside.infer/tmp/.Scheduler workflow + poller
$GITHUB_WORKSPACE/.infer/artifactsand~/.infer/artifacts(workspace wins on collisions) into.infer-conversations/.artifacts/- no more blanket~/.infer/tmpupload. Upload path broadened from*.jsonlto the whole directory.ArtifactsDiroption on the poller (defaults to~/.infer/artifacts).extract()routes*.jsonltoConversationsDir(unchanged) and everything else toArtifactsDir, preserving the path below the workflow's.artifacts/staging dir so per-session grouping survives the round trip. Retry cap, rate-limit backoff, zip-slip containment, and idempotency unchanged.~/.infer/artifactsinto the poller.Cross-repo impact
.infer/tmpwith an extension filter - follow-up [FEATURE] Collect run artifacts from .infer/artifacts instead of scanning .infer/tmp infer-action#309.