Skip to content

fix: name the open-source example bundle tangle - #244

Closed
camielvs wants to merge 1 commit into
mainfrom
fix/oss-bundle-id-tangle
Closed

camielvs wants to merge 1 commit into
mainfrom
fix/oss-bundle-id-tangle

Conversation

@camielvs

@camielvs camielvs commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

The Tangle app starts embedded Tangent sessions with an agent bundle called tangle. The example bundle this repo ships is tangle-oss, so a shell set up from this repo can't start a session from Tangle: "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.

The example bundle's id is now tangle, and every default that named it follows:

  • examples/tangle-oss/tangent.yaml: id: tangle. The display name ("Tangle OSS"), version and contents are unchanged, and the folder keeps its name.
  • The default session bundle is tangle in the web app (env.ts), the Docker entrypoint, start_local.sh and .env.example.
  • The embed harness, the seed test and the embed-react README examples use tangle.

Screenshots

N/A

How to test

  1. On a fresh clone (no .agent-bundles), run pnpm seed. It logs installed tangle@1.0.0, and examples/tangle.zip is written.

Steps 1 and 3 were checked: a seed into an empty store, and a from-scratch install where the unchanged Tangle app started a session whose bundle is tangle ("Tangle OSS" 1.0.0).
2. Start the shell (./start_local.sh). On the Sessions page, New session starts a session with the Tangle OSS bundle.
3. With the Tangle app (tangle-ui) running in development against a backend with the Projects API, turn on Projects and Tangent under Settings → Beta Features, click Tangent and start a session. The project opens with Prime's greeting instead of "Couldn't start a session".
4. cd apps/server && pnpm test, pnpm typecheck and pnpm lint pass (848 server tests).

Notes

  • No deployment change is needed when the deployment sets VITE_DEFAULT_SESSION_BUNDLE_ID and installs its own bundle, as it should. Images never seed example bundles, so a deployed store only changes when a bundle is uploaded to it.
  • A local store already seeded with tangle-oss keeps it, and pnpm seed skips a store that isn't empty. To pick up the new id, delete .agent-bundles and re-run pnpm seed, or upload examples/tangle.zip under Agent bundles.
  • In an existing checkout, the old examples/tangle-oss.zip stays behind (packed zips are gitignored and the packer doesn't remove old ones), so seeding an empty store installs both tangle-oss and tangle. That's harmless; delete the old zip to get only tangle. A fresh clone has only tangle.
  • pnpm seed and scripts/pack-bundle.mjs now write examples/tangle.zip. Anyone who packs a different bundle with the id tangle into the same checkout should pack it to another folder (PACK_BUNDLE_OUTPUT_DIR), or a later seed overwrites it.
  • This replaces the other route considered, changing the Tangle app's default to tangle-oss (fix(tangent): start sessions with the open-source tangle-oss bundle by default tangle-ui#3121, now closed).
  • fix: smooth the first local run #235 edits the line next to DEFAULT_BUNDLE_ID in start_local.sh. Whichever merges second needs a one-line rebase.

🤖 Generated with Claude Code

The Tangle app starts embedded sessions with the `tangle` bundle, but the
example this repo ships was `tangle-oss`, so a shell set up from this repo
couldn't start a session from Tangle ("doesn't have the tangle agent
bundle installed"). The example's id and every default that named it are
now `tangle`. The example folder keeps its name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@camielvs

camielvs commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

🤖 This is an AI-generated response.

Closing in favor of keeping the bundle id as workspace config, as suggested. TangleML/tangle-ui#3123 lets a workspace set tangentBundleId in its data (default tangle), and the neurips-2026 backend seed and pnpm oss:dev (TangleML/tangle-ui#3122) create workspaces with "tangentBundleId": "tangle-oss", so the open-source bundle keeps its current name.

@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