Repository navigation
fix(oss-dev): start Tangent with its own start_local.sh, and document what Tangent needs - #3122
Merged
Merged
Conversation
🎩 PreviewA preview build has been created at: |
camielvs
force-pushed
the
fix/oss-dev-tangent-setup
branch
from
December 2, 2026 23:58
6b8a4a6 to
d24764c
Compare
2 of 4 tasks
camielvs
force-pushed
the
fix/oss-dev-tangent-setup
branch
from
December 3, 2026 00:26
d24764c to
474e3f1
Compare
1 of 3 tasks
camielvs
changed the base branch from
master
to
fix/workspace-tangent-bundle-id
December 3, 2026 00:27
camielvs
force-pushed
the
fix/workspace-tangent-bundle-id
branch
from
December 3, 2026 16:53
e55a78a to
9a27122
Compare
… what Tangent needs `pnpm oss:dev` failed on a fresh setup: it needed `pnpm install` before it could start, the Tangent server refused to start without the `pi` binary it never installed, it only passed LLM gateway credentials (not provider keys), and it copied tangent-shell's .env.example placeholders into a live .env. It now installs the app's dependencies first and starts Tangent with tangent-shell's start_local.sh, which installs `pi` and wires the LLM key. It also turns on saved pipelines, and warns up front when no LLM key is set. The README lists everything Tangent needs, including saved pipelines and an LLM key, and shows the one-command setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
camielvs
force-pushed
the
fix/oss-dev-tangent-setup
branch
from
December 3, 2026 17:10
474e3f1 to
4ddd719
Compare
Collaborator
Author
|
oss-critical PR, with scope limited to OSS and readme. I'm pushing through without an external review. |
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.
Intent
Make
pnpm oss:devand the README enough, on their own, to get Projects and Tangent running locally against the open-source backend and Tangent shell.Current behavior
A from-scratch install that followed the READMEs got stuck at several points:
pnpm oss:devfailed withtsx: command not founduntilpnpm installhad been run.piagent binary. Its warning said "Tangent will boot but agents cannot respond", but the Tangent server refuses to start withoutpi, sooss:devwaited two minutes and gave up.PI_PROXY_URL/PI_PROXY_API_KEY) to Tangent, not provider keys such asOPENAI_API_KEY. It also copied tangent-shell's.env.exampleinto a live.env, which handed agents a placeholder gateway address.What changes
pnpm oss:devinstalls the app's dependencies first.start_local.sh, passing the ports, Tangle API address and agent bundle explicitly. That script installspi, wiresOPENAI_API_KEY/ANTHROPIC_API_KEY(or the gateway pair) into its own.env, and seeds the bundles, so the two setups no longer drift apart.VITE_REMOTE_PIPELINES=trueinto the app's.env, next toVITE_ENABLE_TANGENT=true.tangentBundleId: "tangle-oss", from fix(tangent): start sessions with the bundle the workspace names #3123), and when workspaces already exist it warns about any that don't name a bundle, since their sessions ask fortangle.pi.neurips-2026branch, which has the Projects API and creates a workspace on its first start. Tangent lists everything it needs (Projects, saved pipelines, a shell on port 5173, a workspace that names the shell'stangle-ossbundle, an LLM key,VITE_ENABLE_TANGENT=true) and the one-command setup. The manual Create Workspace instruction shows thedatato send.VITE_REMOTE_PIPELINESis marked as required for Tangent in the environment variable table.start_local.shneeds bash, so on Windowsoss:devnow asks for WSL or Git Bash.How to test
Needs the backend's
neurips-2026branch running on port 8000, and tangent-shell cloned next to tangle-ui with nothing running on ports 5173 or 8787.pnpm oss:devwith no LLM variables set. It installs dependencies, warns that no LLM credentials are set, starts Tangent (installingpion the first run), and starts the app athttp://localhost:3000.OPENAI_API_KEY=sk-... pnpm oss:devand send a message. Prime answers.Steps 1 to 3 were checked on a fresh install with an empty home directory and only public package registries, together with tangent-shell #242 and #243 and the
neurips-2026backend, whose seeded "Default" workspace namestangle-oss. The session started with the shell'stangle-ossbundle and showed the missing-key message. Step 4 wasn't run (no LLM key in that environment).pnpm typecheck, eslint and prettier pass on the changed files.Related Issue and Pull requests
tangentBundleId. Without it, sessions against the open-source shell fail with "doesn't have the tangle agent bundle installed".start_local.shserves on 5173 and its README gains "Connect an LLM". This PR passes the port explicitly, so it doesn't depend on that change.Type of Change
Line Breakdown
Checklist
Additional Comments
On a re-run, tangent-shell keeps its existing
.env. A.envwritten by the oldoss:dev(copied from.env.example) still carries the placeholderPI_PROXY_URL; deletetangent-shell/.envonce to regenerate it.🤖 Generated with Claude Code