Skip to content

fix(tangent): start sessions with the open-source tangle-oss bundle by default - #3121

Closed
camielvs wants to merge 1 commit into
masterfrom
fix/tangent-bundle-id
Closed

camielvs wants to merge 1 commit into
masterfrom
fix/tangent-bundle-id

Conversation

@camielvs

@camielvs camielvs commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Intent

Let people who run the open-source Tangent shell start Tangent sessions from the app.

Current behavior

The app always asks Tangent for an agent bundle called tangle. The open-source Tangent shell ships tangle-oss instead, so every new session stops with "Couldn't start a session. This Tangent server doesn't have the "tangle" agent bundle installed." This came up in a from-scratch local install that followed the READMEs.

What changes

  • New sessions use the tangle-oss bundle by default.
  • A new build setting, VITE_TANGENT_BUNDLE_ID, names a different bundle for deployments whose Tangent shell installs one. It's listed in the README's environment variable table.

How to test

Needs a running Tangent shell (./start_local.sh in tangent-shell, which seeds tangle-oss), a backend with the Projects API, and the app started with VITE_ENABLE_TANGENT=true.

  1. Under Settings → Beta Features, turn on Projects, then Tangent.
  2. Click Tangent in the sidebar, type a request into Start a new session and press Enter. The project opens with a Prime chat that greets you, instead of "Couldn't start a session".
  3. Restart the app with VITE_TANGENT_BUNDLE_ID=research-assistant and start another session. The session opens with that bundle's greeting.

Ran pnpm typecheck, eslint and prettier on the changed files, and the Tangent tests (795 passing, including two new ones for the default and the override). Steps 1 and 2 were checked against a fresh local install with the open-source shell.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • Breaking change

Line Breakdown

Category Added Removed
Production code 5 1
Tests 25 0
Docs 1 0
Total 31 1

Checklist

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

Additional Comments

Breaking for deployments whose Tangent shell installs tangle and not tangle-oss. They must build with VITE_TANGENT_BUNDLE_ID=tangle before taking this change, or new Tangent sessions fail with the "bundle not installed" message. Sessions that already exist keep the bundle they started with.

🤖 Generated with Claude Code

…y default

Sessions always asked Tangent for the "tangle" bundle, which the
open-source Tangent shell doesn't ship, so every session failed with
"This Tangent server doesn't have the "tangle" agent bundle installed".
The default is now tangle-oss, and VITE_TANGENT_BUNDLE_ID names another
bundle for deployments whose Tangent installs one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@camielvs
camielvs requested a review from a team as a code owner December 2, 2026 22:41
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: fix/tangent-bundle-id/7ebe89d

@camielvs

camielvs commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 This is an AI-generated response.

Closing in favour of TangleML/tangent-shell#244, which names the open-source shell's example bundle tangle, the bundle the app already asks for. Deployments then need no new build setting. #3122 no longer depends on this PR.

@camielvs camielvs closed this Dec 3, 2026
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