Repository navigation
Conversation
Typst (typst.app, typst-py) is a common way to draw figures and typeset documents from code, and its source files use the .typ extension. That extension is in neither output allowlist, so a .typ file a job writes is dropped silently: it never reaches the caller and is not kept for the next call. Add .typ to SUPPORTED_EXTENSIONS and BRIDGE_ARTIFACT_EXTENSIONS, and map it to text/plain in both MIME tables (like .ini and .conf), so it is not served as application/octet-stream.
6 tasks done
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.
Summary
Typst is a common way to draw figures and typeset documents from code (
typst-pycompiles it inside the Python runtime), and its source files use the.typextension. That extension is in neither output allowlist, so a.typfile a job writes is dropped without an error: it never reaches the caller and is not kept for the next call. An agent that edits its Typst source across calls finds the file gone each time.This adds
.typto:SUPPORTED_EXTENSIONSinapi/src/job.tsBRIDGE_ARTIFACT_EXTENSIONSinpackages/code/src/protocol.tstext/plain(like.iniand.conf), so it is not served asapplication/octet-streamprotocol.test.tsgets two asserts for the bridge policy and media type. The same change, applied as a patch to v1.10.13, returns.typfiles through/v1/execon a self-hosted KVM deployment.#412 would make the allowlist configurable per deployment. This PR is independent of it: it only extends the built-in default.
🤖 Generated with Claude Code