Skip to content

fix(tangent): start sessions with the bundle the workspace names - #3123

Merged
camielvs merged 1 commit into
masterfrom
fix/workspace-tangent-bundle-id
Dec 3, 2026
Merged

camielvs merged 1 commit into
masterfrom
fix/workspace-tangent-bundle-id

Conversation

@camielvs

@camielvs camielvs commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Let each workspace choose which Tangent agent bundle its project chats use, so a Tangent shell that installs its bundle under a different name still works, without rebuilding the app.

Current behavior

The app always starts Tangent sessions with the tangle bundle. The open-source Tangent shell ships its bundle as tangle-oss, so on a local open-source setup every session fails to start with "doesn't have the "tangle" agent bundle installed". The only fix today is changing the app's code.

What changes

  • A workspace can set tangentBundleId in its data, next to the existing tangentBaseUrl. Sessions in that workspace's projects start with that bundle.
  • Workspaces that don't set it keep using tangle, so existing workspaces behave as before.
  • When the bundle is missing from the Tangent shell, the error names the bundle that was asked for and says to set tangentBundleId in the workspace's data.

The resolver, hook and context changes are the bundle-id part of #3099, taken as is so the two don't diverge.

Deployment impact: none. No build variables change, and workspaces without tangentBundleId get the same bundle as today.

How to test

Needs a backend with the Projects API, a Tangent shell, and the Projects and Tangent beta flags on.

  1. Open a project in a workspace whose data has no tangentBundleId and start a Tangent chat. The session starts with the tangle bundle, as before.
  2. With a Tangent shell that only has tangle-oss installed, start a chat in that same workspace. The error now says the shell doesn't have the "tangle" bundle and to set tangentBundleId in the workspace's data.
  3. Set the workspace's data to {"tangentBundleId": "tangle-oss"} (for example through the backend's API docs), reload, and start a chat. The session starts with tangle-oss.

Checked: the Tangent test suite (799 tests), typecheck and eslint pass. On a from-scratch open-source install (with #3122, tangent-shell #242/#243 and the neurips-2026 backend, whose seeded workspace sets tangentBundleId: "tangle-oss"), a chat started with the tangle-oss bundle. Step 2's error message is covered by a unit test, not checked in the UI.

Related Issue and Pull requests

Type of Change

  • Bug fix

Line Breakdown

Category Added Removed
Production code 45 13
Comments 5 0
Tests 48 3
Docs 1 1
Total 99 17

Checklist

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

🤖 Generated with Claude Code

@camielvs
camielvs requested a review from a team as a code owner December 3, 2026 00:27
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: fix/workspace-tangent-bundle-id/9a27122

Sessions always used the `tangle` agent bundle, so a workspace backed by
a Tangent shell with another bundle (the open-source shell ships
`tangle-oss`) couldn't start one. A workspace can now name its bundle as
`tangentBundleId` in its data, next to `tangentBaseUrl`, and `tangle`
stays the default. The "bundle not installed" message names the bundle
and says where to change it.

The resolver, hook and context changes match #3099.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@camielvs
camielvs force-pushed the fix/workspace-tangent-bundle-id branch from e55a78a to 9a27122 Compare December 3, 2026 16:53
@camielvs
camielvs merged commit ac1eb0f into master Dec 3, 2026
18 checks passed
@camielvs
camielvs deleted the fix/workspace-tangent-bundle-id branch December 3, 2026 17:07
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.

2 participants