Skip to content

chore: describe browser remote env properly for tangent - #2913

Draft
maxy-shpfy wants to merge 1 commit into
maxy/feat--integrate-vs-code-extfrom
maxy/chore--describe-browser-remote-env-for-tangent
Draft

maxy-shpfy wants to merge 1 commit into
maxy/feat--integrate-vs-code-extfrom
maxy/chore--describe-browser-remote-env-for-tangent

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Teaches the browser remote-env host to describe itself so Prime can tell it apart from an editor host (e.g. the VS Code extension) via list_environments and target the right one.

  • Adds describeBrowserEnv(context) in remoteEnvHost.ts, returning { editor: "browser", description, capabilities } and distinguishing the editor canvas ("Tangent browser canvas", edits the spec live) from the run inspector ("Tangent browser run inspector", read-only).
  • Threads an optional metadata field through createRemoteEnvHost into the connect options.
  • Wires it up in TangentProjectAgentProvider (editor mode) and TangentRemoteEnvProvider (context-aware).

Related Issue and Pull requests

Top of the stack:

Type of Change

  • Improvement

Line Breakdown

Category Added Removed
Production code 32 3
Comments 2 0
Tests 48 1
Total 82 4

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Test Instructions

  1. Open a Tangent project (editor) and a run view in the browser.
  2. From Prime, call list_environments and confirm the browser host reports editor: "browser" with distinct descriptions/capabilities for the canvas vs the read-only run inspector.
  3. pnpm test covering remoteEnvHost.test.ts passes (describeBrowserEnv + metadata forwarding).

Additional Comments

Depends on #2912.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@maxy-shpfy
maxy-shpfy added this pull request to stack #2914 October 20, 2026 05:52
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: maxy/chore--describe-browser-remote-env-for-tangent/9d93cfa

@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch from d2d9a26 to 08acdfa Compare October 20, 2026 05:56
@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch 2 times, most recently from 91a7999 to c7ca773 Compare October 21, 2026 05:33
@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch from c7ca773 to 9bc6931 Compare October 23, 2026 04:58
@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch from 9bc6931 to cf80462 Compare October 23, 2026 05:35
@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch from cf80462 to 2cb79cf Compare October 23, 2026 06:49
@maxy-shpfy
maxy-shpfy force-pushed the maxy/chore--describe-browser-remote-env-for-tangent branch from 2cb79cf to 9d93cfa Compare October 23, 2026 06:54

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant