Repository navigation
feat: tangent browser agent support session resources - #2919
Draft
maxy-shpfy wants to merge 2 commits into
Draft
maxy-shpfy wants to merge 2 commits into
maxy-shpfy wants to merge 2 commits into
Conversation
maxy-shpfy
added this pull request to stack #2914
October 21, 2026 01:16
🎩 PreviewA preview build has been created at: |
maxy-shpfy
force-pushed
the
maxy/feat--tangent-browser-agent-support-session-resources
branch
from
October 21, 2026 05:33
217c02b to
2fc6263
Compare
maxy-shpfy
force-pushed
the
maxy/feat--tangent-browser-agent-support-session-resources
branch
from
October 23, 2026 04:58
2fc6263 to
031fcd3
Compare
maxy-shpfy
force-pushed
the
maxy/feat--tangent-browser-agent-support-session-resources
branch
from
October 23, 2026 05:35
031fcd3 to
78e6e97
Compare
maxy-shpfy
force-pushed
the
maxy/feat--tangent-browser-agent-support-session-resources
branch
from
October 23, 2026 06:49
78e6e97 to
2bfbe9a
Compare
maxy-shpfy
force-pushed
the
maxy/feat--tangent-browser-agent-support-session-resources
branch
from
October 23, 2026 06:54
2bfbe9a to
041b550
Compare
This branch has not been deployed
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.
Description
Gives the Tangent browser (sidekick) sub-agent access to the session's shared resource catalog — the files Prime, the user, or agents on other environments contribute to a session (e.g. an uploaded
uploads/*.pipeline.yaml) — so a pipeline produced in one environment can be read, written, and imported from another.What's added
sessionResourceTools.ts):list_session_resources,read_session_resource, andput_session_resource. These are host capabilities (not CSOM mutations) and reach the main-thread socket client through a narrow, per-turnSessionResourceBridgeComlink proxy, scoped to the turn's session. They are always attached outside the spawn allowlist — mirroring the pi host, whose resource extension is likewise always registered — and appear only when the host wired a bridge for that turn.remoteEnvHost.ts,createRemoteEnvWorkerApi.ts,session.ts):runTurnnow accepts an optionalresourcesbridge backed by the session socket client (listResources/readResource/addResource), and a session-scopedreadResourcehost method for reading a resource by its handle without holding the socket.import_pipelineworkarea tool (createWorkareaRemoteTools.ts): imports a complete pipeline and opens it in the Dynamic Workarea from either aresourceUri(a session resource another agent contributed) or inlineyaml, instead of rebuilding node by node. The pipeline is attached to the project automatically.importAndAttachPipeline(createAndAttachPipeline.ts): validates the YAML is a graph pipeline spec, assigns an available unique name, creates the file, and attaches it — reusing a sharedattachOrCleanuphelper extracted fromcreateAndAttachPipeline.decodeBase64Utf8utility (string.ts) for decoding resource content.remoteEditor.md) explaining the resource catalog and that it is separate from the live canvas.Related Issue and Pull requests
Stacked on #2914 (base branch
maxy/chore--describe-browser-remote-env-for-tangent).Type of Change
Line Breakdown
Checklist
Test Instructions
putanuploads/*.pipeline.yaml).list_session_resourcesand confirm the uploaded file appears with itsname,uri, andkind.read_session_resourceby uri and confirm the decoded contents match.put_session_resourceand confirm other agents / Prime can fetch the written file fromuploads/.import_pipelinewith thatresourceUri(and separately with inlineyaml) and confirm the pipeline opens in the Dynamic Workarea and is attached to the project (shows up in Resources). Verify a non-graph YAML is rejected, and that passing bothresourceUriandyamlerrors.Additional Comments
Reading a resource does not change the pipeline, and editing the pipeline does not touch the catalog — the two surfaces are intentionally separate.